de.cau.cs.kieler.kiml.ui.diagram
Class LayoutMapping<T>

java.lang.Object
  extended by de.cau.cs.kieler.core.properties.MapPropertyHolder
      extended by de.cau.cs.kieler.kiml.ui.diagram.LayoutMapping<T>
Type Parameters:
T - the type of diagram parts to store in the mapping
All Implemented Interfaces:
IPropertyHolder

public class LayoutMapping<T>
extends MapPropertyHolder

A layout mapping describes the relation between a graphical diagram and the layout graph that is created by diagram layout managers.

Rating red

Constructor Summary
LayoutMapping()
           
 
Method Summary
 com.google.common.collect.BiMap<KGraphElement,T> getGraphMap()
          Returns the bidirectional mapping of layout graph elements to diagram parts.
 List<ILayoutConfig> getLayoutConfigs()
          Returns the additional layout configurations for specification of layout options.
 KNode getLayoutGraph()
          Returns the top-level parent node of the layout graph.
 T getParentElement()
          Returns the top-level diagram part.
 void setLayoutGraph(KNode thelayoutGraph)
          Set the top-level parent node of the layout graph.
 void setParentElement(T theparentElem)
          Set the top-level diagram part.
 
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder
checkProperties, copyProperties, getAllProperties, getProperty, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutMapping

public LayoutMapping()
Method Detail

getGraphMap

public com.google.common.collect.BiMap<KGraphElement,T> getGraphMap()
Returns the bidirectional mapping of layout graph elements to diagram parts.

Returns:
the graph element map

setLayoutGraph

public void setLayoutGraph(KNode thelayoutGraph)
Set the top-level parent node of the layout graph.

Parameters:
thelayoutGraph - the layout graph

getLayoutGraph

public KNode getLayoutGraph()
Returns the top-level parent node of the layout graph.

Returns:
the layout graph

getLayoutConfigs

public List<ILayoutConfig> getLayoutConfigs()
Returns the additional layout configurations for specification of layout options. The returned list is initially empty.

Returns:
the layout configurations

setParentElement

public void setParentElement(T theparentElem)
Set the top-level diagram part.

Parameters:
theparentElem - the parent diagram part

getParentElement

public T getParentElement()
Returns the top-level diagram part.

Returns:
the parent diagram part