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

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
              extended by br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Vehicle2DShape
All Implemented Interfaces:
java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource
Direct Known Subclasses:
Agent2DShape

public class Vehicle2DShape
extends Mobile2DShape

The shape for a vehicle

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
Vehicle2DShape()
           
 
Method Summary
 org.eclipse.swt.graphics.Image getIcon()
          Returns the image icon used to represent the shape
 SentidoVehicle getSentido()
          Returns the actual direction set for the car
 void setSentido(SentidoVehicle direction)
          Set an direction for the car
 
Methods inherited from class br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Mobile2DShape
getPoints, getPropertyValue, getVelocity, setPoints, setPropertyValue, setSize, setVelocity, toString
 
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

Vehicle2DShape

public Vehicle2DShape()
Method Detail

getIcon

public org.eclipse.swt.graphics.Image getIcon()
Description copied from class: Mobile2DShape
Returns the image icon used to represent the shape

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

getSentido

public SentidoVehicle getSentido()
Returns the actual direction set for the car


setSentido

public void setSentido(SentidoVehicle direction)
Set an direction for the car