be.ac.ulg.montefiore.run.totem.visualtopo.graph
Class ModifiedPluggableRenderer

java.lang.Object
  extended by edu.uci.ics.jung.visualization.AbstractRenderer
      extended by edu.uci.ics.jung.visualization.PluggableRenderer
          extended by be.ac.ulg.montefiore.run.totem.visualtopo.graph.ModifiedPluggableRenderer
All Implemented Interfaces:
edu.uci.ics.jung.visualization.HasShapeFunctions, edu.uci.ics.jung.visualization.PickedInfo, edu.uci.ics.jung.visualization.Renderer
Direct Known Subclasses:
MyPluggableRenderer, MyPluggableRenderer

public class ModifiedPluggableRenderer
extends edu.uci.ics.jung.visualization.PluggableRenderer

Pluggable renderer with a red arrow.

Creation date: 12/10/2007

Author:
Gaƫl Monfort (monfort@run.montefiore.ulg.ac.be)

Field Summary
 
Fields inherited from class edu.uci.ics.jung.visualization.PluggableRenderer
arrow_placement_tolerance, centerVertexLabel, DASHED, dashing, DOTTED, dotting, edgeArrowFunction, edgeArrowPredicate, edgeFontFunction, edgeIncludePredicate, edgeLabelClosenessFunction, edgePaintFunction, edgeShapeFunction, edgeStringer, edgeStrokeFunction, graphLabelRenderer, LABEL_OFFSET, MAX_ITERATIONS, parallelEdgeIndexFunction, rendererPane, screenDevice, self_loop, vertexFontFunction, vertexIconFunction, vertexIncludePredicate, vertexPaintFunction, vertexShapeFunction, vertexStringer, vertexStrokeFunction, viewTransformer
 
Constructor Summary
ModifiedPluggableRenderer()
           
 
Method Summary
protected  void drawSimpleEdge(java.awt.Graphics2D g, edu.uci.ics.jung.graph.Edge e, int x1, int y1, int x2, int y2)
          This function is a simple copy-paste of parent (defined in PluggableRenderer) with just a small change to draw the arrows in red.
 
Methods inherited from class edu.uci.ics.jung.visualization.PluggableRenderer
getArrowTransform, getArrowTransform, getEdgeArrowFunction, getEdgeArrowPredicate, getEdgeFontFunction, getEdgeIncludePredicate, getEdgeLabelClosenessFunction, getEdgePaintFunction, getEdgeShapeFunction, getEdgeStringer, getEdgeStrokeFunction, getFirstOutsideSegment, getGraphLabelRenderer, getLastOutsideSegment, getParallelEdgeIndexFunction, getRendererPane, getReverseArrowTransform, getReverseArrowTransform, getReverseArrowTransform, getScreenDevice, getVertexFontFunction, getVertexIconFunction, getVertexIncludePredicate, getVertexLabelCentering, getVertexPaintFunction, getVertexShapeFunction, getVertexStringer, getVertexStrokeFunction, isPicked, isPicked, labelEdge, labelVertex, paintEdge, paintIconForVertex, paintShapeForVertex, paintVertex, prepareRenderer, prepareRenderer, setArrowPlacementTolerance, setEdgeArrowFunction, setEdgeArrowPredicate, setEdgeColorFunction, setEdgeFontFunction, setEdgeIncludePredicate, setEdgeLabelClosenessFunction, setEdgePaintFunction, setEdgeShapeFunction, setEdgeStringer, setEdgeStrokeFunction, setGraphLabelRenderer, setParallelEdgeIndexFunction, setRendererPane, setScreenDevice, setVertexColorFunction, setVertexFontFunction, setVertexIconFunction, setVertexIncludePredicate, setVertexLabelCentering, setVertexPaintFunction, setVertexShapeFunction, setVertexStringer, setVertexStrokeFunction, setViewTransformer, subdivide
 
Methods inherited from class edu.uci.ics.jung.visualization.AbstractRenderer
getPickedKey, setPickedKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiedPluggableRenderer

public ModifiedPluggableRenderer()
Method Detail

drawSimpleEdge

protected void drawSimpleEdge(java.awt.Graphics2D g,
                              edu.uci.ics.jung.graph.Edge e,
                              int x1,
                              int y1,
                              int x2,
                              int y2)
This function is a simple copy-paste of parent (defined in PluggableRenderer) with just a small change to draw the arrows in red.

Overrides:
drawSimpleEdge in class edu.uci.ics.jung.visualization.PluggableRenderer
Parameters:
g -
e -
x1 -
y1 -
x2 -
y2 -


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.