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.

Variable Index

 o CREATE_EDGES
 o CREATE_NODES
 o hSpacing
 o MOUSEMOVE
 o SELECT_BOTH
 o SELECT_EDGES
 o SELECT_NODES
 o UPDATE
 o vSpacing

Constructor Index

 o GraphCanvas(Graph, Frame)

Method Index

 o center()
 o contentsSize()
Return the size of the contents.
 o deleteSelected(boolean)
 o drawObjects_(boolean, Graphics, int)
 o drawRotatedText(String, double, int, int, Graphics, int)
 o getCenter()
 o getDrawBounds_(DPoint, DPoint)
 o getFont()
 o getFrame()
 o getGraph()
 o getHSpacing()
 o getOffset()
 o getSelectedNode()
 o getVSpacing()
 o groupControl(int)
 o handleEvent(Event)
 o keyDown(Event, int)
 o mouseDown(Event, int, int)
 o mouseDrag(Event, int, int)
 o mouseExit(Event, int, int)
 o mouseMove(Event, int, int)
 o mouseUp(Event, int, int)
 o paint(Graphics)
 o paintOver()
 o preferredSize()
 o removeEdgeBends()
 o removeGroups()
 o removeNotify()
 o scale(double)
 o scaleBounds(boolean)
 o selectAll()
 o selectNode(int)
 o setDirected(boolean)
 o setEdgeProperties(boolean)
 o setFont(Font)
 o setMouseMode(int)
 o setNodeProperties(boolean)
 o setOffsets(double, double, boolean)
Adjust the offset of the contents of the canvas.
 o setQuality(int)
 o setScale(double)
 o setViewAngles(double, double)
 o setWireframe(boolean)
 o toPS(double, double, double, double, double, double, double, boolean)
 o unselectItems()
 o update(boolean)
 o windowRect()

Variables

 o MOUSEMOVE
  public final static int MOUSEMOVE
 o CREATE_NODES
  public final static int CREATE_NODES
 o CREATE_EDGES
  public final static int CREATE_EDGES
 o SELECT_NODES
  public final static int SELECT_NODES
 o SELECT_EDGES
  public final static int SELECT_EDGES
 o SELECT_BOTH
  public final static int SELECT_BOTH
 o UPDATE
  public final static int UPDATE
 o hSpacing
  public double hSpacing
 o vSpacing
  public double vSpacing

Constructors

 o GraphCanvas
  public GraphCanvas(Graph graph_in,
                     Frame frame_in)

Methods

 o preferredSize
  public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o paint
  public synchronized void paint(Graphics graphics)
Overrides:
paint in class Canvas
 o paintOver
  public synchronized void paintOver()
 o drawObjects_
  public synchronized void drawObjects_(boolean selected,
                                        Graphics graphics,
                                        int which_gr)
 o mouseDown
  public boolean mouseDown(Event e,
                           int x_in,
                           int y_in)
Overrides:
mouseDown in class Component
 o mouseDrag
  public boolean mouseDrag(Event e,
                           int x_in,
                           int y_in)
Overrides:
mouseDrag in class Component
 o mouseMove
  public boolean mouseMove(Event event,
                           int x_in,
                           int y_in)
Overrides:
mouseMove in class Component
 o mouseUp
  public boolean mouseUp(Event e,
                         int x_in,
                         int y_in)
Overrides:
mouseUp in class Component
 o mouseExit
  public boolean mouseExit(Event event,
                           int x_in,
                           int y_in)
Overrides:
mouseExit in class Component
 o contentsSize
  public DDimension contentsSize()
Return the size of the contents.
Overrides:
contentsSize in class OffsetCanvas
 o setOffsets
  public void setOffsets(double xoffset,
                         double yoffset,
                         boolean redraw)
Adjust the offset of the contents of the canvas.
Overrides:
setOffsets in class OffsetCanvas
 o getOffset
  public DPoint getOffset()
Overrides:
getOffset in class OffsetCanvas
 o setScale
  public void setScale(double new_scale)
 o setViewAngles
  public void setViewAngles(double theta,
                            double phi)
 o getCenter
  public DPoint3 getCenter()
 o update
  public void update(boolean adjust_bounds)
 o scale
  public void scale(double scaleval)
 o center
  public void center()
 o getFrame
  public Frame getFrame()
 o getGraph
  public Graph getGraph()
 o deleteSelected
  public void deleteSelected(boolean group_warning)
 o getSelectedNode
  public Node getSelectedNode()
 o unselectItems
  public void unselectItems()
 o scaleBounds
  public void scaleBounds(boolean sb)
 o setMouseMode
  public void setMouseMode(int mode)
 o windowRect
  public DRect windowRect()
 o setDirected
  public void setDirected(boolean directed)
 o toPS
  public String toPS(double width,
                     double height,
                     double pagewidth,
                     double pageheight,
                     double fontsize,
                     double margin,
                     double overlap,
                     boolean landscape)
 o getDrawBounds_
  public void getDrawBounds_(DPoint width,
                             DPoint height)
 o setNodeProperties
  public void setNodeProperties(boolean always_default)
 o setEdgeProperties
  public void setEdgeProperties(boolean always_default)
 o selectAll
  public void selectAll()
 o getHSpacing
  public double getHSpacing()
 o getVSpacing
  public double getVSpacing()
 o handleEvent
  public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component
 o keyDown
  public boolean keyDown(Event e,
                         int key)
Overrides:
keyDown in class Component
 o removeNotify
  public synchronized void removeNotify()
Overrides:
removeNotify in class Component
 o getFont
  public Font getFont()
Overrides:
getFont in class Component
 o setFont
  public void setFont(Font font)
Overrides:
setFont in class Component
 o setWireframe
  public void setWireframe(boolean wireframe)
 o setQuality
  public void setQuality(int quality)
 o removeEdgeBends
  public void removeEdgeBends()
 o removeGroups
  public void removeGroups()
 o groupControl
  public void groupControl(int key)
 o drawRotatedText
  public void drawRotatedText(String string,
                              double theta,
                              int cx,
                              int cy,
                              Graphics graphics_in,
                              int which_gr)
 o selectNode
  public void selectNode(int node_index)

All Packages  Class Hierarchy  This Package  Previous  Next  Index