be.ac.ulg.montefiore.run.totem.visualtopo.graph
Class GraphAspectFunctions.EdgeAspectFunction

java.lang.Object
  extended by edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
      extended by edu.uci.ics.jung.graph.decorators.EdgeShape.BentLine
          extended by be.ac.ulg.montefiore.run.totem.visualtopo.graph.GraphAspectFunctions.EdgeAspectFunction
All Implemented Interfaces:
edu.uci.ics.jung.graph.decorators.EdgePaintFunction, edu.uci.ics.jung.graph.decorators.EdgeShape.ParallelRendering, edu.uci.ics.jung.graph.decorators.EdgeShapeFunction, edu.uci.ics.jung.graph.decorators.EdgeStrokeFunction
Enclosing class:
GraphAspectFunctions

public static final class GraphAspectFunctions.EdgeAspectFunction
extends edu.uci.ics.jung.graph.decorators.EdgeShape.BentLine
implements edu.uci.ics.jung.graph.decorators.EdgePaintFunction, edu.uci.ics.jung.graph.decorators.EdgeStrokeFunction

This inner class handles the aspect of the edges

Author:
Olivier Materne

Field Summary
protected static org.apache.commons.collections.Predicate is_self_loop
           
protected static edu.uci.ics.jung.graph.decorators.EdgeShape.Loop loop
           
 
Fields inherited from class edu.uci.ics.jung.graph.decorators.EdgeShape.BentLine
parallelEdgeIndexFunction
 
Fields inherited from class edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
control_offset_increment
 
Fields inherited from interface edu.uci.ics.jung.graph.decorators.EdgePaintFunction
TRANSPARENT
 
Constructor Summary
GraphAspectFunctions.EdgeAspectFunction(Domain domain)
           
 
Method Summary
 java.awt.Paint getDrawPaint(edu.uci.ics.jung.graph.Edge e)
          Draw the edge with the color choosen accordingly to link load
 java.awt.Paint getFillPaint(edu.uci.ics.jung.graph.Edge edge)
           
 java.awt.Shape getShape(edu.uci.ics.jung.graph.Edge e)
          Return the shape of the Edge.
 java.awt.Stroke getStroke(edu.uci.ics.jung.graph.Edge e)
          Handle egde shape
 
Methods inherited from class edu.uci.ics.jung.graph.decorators.EdgeShape.BentLine
setParallelEdgeIndexFunction
 
Methods inherited from class edu.uci.ics.jung.graph.decorators.AbstractEdgeShapeFunction
setControlOffsetIncrement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loop

protected static edu.uci.ics.jung.graph.decorators.EdgeShape.Loop loop

is_self_loop

protected static org.apache.commons.collections.Predicate is_self_loop
Constructor Detail

GraphAspectFunctions.EdgeAspectFunction

public GraphAspectFunctions.EdgeAspectFunction(Domain domain)
Method Detail

getShape

public java.awt.Shape getShape(edu.uci.ics.jung.graph.Edge e)
Return the shape of the Edge. With this method, if there is 2 edges between 2 nodes, they will be seen as 2 parallel lines.

Specified by:
getShape in interface edu.uci.ics.jung.graph.decorators.EdgeShapeFunction
Overrides:
getShape in class edu.uci.ics.jung.graph.decorators.EdgeShape.BentLine
Parameters:
e -
Returns:

getStroke

public java.awt.Stroke getStroke(edu.uci.ics.jung.graph.Edge e)
Handle egde shape

Specified by:
getStroke in interface edu.uci.ics.jung.graph.decorators.EdgeStrokeFunction
Parameters:
e - an Edge
Returns:
the adequate Stroke for that Edge

getFillPaint

public java.awt.Paint getFillPaint(edu.uci.ics.jung.graph.Edge edge)
Specified by:
getFillPaint in interface edu.uci.ics.jung.graph.decorators.EdgePaintFunction

getDrawPaint

public java.awt.Paint getDrawPaint(edu.uci.ics.jung.graph.Edge e)
Draw the edge with the color choosen accordingly to link load

Specified by:
getDrawPaint in interface edu.uci.ics.jung.graph.decorators.EdgePaintFunction
Parameters:
e -
Returns:


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