pl.edu.agh.cast.model.visual
Class Legend
java.lang.Object
pl.edu.agh.cast.model.visual.ModelElement
pl.edu.agh.cast.model.visual.Legend
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, IPropertyChangeProvider, AttributeValueContainer, IMoveable
public class Legend
- extends ModelElement
- implements IMoveable
- See Also:
- Serialized Form
Field Summary |
protected org.eclipse.draw2d.geometry.Point |
_location
|
static java.lang.String |
LOCATION
|
Constructor Summary |
Legend(java.lang.String diagramName)
|
Methods inherited from class pl.edu.agh.cast.model.visual.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 |
LOCATION
public static final java.lang.String LOCATION
- See Also:
- Constant Field Values
_location
protected org.eclipse.draw2d.geometry.Point _location
Legend
public Legend(java.lang.String diagramName)
getDiagramName
public java.lang.String getDiagramName()
getLocation
public org.eclipse.draw2d.geometry.Point getLocation()
- Specified by:
getLocation
in interface IMoveable
getImageLabel
public java.lang.String getImageLabel(java.lang.String imageName)
getLineColorLabel
public java.lang.String getLineColorLabel(HexColor color)
setLocation
public void setLocation(org.eclipse.draw2d.geometry.Point newLocation)
- Specified by:
setLocation
in interface IMoveable
- Parameters:
position
-
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface IMoveable
setDiagramName
public void setDiagramName(java.lang.String diagramName)
getAttributeManager
public AttributeManager getAttributeManager()
- Description copied from class:
ModelElement
- Returns element's attribute manager
- Specified by:
getAttributeManager
in interface AttributeValueContainer
- Specified by:
getAttributeManager
in class ModelElement
Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.