ca.sqlpower.architect.layout
Class AbstractLayoutNode

java.lang.Object
  extended by ca.sqlpower.architect.layout.AbstractLayoutNode
All Implemented Interfaces:
LayoutNode

public abstract class AbstractLayoutNode
extends java.lang.Object
implements LayoutNode

Provides all the redundant features of the LayoutNode interface. You only have to implement the getBounds(Rectangle), getInboundEdges(), and getOutboundEdges(), getNodeName(), and setBounds(int, int, int, int) methods.


Constructor Summary
AbstractLayoutNode()
           
 
Method Summary
 java.awt.Rectangle getBounds()
           
abstract  java.awt.Rectangle getBounds(java.awt.Rectangle b)
           
 int getHeight()
           
abstract  java.util.List<LayoutEdge> getInboundEdges()
           
 java.awt.Point getLocation()
           
abstract  java.lang.String getNodeName()
           
abstract  java.util.List<LayoutEdge> getOutboundEdges()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
abstract  void setBounds(int x, int i, int width, int height)
           
 void setLocation(int x, int y)
           
 void setLocation(java.awt.Point pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractLayoutNode

public AbstractLayoutNode()
Method Detail

getBounds

public abstract java.awt.Rectangle getBounds(java.awt.Rectangle b)
Specified by:
getBounds in interface LayoutNode

getInboundEdges

public abstract java.util.List<LayoutEdge> getInboundEdges()
Specified by:
getInboundEdges in interface LayoutNode

getOutboundEdges

public abstract java.util.List<LayoutEdge> getOutboundEdges()
Specified by:
getOutboundEdges in interface LayoutNode

getNodeName

public abstract java.lang.String getNodeName()
Specified by:
getNodeName in interface LayoutNode

setBounds

public abstract void setBounds(int x,
                               int i,
                               int width,
                               int height)
Specified by:
setBounds in interface LayoutNode

getBounds

public java.awt.Rectangle getBounds()
Specified by:
getBounds in interface LayoutNode

getX

public int getX()
Specified by:
getX in interface LayoutNode

getY

public int getY()
Specified by:
getY in interface LayoutNode

getWidth

public int getWidth()
Specified by:
getWidth in interface LayoutNode

getHeight

public int getHeight()
Specified by:
getHeight in interface LayoutNode

getLocation

public java.awt.Point getLocation()
Specified by:
getLocation in interface LayoutNode

setLocation

public void setLocation(int x,
                        int y)
Specified by:
setLocation in interface LayoutNode

setLocation

public void setLocation(java.awt.Point pos)
Specified by:
setLocation in interface LayoutNode


Copyright © 2003-2007 SQL Power Group Inc. www.sqlpower.ca