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

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

public class Agent2DShape
extends Vehicle2DShape

The shape for the agent.

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
Agent2DShape()
           
 
Method Summary
 float getAngulo()
          Returns the angle of observer's field vision (120)
 org.eclipse.swt.graphics.Image getIcon()
          Returns the image icon used to represent the shape
 int getProfundidade()
          Returns the maximum observer's vision depth
 java.lang.Object getPropertyValue(java.lang.Object propertyId)
          Return the property value of the propertyId requested, or null.
 void setAngulo(float angulo)
          Set the angle
 void setProfundidade(int profundidade)
          Set the depth chosen by user
 void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
          Define o valor de uma propriedade com o identificador fornecido.
 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.Vehicle2DShape
getSentido, setSentido
 
Methods inherited from class br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Mobile2DShape
getPoints, getVelocity, setPoints, setSize, setVelocity
 
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

Agent2DShape

public Agent2DShape()
Method Detail

getAngulo

public float getAngulo()
Returns the angle of observer's field vision (120)


getIcon

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

Overrides:
getIcon in class Vehicle2DShape
Returns:
An image 16x16 or null.

getProfundidade

public int getProfundidade()
Returns the maximum observer's vision depth


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 Mobile2DShape
See Also:
Shape.descriptors, Shape.getPropertyDescriptors()

setAngulo

public void setAngulo(float angulo)
Set the angle


setProfundidade

public void setProfundidade(int profundidade)
Set the depth chosen by user


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 Mobile2DShape
See Also:
Shape.descriptors, Shape.getPropertyDescriptors()

toString

public java.lang.String toString()
Description copied from class: Mobile2DShape
Returns the name typed by user for the object

Overrides:
toString in class Mobile2DShape