com.hp.hpl.guess.piccolo
Class PFactory

java.lang.Object
  extended bycom.hp.hpl.guess.ui.VisFactory
      extended bycom.hp.hpl.guess.piccolo.PFactory
All Implemented Interfaces:
EventListener, GraphMouseListener, UIListener

public class PFactory
extends VisFactory
implements UIListener


Field Summary
 
Fields inherited from class com.hp.hpl.guess.ui.VisFactory
ELLIPSE, ELLIPSE3D, IMAGE, JUNG, NOVIS, PICCOLO, PREFUSE, RECTANGLE, RECTANGLE3D, ROUNDRECTANGLE, ROUNDRECTANGLE3D, TEXT_ELLIPSE, TEXT_RECTANGLE, TEXT_ROUNDRECTANGLE, TOUCHGRAPH, USER
 
Constructor Summary
PFactory()
           
 
Method Summary
 void add(Edge e)
           
 void add(Node n)
           
 void clickEdge(Edge e)
           
 void clickNode(Node n)
           
 NodeListener convertNode(GuessPNode rep, int style, Node n)
           
 ConvexHull createConvexHull(Collection s, Color c)
           
 void defaultEdgeHighlights(boolean state)
           
 void defaultEdgeZooming(boolean state)
           
 void defaultNodeHighlights(boolean state)
           
 void defaultNodeZooming(boolean state)
           
 EdgeListener generateEdge(double x1, double y1, Color clr, float width, double size, Edge n)
           
 EdgeListener generateEdge(Edge n)
           
 EdgeListener generateEdge(Shape aShape, Edge n)
           
 NodeListener generateNode(int type, double x, double y, double width, double height, Color clr, Node n)
           
 NodeListener generateNode(Node n)
           
 NodeListener generateNode(Shape sp, Node n)
           
 Collection getConvexHulls()
           
 FrameListener getDisplay()
           
static long getLastUpdate()
           
 GFrame init()
           
 void mouseEnterEdge(Edge e)
           
 void mouseEnterNode(Node n)
           
 void mouseLeaveEdge(Edge e)
           
 void mouseLeaveNode(Node n)
           
 void remove(Edge e)
           
 void remove(Node n)
           
 void removeConvexHull(ConvexHull c)
           
 void setDirected(boolean dir)
           
 void shiftClickEdge(Edge e)
           
 void shiftClickNode(Node n)
           
 void updateEdge(GuessPEdge toRet, double x1, double y1, Color clr, float width, double size)
           
 void updateEdge(GuessPEdge toRet, double x1, double y1, double x2, double y2)
           
 void updateEdge(GuessPEdge toRet, Shape aShape)
           
static void updateTime()
           
 
Methods inherited from class com.hp.hpl.guess.ui.VisFactory
createConvexHull, getDirected, getFactory, getUIMode, removeConvexHulls, runNow, setFactory, shutdown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PFactory

public PFactory()
Method Detail

updateTime

public static void updateTime()

getLastUpdate

public static long getLastUpdate()

init

public GFrame init()

getDisplay

public FrameListener getDisplay()
Specified by:
getDisplay in class VisFactory

generateNode

public NodeListener generateNode(Node n)
Specified by:
generateNode in class VisFactory

generateNode

public NodeListener generateNode(int type,
                                 double x,
                                 double y,
                                 double width,
                                 double height,
                                 Color clr,
                                 Node n)
Specified by:
generateNode in class VisFactory

remove

public void remove(Node n)
Specified by:
remove in class VisFactory

remove

public void remove(Edge e)
Specified by:
remove in class VisFactory

add

public void add(Node n)
Specified by:
add in class VisFactory

add

public void add(Edge e)
Specified by:
add in class VisFactory

convertNode

public NodeListener convertNode(GuessPNode rep,
                                int style,
                                Node n)

generateNode

public NodeListener generateNode(Shape sp,
                                 Node n)

generateEdge

public EdgeListener generateEdge(Edge n)
Specified by:
generateEdge in class VisFactory

generateEdge

public EdgeListener generateEdge(Shape aShape,
                                 Edge n)

generateEdge

public EdgeListener generateEdge(double x1,
                                 double y1,
                                 Color clr,
                                 float width,
                                 double size,
                                 Edge n)

updateEdge

public void updateEdge(GuessPEdge toRet,
                       double x1,
                       double y1,
                       double x2,
                       double y2)

updateEdge

public void updateEdge(GuessPEdge toRet,
                       Shape aShape)

updateEdge

public void updateEdge(GuessPEdge toRet,
                       double x1,
                       double y1,
                       Color clr,
                       float width,
                       double size)

setDirected

public void setDirected(boolean dir)
Overrides:
setDirected in class VisFactory

createConvexHull

public ConvexHull createConvexHull(Collection s,
                                   Color c)
Overrides:
createConvexHull in class VisFactory

removeConvexHull

public void removeConvexHull(ConvexHull c)
Overrides:
removeConvexHull in class VisFactory

getConvexHulls

public Collection getConvexHulls()
Overrides:
getConvexHulls in class VisFactory

shiftClickNode

public void shiftClickNode(Node n)
Specified by:
shiftClickNode in interface UIListener

shiftClickEdge

public void shiftClickEdge(Edge e)
Specified by:
shiftClickEdge in interface UIListener

clickNode

public void clickNode(Node n)
Specified by:
clickNode in interface UIListener

clickEdge

public void clickEdge(Edge e)
Specified by:
clickEdge in interface UIListener

mouseEnterNode

public void mouseEnterNode(Node n)
Specified by:
mouseEnterNode in interface GraphMouseListener

mouseEnterEdge

public void mouseEnterEdge(Edge e)
Specified by:
mouseEnterEdge in interface GraphMouseListener

mouseLeaveNode

public void mouseLeaveNode(Node n)
Specified by:
mouseLeaveNode in interface GraphMouseListener

mouseLeaveEdge

public void mouseLeaveEdge(Edge e)
Specified by:
mouseLeaveEdge in interface GraphMouseListener

defaultNodeHighlights

public void defaultNodeHighlights(boolean state)

defaultEdgeHighlights

public void defaultEdgeHighlights(boolean state)

defaultNodeZooming

public void defaultNodeZooming(boolean state)

defaultEdgeZooming

public void defaultEdgeZooming(boolean state)