All Packages This Package Class Hierarchy Class Search Index
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----EditorPanel
| Summary |
public class EditorPanel
extends java.awt.Panel
implements java.lang.Runnable,
java.io.Serializable
{
// Methods 10
public Dimension getMinimumSize();
public Dimension getPreferredSize();
public boolean isOnEdge(Edge, double, double);
public boolean isOnNode(Node, double, double);
public void layoutChildren(Node);
public void paintNode(Graphics, Node, FontMetrics);
public void run();
public void start();
public void stop();
public synchronized void update(Graphics);
}
This software is a modification of the demo "Graph.java" from Sun Microsystems, Inc. added methods: getPreferredSize getMinimumSize findEdge deleteNode deleteEdge updateChildren updateParents layoutChildren isOnNode isOnEdge import: Editor export: getMinimumSize(), Dimension getPreferredSize(), Dimension isOnEdge(Edge, double, double), boolean isOnNode(Node, double, double), boolean layoutChildren(Node), void paintNode(Graphics, Node, FontMetrics), void run(), void start(), void public void stop(), void
| Methods |
getPreferredSize | Summary | Top |
public Dimension getPreferredSize()
specify panel size
- Overrides:
- getPreferredSize in class Container
getMinimumSize | Summary | Top |
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class Container
isOnNode | Summary | Top |
public boolean isOnNode(Node n,
double x,
double y)
Method isOnNode(Node n, double x, double y): boolean. pre: true. post: isOnNode is true if (x,y) is on node area
isOnEdge | Summary | Top |
public boolean isOnEdge(Edge ed,
double x,
double y)
Method isOnEdge(Edge ed ,double x, double y): boolean pre: true. post: isOnEdge is true if "(x,y) polar coordinate" is closed to "edge polar coordinate".
layoutChildren | Summary | Top |
public void layoutChildren(Node parent)
Method layoutChildren(Node parent). pre: true. post: children coordinates updated.
run | Summary | Top |
public void run()
- Implements:
- run in interface Runnable
paintNode | Summary | Top |
public void paintNode(Graphics g,
Node n,
FontMetrics fm)
Drawing node method
update | Summary | Top |
public synchronized void update(Graphics g)
- Overrides:
- update in class Container
start | Summary | Top |
public void start()
stop | Summary | Top |
public void stop()
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.6