Class EDU.auburn.VGJ.gui.GraphCanvas
All Packages Class Hierarchy This Package Previous Next Index
Class EDU.auburn.VGJ.gui.GraphCanvas
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----EDU.auburn.VGJ.gui.OffsetCanvas
|
+----EDU.auburn.VGJ.gui.GraphCanvas
- public class GraphCanvas
- extends OffsetCanvas
- implements GraphUpdate
A window class for editing and displaying Graphs.
Here is the source.
-
CREATE_EDGES
-
-
CREATE_NODES
-
-
hSpacing
-
-
MOUSEMOVE
-
-
SELECT_BOTH
-
-
SELECT_EDGES
-
-
SELECT_NODES
-
-
UPDATE
-
-
vSpacing
-
-
GraphCanvas(Graph, Frame)
-
-
center()
-
-
contentsSize()
- Return the size of the contents.
-
deleteSelected(boolean)
-
-
drawObjects_(boolean, Graphics, int)
-
-
drawRotatedText(String, double, int, int, Graphics, int)
-
-
getCenter()
-
-
getDrawBounds_(DPoint, DPoint)
-
-
getFont()
-
-
getFrame()
-
-
getGraph()
-
-
getHSpacing()
-
-
getOffset()
-
-
getSelectedNode()
-
-
getVSpacing()
-
-
groupControl(int)
-
-
handleEvent(Event)
-
-
keyDown(Event, int)
-
-
mouseDown(Event, int, int)
-
-
mouseDrag(Event, int, int)
-
-
mouseExit(Event, int, int)
-
-
mouseMove(Event, int, int)
-
-
mouseUp(Event, int, int)
-
-
paint(Graphics)
-
-
paintOver()
-
-
preferredSize()
-
-
removeEdgeBends()
-
-
removeGroups()
-
-
removeNotify()
-
-
scale(double)
-
-
scaleBounds(boolean)
-
-
selectAll()
-
-
selectNode(int)
-
-
setDirected(boolean)
-
-
setEdgeProperties(boolean)
-
-
setFont(Font)
-
-
setMouseMode(int)
-
-
setNodeProperties(boolean)
-
-
setOffsets(double, double, boolean)
- Adjust the offset of the contents of the canvas.
-
setQuality(int)
-
-
setScale(double)
-
-
setViewAngles(double, double)
-
-
setWireframe(boolean)
-
-
toPS(double, double, double, double, double, double, double, boolean)
-
-
unselectItems()
-
-
update(boolean)
-
-
windowRect()
-
MOUSEMOVE
public final static int MOUSEMOVE
CREATE_NODES
public final static int CREATE_NODES
CREATE_EDGES
public final static int CREATE_EDGES
SELECT_NODES
public final static int SELECT_NODES
SELECT_EDGES
public final static int SELECT_EDGES
SELECT_BOTH
public final static int SELECT_BOTH
UPDATE
public final static int UPDATE
hSpacing
public double hSpacing
vSpacing
public double vSpacing
GraphCanvas
public GraphCanvas(Graph graph_in,
Frame frame_in)
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
paint
public synchronized void paint(Graphics graphics)
- Overrides:
- paint in class Canvas
paintOver
public synchronized void paintOver()
drawObjects_
public synchronized void drawObjects_(boolean selected,
Graphics graphics,
int which_gr)
mouseDown
public boolean mouseDown(Event e,
int x_in,
int y_in)
- Overrides:
- mouseDown in class Component
mouseDrag
public boolean mouseDrag(Event e,
int x_in,
int y_in)
- Overrides:
- mouseDrag in class Component
mouseMove
public boolean mouseMove(Event event,
int x_in,
int y_in)
- Overrides:
- mouseMove in class Component
mouseUp
public boolean mouseUp(Event e,
int x_in,
int y_in)
- Overrides:
- mouseUp in class Component
mouseExit
public boolean mouseExit(Event event,
int x_in,
int y_in)
- Overrides:
- mouseExit in class Component
contentsSize
public DDimension contentsSize()
- Return the size of the contents.
- Overrides:
- contentsSize in class OffsetCanvas
setOffsets
public void setOffsets(double xoffset,
double yoffset,
boolean redraw)
- Adjust the offset of the contents of the canvas.
- Overrides:
- setOffsets in class OffsetCanvas
getOffset
public DPoint getOffset()
- Overrides:
- getOffset in class OffsetCanvas
setScale
public void setScale(double new_scale)
setViewAngles
public void setViewAngles(double theta,
double phi)
getCenter
public DPoint3 getCenter()
update
public void update(boolean adjust_bounds)
scale
public void scale(double scaleval)
center
public void center()
getFrame
public Frame getFrame()
getGraph
public Graph getGraph()
deleteSelected
public void deleteSelected(boolean group_warning)
getSelectedNode
public Node getSelectedNode()
unselectItems
public void unselectItems()
scaleBounds
public void scaleBounds(boolean sb)
setMouseMode
public void setMouseMode(int mode)
windowRect
public DRect windowRect()
setDirected
public void setDirected(boolean directed)
toPS
public String toPS(double width,
double height,
double pagewidth,
double pageheight,
double fontsize,
double margin,
double overlap,
boolean landscape)
getDrawBounds_
public void getDrawBounds_(DPoint width,
DPoint height)
setNodeProperties
public void setNodeProperties(boolean always_default)
setEdgeProperties
public void setEdgeProperties(boolean always_default)
selectAll
public void selectAll()
getHSpacing
public double getHSpacing()
getVSpacing
public double getVSpacing()
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
keyDown
public boolean keyDown(Event e,
int key)
- Overrides:
- keyDown in class Component
removeNotify
public synchronized void removeNotify()
- Overrides:
- removeNotify in class Component
getFont
public Font getFont()
- Overrides:
- getFont in class Component
setFont
public void setFont(Font font)
- Overrides:
- setFont in class Component
setWireframe
public void setWireframe(boolean wireframe)
setQuality
public void setQuality(int quality)
removeEdgeBends
public void removeEdgeBends()
removeGroups
public void removeGroups()
groupControl
public void groupControl(int key)
drawRotatedText
public void drawRotatedText(String string,
double theta,
int cx,
int cy,
Graphics graphics_in,
int which_gr)
selectNode
public void selectNode(int node_index)
All Packages Class Hierarchy This Package Previous Next Index