pl.edu.agh.cast.model.visual
Class Legend

java.lang.Object
  extended by pl.edu.agh.cast.model.visual.ModelElement
      extended by 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
           
 
Fields inherited from class pl.edu.agh.cast.model.visual.ModelElement
_attributeValues, ATTRIBUTE_CHANGE
 
Constructor Summary
Legend(java.lang.String diagramName)
           
 
Method Summary
 AttributeManager getAttributeManager()
          Returns element's attribute manager
 java.lang.String getDiagramName()
           
 java.lang.String getImageLabel(java.lang.String imageName)
           
 java.lang.String getLabel()
           
 java.lang.String getLineColorLabel(HexColor color)
           
 org.eclipse.draw2d.geometry.Point getLocation()
           
 void setDiagramName(java.lang.String diagramName)
           
 void setLocation(org.eclipse.draw2d.geometry.Point newLocation)
           
 
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
 

Field Detail

LOCATION

public static final java.lang.String LOCATION
See Also:
Constant Field Values

_location

protected org.eclipse.draw2d.geometry.Point _location
Constructor Detail

Legend

public Legend(java.lang.String diagramName)
Method Detail

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.