com.yworks.yfiles.server.graphml.folding
Class NodeViewState

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.folding.NodeViewState
All Implemented Interfaces:
IMarkupExtensionFactory

public class NodeViewState
extends java.lang.Object
implements IMarkupExtensionFactory

Data object that describes the visual appearance of a dummy node in a folded graph.

The style, labels, and layout of a dummy node may differ from the visual appearance of the expanded node.

See Also:
DummyNodeId, FoldingSupport.getNodeViewState(y.base.Graph, com.yworks.yfiles.server.graphml.folding.DummyNodeId), FoldedLayoutGraph.getNodeViewState(com.yworks.yfiles.server.graphml.folding.DummyNodeId)

Constructor Summary
NodeViewState()
           
 
Method Summary
 MarkupExtension createMarkupExtension(Lookup lookup)
          Creates a markup extension that can be used instead of the original class.
 java.util.List getLabels()
          A list of Label instances that define the labels of the collapsed node.
 YRectangle getLayout()
          The layout of the collapsed node.
 PortViewState getPortViewState(Port masterPort)
          Returns the port view state for given port of the master node this node view state belongs to.
 INodeStyle getStyle()
          The style that defines the visual appearance of the dummy node.
 void setLayout(YRectangle layout)
          The layout of the collapsed node.
 void setPortViewState(PortViewState portViewState)
          Sets the port view state for a master port of the master node this node view state belongs to.
 void setStyle(INodeStyle style)
          The style that defines the visual appearance of the dummy node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeViewState

public NodeViewState()
Method Detail

getStyle

public INodeStyle getStyle()
The style that defines the visual appearance of the dummy node.


setStyle

public void setStyle(INodeStyle style)
The style that defines the visual appearance of the dummy node.


getLabels

public java.util.List getLabels()
A list of Label instances that define the labels of the collapsed node.


getLayout

public YRectangle getLayout()
The layout of the collapsed node.


setLayout

public void setLayout(YRectangle layout)
The layout of the collapsed node.


setPortViewState

public void setPortViewState(PortViewState portViewState)
Sets the port view state for a master port of the master node this node view state belongs to.

Parameters:
portViewState - The port view state that shall be set.

getPortViewState

public PortViewState getPortViewState(Port masterPort)
Returns the port view state for given port of the master node this node view state belongs to.

Parameters:
masterPort - The master port to return the view state for.
Returns:
The port view state for the given master port or null if no such port view state has been set before.

createMarkupExtension

public MarkupExtension createMarkupExtension(Lookup lookup)
Description copied from interface: IMarkupExtensionFactory
Creates a markup extension that can be used instead of the original class.

Specified by:
createMarkupExtension in interface IMarkupExtensionFactory
Parameters:
lookup - The lookup that shall be considered when creating the markup extension.


Copyright © 2000-2013 yWorks GmbH. All rights reserved