br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements
Class Ponto2DShape

java.lang.Object
  extended by br.edu.fei.dcc.raciocinioespacial.editor.shapes.model.ModelElement
      extended by br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Shape
          extended by br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Ponto2DShape
All Implemented Interfaces:
java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource

public class Ponto2DShape
extends Shape

The shape for the point used to trace object routes

See Also:
Serialized Form

Field Summary
 
Fields inherited from class br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Shape
Proprerty_Localization, Proprerty_Name, Proprerty_X, Proprerty_Y
 
Constructor Summary
Ponto2DShape()
           
 
Method Summary
 org.eclipse.swt.graphics.Image getIcon()
          Returns the image icon used to represent a point
 int getInstant()
          Returns the instant of the point into the all route context.
 java.lang.String getNomePai()
          Returns the name of the point's parent object
 Mobile2DShape getPai()
          Set the parent object of the route point
 java.lang.Object getPropertyValue(java.lang.Object propertyId)
          Return the property value of the propertyId requested, or null.
 void setNome(java.lang.String name)
          Set the name for this object
 void setNomePai(java.lang.String nomePai)
          Set the name of the point's parent object
 void setParent(Mobile2DShape parent)
          Set the parent object of the route point
 void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
          Define o valor de uma propriedade com o identificador fornecido.
 void setSize(org.eclipse.draw2d.geometry.Dimension newSize)
          Define the size of this shape.
 java.lang.String toString()
          Returns the name typed by user for the object
 
Methods inherited from class br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Shape
getDescriptors, getLocalization, getName, getParent, getPropertyDescriptors, getSize, setDescriptors, setLocalization, setParent
 
Methods inherited from class br.edu.fei.dcc.raciocinioespacial.editor.shapes.model.ModelElement
addPropertyChangeListener, getEditableValue, isPropertySet, removePropertyChangeListener, resetPropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ponto2DShape

public Ponto2DShape()
Method Detail

getIcon

public org.eclipse.swt.graphics.Image getIcon()
Returns the image icon used to represent a point

Specified by:
getIcon in class Shape
Returns:
An image 16x16 or null.

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object propertyId)
Description copied from class: Shape
Return the property value of the propertyId requested, or null.

A visão de propriedades usa os identificadores a partir do array de IPropertyDescriptors para obter o valor das propriedades correspondentes.

Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
getPropertyValue in class Shape
See Also:
Shape.descriptors, Shape.getPropertyDescriptors()

setPropertyValue

public void setPropertyValue(java.lang.Object propertyId,
                             java.lang.Object value)
Description copied from class: Shape
Define o valor de uma propriedade com o identificador fornecido. Se não forem encontradas propriedades com essa identificação, a chamada é passada para a superclasse.

A visão de propriedade usa os identificadores a partir do array de IPropertyDescriptors para definir os valores. das respectivas propriedades.

Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
setPropertyValue in class Shape
See Also:
Shape.descriptors, Shape.getPropertyDescriptors()

toString

public java.lang.String toString()
Returns the name typed by user for the object

Overrides:
toString in class java.lang.Object

getNomePai

public java.lang.String getNomePai()
Returns the name of the point's parent object


setNomePai

public void setNomePai(java.lang.String nomePai)
Set the name of the point's parent object


setSize

public void setSize(org.eclipse.draw2d.geometry.Dimension newSize)
Description copied from class: Shape
Define the size of this shape.

Overrides:
setSize in class Shape

setNome

public void setNome(java.lang.String name)
Description copied from class: Shape
Set the name for this object

Overrides:
setNome in class Shape

getInstant

public int getInstant()
Returns the instant of the point into the all route context. It works like an index of route points


setParent

public void setParent(Mobile2DShape parent)
Set the parent object of the route point


getPai

public Mobile2DShape getPai()
Set the parent object of the route point