|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.model.visual.backward.ModelElement
pl.edu.agh.cast.model.visual.backward.Legend
public class Legend
Diagram legend.
| Field Summary | |
|---|---|
protected org.eclipse.draw2d.geometry.Point |
location
Location of the legend. |
static String |
LOCATION
Name of the Location changed event. |
| Fields inherited from class pl.edu.agh.cast.model.visual.backward.ModelElement |
|---|
ATTRIBUTE_CHANGE, attributeValues |
| Constructor Summary | |
|---|---|
Legend(String diagramName)
Creates new Legend for given diagram. |
|
| Method Summary | |
|---|---|
AttributeManager |
getAttributeManager()
Returns attribute manager for this container. |
String |
getDiagramName()
|
String |
getImageLabel(String imageId)
Returns label for the given image. |
String |
getLabel()
Returns label of movable element. |
String |
getLineColorLabel(HexColor color)
Returns label for the given line color. |
org.eclipse.draw2d.geometry.Point |
getLocation()
Returns current location of movable element. |
void |
setDiagramName(String diagramName)
Sets the name of the IDiagram this legend is for. |
void |
setLocation(org.eclipse.draw2d.geometry.Point newLocation)
Sets new location of movable element. |
| Methods inherited from class pl.edu.agh.cast.model.visual.backward.ModelElement |
|---|
addPropertyChangeListener, bindToAttributeManager, copyAttributes, copyAttributeValues, firePropertyChange, getAllValues, getAttributeValue, getMid, isAttributeEditable, isAttributeSettable, isSaved, propertyChange, readResolve, removePropertyChangeListener, removePropertyValue, setAttributeValue, setAttributeValue, setMid, setSaved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOCATION
protected org.eclipse.draw2d.geometry.Point location
| Constructor Detail |
|---|
public Legend(String diagramName)
diagramName - the name of the diagram.| Method Detail |
|---|
public String getDiagramName()
public org.eclipse.draw2d.geometry.Point getLocation()
IMoveable
getLocation in interface IMoveablepublic String getImageLabel(String imageId)
imageId - id of the image
public String getLineColorLabel(HexColor color)
color - line color
public void setLocation(org.eclipse.draw2d.geometry.Point newLocation)
setLocation in interface IMoveablenewLocation - new location pointIMoveable.setLocation(org.eclipse.draw2d.geometry.Point)public String getLabel()
IMoveable
getLabel in interface IMoveablepublic void setDiagramName(String diagramName)
IDiagram this legend is for.
diagramName - name of the diagrampublic AttributeManager getAttributeManager()
getAttributeManager in interface AttributeValueContainergetAttributeManager in class ModelElementModelElement.getAttributeManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||