org.globus.cog.gui.grapheditor.targets.ps
Class PostScriptGraphView

java.lang.Object
  extended byorg.globus.cog.gui.grapheditor.canvas.views.AbstractView
      extended byorg.globus.cog.gui.grapheditor.targets.ps.PostScriptGraphView
All Implemented Interfaces:
CanvasView, StreamView

public class PostScriptGraphView
extends AbstractView
implements StreamView


Field Summary
static String LOCATION
           
static String SIZE
           
 
Constructor Summary
PostScriptGraphView()
           
PostScriptGraphView(GraphLayoutEngine engine)
           
PostScriptGraphView(GraphLayoutEngine engine, String name)
           
 
Method Summary
 void clean()
          Cleans up this view.
 GraphLayoutEngine getLayoutEngine()
           
 CanvasView getNewInstance(GraphCanvas canvas)
           
static Point getRectIntersection(int x, int y, int width, int height, Point p)
           
 void graphChanged(GraphChangedEvent e)
           
 void invalidate()
          Forces the view to reevaluate its internal state.
 void invalidate(boolean ignoreOld)
           
 void reLayout()
           
 void render(Writer wr)
           
 void setLayoutEngine(GraphLayoutEngine layoutEngine)
           
 
Methods inherited from class org.globus.cog.gui.grapheditor.canvas.views.AbstractView
activate, addTransformation, getCanvas, getGraph, getName, getRenderer, getTransformations, getType, getViewport, isActive, isSelective, setGraph, setName, setRenderer, setTransformation, setType, setViewport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.globus.cog.gui.grapheditor.canvas.views.CanvasView
activate, addTransformation, getGraph, getName, getRenderer, getViewport, isSelective, setGraph, setRenderer, setTransformation, setViewport
 

Field Detail

LOCATION

public static final String LOCATION
See Also:
Constant Field Values

SIZE

public static final String SIZE
See Also:
Constant Field Values
Constructor Detail

PostScriptGraphView

public PostScriptGraphView()

PostScriptGraphView

public PostScriptGraphView(GraphLayoutEngine engine)

PostScriptGraphView

public PostScriptGraphView(GraphLayoutEngine engine,
                           String name)
Method Detail

getLayoutEngine

public GraphLayoutEngine getLayoutEngine()

setLayoutEngine

public void setLayoutEngine(GraphLayoutEngine layoutEngine)

getNewInstance

public CanvasView getNewInstance(GraphCanvas canvas)
Specified by:
getNewInstance in interface CanvasView
Overrides:
getNewInstance in class AbstractView

invalidate

public void invalidate()
Description copied from interface: CanvasView
Forces the view to reevaluate its internal state. This method is called whenever the structure of the graph changes

Specified by:
invalidate in interface CanvasView
Overrides:
invalidate in class AbstractView

reLayout

public void reLayout()
Specified by:
reLayout in interface CanvasView
Overrides:
reLayout in class AbstractView

invalidate

public void invalidate(boolean ignoreOld)

graphChanged

public void graphChanged(GraphChangedEvent e)

getRectIntersection

public static Point getRectIntersection(int x,
                                        int y,
                                        int width,
                                        int height,
                                        Point p)

clean

public void clean()
Description copied from interface: CanvasView
Cleans up this view. This method should be called when a view is deactivated. The view can be reused later, by invalidating it.

Specified by:
clean in interface CanvasView
Overrides:
clean in class AbstractView

render

public void render(Writer wr)
            throws IOException
Specified by:
render in interface StreamView
Throws:
IOException