|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbr.edu.fei.dcc.raciocinioespacial.editor.shapes.model.ModelElement
br.edu.fei.dcc.raciocinioespacial.editor.shapes.elements.Shape
public abstract class Shape
Abstract prototype of a Shape. Possui um tamanho (largura e altura), uma localização (posição x e y) e uma lista das conexões de entrada e saída. Use subclasses para inicializar uma forma específica.
Field Summary | |
---|---|
static java.lang.String |
Proprerty_Localization
|
static java.lang.String |
Proprerty_Name
|
static java.lang.String |
Proprerty_X
|
static java.lang.String |
Proprerty_Y
|
Constructor Summary | |
---|---|
Shape()
|
Method Summary | |
---|---|
java.util.List<org.eclipse.ui.views.properties.IPropertyDescriptor> |
getDescriptors()
|
abstract org.eclipse.swt.graphics.Image |
getIcon()
Return an icon for this ModelElement. |
org.eclipse.draw2d.geometry.Point |
getLocalization()
Return the localization of this Shape. |
java.lang.String |
getName()
Return the name typed to each object |
ShapesDiagram |
getParent()
Return the parent ShapeDiagram |
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Return an array of IPropertyDescriptors for this Shape. |
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
Return the property value of the propertyId requested, or null. |
org.eclipse.draw2d.geometry.Dimension |
getSize()
Return the size of this Shape. |
void |
setDescriptors(java.util.List<org.eclipse.ui.views.properties.IPropertyDescriptor> descriptors)
|
void |
setLocalization(org.eclipse.draw2d.geometry.Point newLocation)
Define the localization of this Shape. |
void |
setNome(java.lang.String name)
Set the name for this object |
void |
setParent(ShapesDiagram parent)
|
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. |
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, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String Proprerty_Localization
public static final java.lang.String Proprerty_X
public static final java.lang.String Proprerty_Y
public static final java.lang.String Proprerty_Name
Constructor Detail |
---|
public Shape()
Method Detail |
---|
public java.util.List<org.eclipse.ui.views.properties.IPropertyDescriptor> getDescriptors()
public abstract org.eclipse.swt.graphics.Image getIcon()
public org.eclipse.draw2d.geometry.Point getLocalization()
public java.lang.String getName()
public ShapesDiagram getParent()
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyDescriptors
in class ModelElement
descriptors
,
getPropertyValue(Object)
,
setPropertyValue(Object, Object)
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
A visão de propriedades usa os identificadores a partir do array de IPropertyDescriptors para obter o valor das propriedades correspondentes.
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyValue
in class ModelElement
descriptors
,
getPropertyDescriptors()
public org.eclipse.draw2d.geometry.Dimension getSize()
public void setDescriptors(java.util.List<org.eclipse.ui.views.properties.IPropertyDescriptor> descriptors)
public void setLocalization(org.eclipse.draw2d.geometry.Point newLocation)
public void setNome(java.lang.String name)
public void setParent(ShapesDiagram parent)
public void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
A visão de propriedade usa os identificadores a partir do array de IPropertyDescriptors para definir os valores. das respectivas propriedades.
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
setPropertyValue
in class ModelElement
descriptors
,
getPropertyDescriptors()
public void setSize(org.eclipse.draw2d.geometry.Dimension newSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |