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

java.lang.Object
  extended by pl.edu.agh.cast.model.visual.Legend
All Implemented Interfaces:
IPropertyChangeProvider

public class Legend
extends Object
implements IPropertyChangeProvider

Diagram legend.

Author:
AGH CAST Team

Field Summary
protected  org.eclipse.draw2d.geometry.Point location
          Location of the legend.
static String LOCATION_EVENT
          The name of the location change event.
 
Constructor Summary
Legend()
          Creates new Legend.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Add a property change listener to the object.
 org.eclipse.draw2d.geometry.Point getLocation()
           
 void removePropertyChangeListener(PropertyChangeListener l)
          Remove a property change listener to the object.
 void setLocation(org.eclipse.draw2d.geometry.Point newLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATION_EVENT

public static final String LOCATION_EVENT
The name of the location change event.

See Also:
Constant Field Values

location

protected org.eclipse.draw2d.geometry.Point location
Location of the legend.

Constructor Detail

Legend

public Legend()
Creates new Legend.

Method Detail

getLocation

public org.eclipse.draw2d.geometry.Point getLocation()

setLocation

public void setLocation(org.eclipse.draw2d.geometry.Point newLocation)

addPropertyChangeListener

public final void addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener to the object.

Specified by:
addPropertyChangeListener in interface IPropertyChangeProvider
Parameters:
l - property change listener
See Also:
#addPropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

public final void removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener to the object.

Specified by:
removePropertyChangeListener in interface IPropertyChangeProvider
Parameters:
l - property change listener
See Also:
#removePropertyChangeListener(java.beans.PropertyChangeListener)


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.