pl.edu.agh.cast.model.visual.backward
Class DiagramSettings

java.lang.Object
  extended by pl.edu.agh.cast.model.visual.backward.DiagramSettings
All Implemented Interfaces:
Serializable, IPropertyChangeProvider, IDiagramSettings

public class DiagramSettings
extends Object
implements IDiagramSettings

Schema diagram settings.

Author:
AGH CAST Team
See Also:
Serialized Form

Field Summary
static String DISPLAY_NAME
          Name of the Diagram display name changed event.
static String LEGEND_SHOWN
          Name of the Show diagram legend changed event.
 
Constructor Summary
DiagramSettings()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener l)
          Add a property change listener to the object.
protected  void firePropertyChange(String property, Object oldValue, Object newValue)
          Notifies about property change.
 String getDefaultLayoutManagerClass()
          Gets the qualified name of diagram's layout manager class.
 String getDisplayName()
          Returns diagram display name.
 String getEditorId()
          Returns the id of editor this diagram is displayed in.
 boolean isShowLegend()
          Whether the diagram legend should be displayed.
 boolean needsInitialLayout()
          Whether the diagram needs to be initial laid out.
protected  Object readResolve()
           
 void removePropertyChangeListener(PropertyChangeListener l)
          Remove a property change listener to the object.
 void setDefaultLayoutManagerClass(String layoutManagerClass)
          Sets layout manager class which model should be opened with by default.
 void setDisplayName(String displayName)
          Sets diagram display name.
 void setEditorId(String id)
          Sets the id of editor this diagram is displayed in.
 void setNeedsInitialLayout(boolean in)
          Sets the flag indicating whether the diagram needs to be initial laid out.
 void setShowLegend(boolean showLegend)
          Sets the flag indicating whether diagram legend should be displayed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEGEND_SHOWN

public static final String LEGEND_SHOWN
Name of the Show diagram legend changed event.

See Also:
Constant Field Values

DISPLAY_NAME

public static final String DISPLAY_NAME
Name of the Diagram display name changed event.

See Also:
Constant Field Values
Constructor Detail

DiagramSettings

public DiagramSettings()
Method Detail

readResolve

protected Object readResolve()

isShowLegend

public boolean isShowLegend()
Description copied from interface: IDiagramSettings
Whether the diagram legend should be displayed.

Specified by:
isShowLegend in interface IDiagramSettings
Returns:
true if diagram legend should be displayed

setShowLegend

public void setShowLegend(boolean showLegend)
Sets the flag indicating whether diagram legend should be displayed.

Specified by:
setShowLegend in interface IDiagramSettings
Parameters:
showLegend - flag indicating whether diagram legend should be displayed
See Also:
IDiagramSettings.setShowLegend(boolean)

getDisplayName

public String getDisplayName()
Returns diagram display name.

Specified by:
getDisplayName in interface IDiagramSettings
Returns:
diagram display name
See Also:
IDiagramSettings.getDisplayName()

setDisplayName

public void setDisplayName(String displayName)
Sets diagram display name.

Specified by:
setDisplayName in interface IDiagramSettings
Parameters:
displayName - diagram display name.
See Also:
IDiagramSettings.setDisplayName(java.lang.String)

needsInitialLayout

public boolean needsInitialLayout()
Whether the diagram needs to be initial laid out.

Specified by:
needsInitialLayout in interface IDiagramSettings
Returns:
true if diagram needs to be initial laid out
See Also:
IDiagramSettings.needsInitialLayout()

setNeedsInitialLayout

public void setNeedsInitialLayout(boolean in)
Sets the flag indicating whether the diagram needs to be initial laid out.

Specified by:
setNeedsInitialLayout in interface IDiagramSettings
Parameters:
in - flag indicating whether the diagram needs to be initial laid out
See Also:
IDiagramSettings.setNeedsInitialLayout(boolean)

setDefaultLayoutManagerClass

public void setDefaultLayoutManagerClass(String layoutManagerClass)
Sets layout manager class which model should be opened with by default.

Specified by:
setDefaultLayoutManagerClass in interface IDiagramSettings
Parameters:
layoutManagerClass - LayoutManager class name
See Also:
IDiagramSettings.setDefaultLayoutManagerClass(java.lang.String)

getDefaultLayoutManagerClass

public String getDefaultLayoutManagerClass()
Gets the qualified name of diagram's layout manager class.

Specified by:
getDefaultLayoutManagerClass in interface IDiagramSettings
Returns:
LayoutManager class name
See Also:
IDiagramSettings.getDefaultLayoutManagerClass()

getEditorId

public String getEditorId()
Returns the id of editor this diagram is displayed in.

Specified by:
getEditorId in interface IDiagramSettings
Returns:
the id of editor this diagram is displayed in
See Also:
IDiagramSettings.getEditorId()

setEditorId

public void setEditorId(String id)
Sets the id of editor this diagram is displayed in.

Specified by:
setEditorId in interface IDiagramSettings
Parameters:
id - the id of editor this diagram is displayed in
See Also:
IDiagramSettings.setEditorId(java.lang.String)

addPropertyChangeListener

public 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:
IPropertyChangeProvider.addPropertyChangeListener(java.beans.PropertyChangeListener)

removePropertyChangeListener

public 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)

firePropertyChange

protected void firePropertyChange(String property,
                                  Object oldValue,
                                  Object newValue)
Notifies about property change.

Parameters:
property - name of the property
oldValue - old value of the property
newValue - new value of the property


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