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

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.Mobile2DShape
All Implemented Interfaces:
java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource
Direct Known Subclasses:
Pedestrian2DShape, Vehicle2DShape

public abstract class Mobile2DShape
extends Shape

The shape for any mobile entity.

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
Mobile2DShape()
           
 
Method Summary
abstract  org.eclipse.swt.graphics.Image getIcon()
          Returns the image icon used to represent the shape
 java.util.List<Ponto2DShape> getPoints()
          Returns the route points defined by user for the shape
 java.lang.Object getPropertyValue(java.lang.Object propertyId)
          Return the property value of the propertyId requested, or null.
 float getVelocity()
          Returns the constant velocity defined by user for the shape
 void setPoints(java.util.List<Ponto2DShape> points)
          Set the route points defined by user for the shape
 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)
          We overload the method to define other size treatment.
 void setVelocity(float velocity)
          Set the constant velocity defined by user for the object
 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, setNome, 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

Mobile2DShape

public Mobile2DShape()
Method Detail

getIcon

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

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()

getVelocity

public float getVelocity()
Returns the constant velocity defined by user for the shape


setSize

public void setSize(org.eclipse.draw2d.geometry.Dimension newSize)
We overload the method to define other size treatment.

Overrides:
setSize in class Shape

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()

setVelocity

public void setVelocity(float velocity)
Set the constant velocity defined by user for the object


toString

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

Overrides:
toString in class java.lang.Object

getPoints

public java.util.List<Ponto2DShape> getPoints()
Returns the route points defined by user for the shape


setPoints

public void setPoints(java.util.List<Ponto2DShape> points)
Set the route points defined by user for the shape