com.tensegrity.gui.graphdocument
Class GraphPanelAttributableOnSetDelegate

java.lang.Object
  extended bycom.tensegrity.gui.graphdocument.GraphPanelAttributableOnSetDelegate
All Implemented Interfaces:
AttributableOnSetDelegate
Direct Known Subclasses:
SwingGraphPanelAttributableOnSetDelegate, SwtGraphPanelAttributableOnSetDelegate

public abstract class GraphPanelAttributableOnSetDelegate
extends java.lang.Object
implements AttributableOnSetDelegate

The AttributableOnSetDelegate for a GraphPanel. Depending on the selection the returned attributable contains attributes of the Graph and VisualGraphView or of the selected items.

Author:
GillesIachelini, BurkhardWick

Field Summary
static java.lang.String ATTRIBUTE_ANTIALIAS
          Constant for the AntiAlias String.
 
Constructor Summary
GraphPanelAttributableOnSetDelegate(UIManager uiManager, GraphPanel graphPanel)
          Constructor
 
Method Summary
 void determineAttributableOnSet(AttributeEditor attributeeditor, VisualGraphView view)
          This method is called when its required to set an AttributableOnSet on the parameter attributeEditor.
 AttributableOnSet getAttributable()
          Returns the associated AttributableOnSet instance of this delegate.
 AttributableOnSet getDeterminedAttributableOnSet()
          Returns the attributable that has been determined in the last call to determineAttributableOnSet(AttributeEditor, VisualGraphView).
protected  GraphPanel getGraphPanel()
          Returns the GraphPanel this instance is assigned to.
protected  void updateGraphAttributes(Graph activegraph, VisualGraphView activevisualgraph)
          The method updateGraphAttributes adds all the Graph related attributes to the internal attributable instance.
protected  void updateLayoutAttributes(VisualGraphView activevisualgraph)
          Updates the Attributes of the view.
 void updateViewAttributes(VisualGraphView vgv)
          Updates the Attributes of the view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_ANTIALIAS

public static final java.lang.String ATTRIBUTE_ANTIALIAS
Constant for the AntiAlias String.

See Also:
Constant Field Values
Constructor Detail

GraphPanelAttributableOnSetDelegate

public GraphPanelAttributableOnSetDelegate(UIManager uiManager,
                                           GraphPanel graphPanel)
Constructor

Parameters:
uiManager - An optional UIManager for the translation of the attribute names of common graph information. This value is deprecated and should be null!
graphPanel - The graphPanel to get the information from
Method Detail

determineAttributableOnSet

public void determineAttributableOnSet(AttributeEditor attributeeditor,
                                       VisualGraphView view)
Description copied from interface: AttributableOnSetDelegate
This method is called when its required to set an AttributableOnSet on the parameter attributeEditor. The parameter view is typically the originator the event which forces an encapsulating panel to invoke this method.

Specified by:
determineAttributableOnSet in interface AttributableOnSetDelegate
Parameters:
attributeeditor - The attribute editor component used for editing attributes
view - The visual graph view

getDeterminedAttributableOnSet

public AttributableOnSet getDeterminedAttributableOnSet()
Returns the attributable that has been determined in the last call to determineAttributableOnSet(AttributeEditor, VisualGraphView).

Returns:
the attributable

updateGraphAttributes

protected final void updateGraphAttributes(Graph activegraph,
                                           VisualGraphView activevisualgraph)
The method updateGraphAttributes adds all the Graph related attributes to the internal attributable instance.

Parameters:
activegraph - A Graph to obtain attributes from.
activevisualgraph - A VisualGraphView to obtain attributes from.

updateLayoutAttributes

protected final void updateLayoutAttributes(VisualGraphView activevisualgraph)
Updates the Attributes of the view.

Parameters:
activevisualgraph - the VisualGraphView to collect the Attributes of.

updateViewAttributes

public final void updateViewAttributes(VisualGraphView vgv)
Updates the Attributes of the view.

Parameters:
vgv - the VisualGraphView to collect the Attributes of.

getGraphPanel

protected final GraphPanel getGraphPanel()
Returns the GraphPanel this instance is assigned to.

Returns:
the GraphPanel this instance is assigned to.

getAttributable

public AttributableOnSet getAttributable()
Returns the associated AttributableOnSet instance of this delegate.

Returns:
the AttributableOnSet of this Delegate.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.