Interface ISymbol
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDefinitiongetDefinition()Returns the definition this symbol is representing in a diagram.IDiagramgetDiagram()Returns the diagram on which the symbol has been created.booleanisSelected()Determines whether the symbol is highlighted on the diagram.voidsetConnectedFrom(ISymbol from)Used to connect a symbol at the "from" end of the line.voidsetConnectedTo(ISymbol to)Used to connect a symbol at the "to" end of the line.voidsetSelected(boolean selected)Determines whether the symbol is highlighted on the diagram.-
Methods inherited from interface com.sodius.mdw.metamodel.sa.io.app.IItem
delete, getAuditId, getEncyclopedia, getId, getName, getProperty, getPropertyListOf, getPropertyOneOf, getTypeMinor, getTypeName, setName, setProperty, setPropertyOneOf
-
-
-
-
Method Detail
-
getDefinition
IDefinition getDefinition()
Returns the definition this symbol is representing in a diagram.- Returns:
- the definition this symbol is representing in a diagram.
-
getDiagram
IDiagram getDiagram()
Returns the diagram on which the symbol has been created.- Returns:
- the diagram on which the symbol has been created.
-
isSelected
boolean isSelected()
Determines whether the symbol is highlighted on the diagram.- Returns:
trueif the symbol is highlighted on the diagram,falseotherwise.
-
setSelected
void setSelected(boolean selected)
Determines whether the symbol is highlighted on the diagram.- Parameters:
selected- a boolean indicates whether the symbol should be selected in the diagram.
-
setConnectedFrom
void setConnectedFrom(ISymbol from)
Used to connect a symbol at the "from" end of the line.- Parameters:
from- Any instantiated line symbol.
-
setConnectedTo
void setConnectedTo(ISymbol to)
Used to connect a symbol at the "to" end of the line.- Parameters:
to- any instantiated line symbol.
-
-