|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.graph.decorators.AbstractVertexShapeFunction
be.ac.ulg.montefiore.run.totem.visualtopo.graph.GraphAspectFunctions.VertexAspectFunction
public static final class GraphAspectFunctions.VertexAspectFunction
This inner class manage all properties of the vertices representation (shapes, colors, size, ...)
Field Summary |
---|
Fields inherited from class edu.uci.ics.jung.graph.decorators.AbstractVertexShapeFunction |
---|
DEFAULT_ASPECT_RATIO, DEFAULT_SIZE, factory, varf, vsf |
Fields inherited from interface edu.uci.ics.jung.graph.decorators.VertexPaintFunction |
---|
TRANSPARENT |
Constructor Summary | |
---|---|
GraphAspectFunctions.VertexAspectFunction()
a simple constructor |
Method Summary | |
---|---|
float |
getAspectRatio(edu.uci.ics.jung.graph.Vertex v)
compute width/heigth ratio for a Vertex |
java.awt.Paint |
getDrawPaint(edu.uci.ics.jung.graph.Vertex vertex)
returns the vertex border color. |
java.awt.Paint |
getFillPaint(edu.uci.ics.jung.graph.Vertex vertex)
returns the vertex inner color. |
java.awt.Shape |
getShape(edu.uci.ics.jung.graph.Vertex v)
Compute appropiate shape for the vertex (here a circle) |
int |
getSize(edu.uci.ics.jung.graph.Vertex vertex)
return vertex size |
java.awt.Stroke |
getStroke(edu.uci.ics.jung.graph.Vertex v)
Returns border effect for the vertex |
Methods inherited from class edu.uci.ics.jung.graph.decorators.AbstractVertexShapeFunction |
---|
setAspectRatioFunction, setSizeFunction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphAspectFunctions.VertexAspectFunction()
Method Detail |
---|
public java.awt.Paint getFillPaint(edu.uci.ics.jung.graph.Vertex vertex)
getFillPaint
in interface edu.uci.ics.jung.graph.decorators.VertexPaintFunction
vertex
-
public java.awt.Paint getDrawPaint(edu.uci.ics.jung.graph.Vertex vertex)
getDrawPaint
in interface edu.uci.ics.jung.graph.decorators.VertexPaintFunction
vertex
-
public int getSize(edu.uci.ics.jung.graph.Vertex vertex)
getSize
in interface edu.uci.ics.jung.graph.decorators.VertexSizeFunction
vertex
-
public float getAspectRatio(edu.uci.ics.jung.graph.Vertex v)
getAspectRatio
in interface edu.uci.ics.jung.graph.decorators.VertexAspectRatioFunction
v
- a Vertex
public java.awt.Shape getShape(edu.uci.ics.jung.graph.Vertex v)
getShape
in interface edu.uci.ics.jung.graph.decorators.VertexShapeFunction
v
- a vertex
public java.awt.Stroke getStroke(edu.uci.ics.jung.graph.Vertex v)
getStroke
in interface edu.uci.ics.jung.graph.decorators.VertexStrokeFunction
v
- a vertex
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |