org.pzgui.layout
Interface Layoutable

All Known Subinterfaces:
Vertex<E>
All Known Implementing Classes:
AbstractLayoutable, Host, LayoutableIcon, Node, NodeWithPorts, OpenFlowSwitch, SimpleNode, SimpleNodeWithPorts, VirtualOpenFlowSwitch

public interface Layoutable

Indicates an object which can be laid out.

Author:
David Underhill

Method Summary
 boolean canPositionChange()
          whether the position can be changed
 int getHeight()
          gets the height of this object
 long getID()
          Returns a unique ID for this node
 java.awt.geom.Point2D getPos()
          returns the x and y coordinates of this object
 int getWidth()
          gets the width of this object
 int getX()
          returns the x-coordinate of this object
 int getY()
          returns the y-coordinate of this object
 boolean hasPositionChanged()
          whether the position changed since the previous unsetPositionChanged() call
 void setCanPositionChange(boolean can)
          set whether the position can be changed
 void setPos(int x, int y)
          sets the x and y coordinates of this object
 void setXPos(int x)
          sets the x-coordinate of this object
 void setYPos(int y)
          sets the y-coordinate of this object
 void unsetPositionChanged()
          Causes hasPositionChanged() to return false until set*Pos() is called.
 

Method Detail

getPos

java.awt.geom.Point2D getPos()
returns the x and y coordinates of this object


getX

int getX()
returns the x-coordinate of this object


getY

int getY()
returns the y-coordinate of this object


setPos

void setPos(int x,
            int y)
sets the x and y coordinates of this object


setXPos

void setXPos(int x)
sets the x-coordinate of this object


setYPos

void setYPos(int y)
sets the y-coordinate of this object


getHeight

int getHeight()
gets the height of this object


getWidth

int getWidth()
gets the width of this object


hasPositionChanged

boolean hasPositionChanged()
whether the position changed since the previous unsetPositionChanged() call


unsetPositionChanged

void unsetPositionChanged()
Causes hasPositionChanged() to return false until set*Pos() is called.


canPositionChange

boolean canPositionChange()
whether the position can be changed


setCanPositionChange

void setCanPositionChange(boolean can)
set whether the position can be changed


getID

long getID()
Returns a unique ID for this node