org.wilmascope.graph
Class NodeLayout

java.lang.Object
  extended by org.wilmascope.graph.NodeLayout
All Implemented Interfaces:
Layable, NodeAbility
Direct Known Subclasses:
DotNodeLayout, FastNodeLayout, HDNodeLayout, MultiScaleNodeLayout, NodeForceLayout

public abstract class NodeLayout
extends java.lang.Object
implements Layable, NodeAbility

Title: WilmaToo Description: Sequel to the ever popular WilmaScope software Copyright: Copyright (c) 2001 Company: WilmaScope.org

Version:
1.0 An interface to be implemented by classes providing properties for nodes that can be placed by a LayoutEngine
Author:
Tim Dwyer

Constructor Summary
NodeLayout()
           
 
Method Summary
 void delete()
          dereference links
 Node getNode()
          Return the node for the NodeLayout
 boolean isFixedPosition()
           
 void resetProperties()
          Reset's properties common to all layouts, these include: FixedPosition Should be overridden with a call to this inherited method to load any properties from the node properties that are specific to the layout engine
 void setFixedPosition(boolean fixed)
           
 void setNode(Node node)
          Set the node for the NodeLayout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeLayout

public NodeLayout()
Method Detail

delete

public void delete()
dereference links

Specified by:
delete in interface Layable

setNode

public void setNode(Node node)
Set the node for the NodeLayout

Specified by:
setNode in interface NodeAbility

getNode

public Node getNode()
Return the node for the NodeLayout

Specified by:
getNode in interface NodeAbility

isFixedPosition

public boolean isFixedPosition()

setFixedPosition

public void setFixedPosition(boolean fixed)

resetProperties

public void resetProperties()
Reset's properties common to all layouts, these include: FixedPosition Should be overridden with a call to this inherited method to load any properties from the node properties that are specific to the layout engine