|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface GraphCreator<V,E>
Creates a graph which can be displayed by the graph viewer. This class serves as a sort of graph model combined with some methods tuning the displaying of nodes and edges in the graph.
| Field Summary | |
|---|---|
static int |
EDGE_SHAPE_BENT_LINE
|
static int |
EDGE_SHAPE_CUBIC_CURVE
|
static int |
EDGE_SHAPE_LINE
|
static int |
EDGE_SHAPE_QUAD_CURVE
|
static int |
EDGE_SHAPE_WEDGE
|
| Method Summary | |
|---|---|
edu.uci.ics.jung.graph.Graph<V,E> |
createGraph()
Creates the graph. |
edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V,E> |
getEdgeLabelRenderer()
Returns the renderer for edge labels. |
java.lang.String |
getEdgeName(E id)
Returns the text that should be displayed at the edge with the given id. |
int |
getEdgeShape()
Returns the shape of the edges. |
double |
getEdgeStrength(E id)
Returns the strength of the edge. |
int |
getLabelOffset()
Returns the label offset. |
int |
getMinLeafHeight()
Returns the minimal height for leafs. |
int |
getMinLeafWidth()
Returns the minimal width for leafs. |
int |
getNumberOfOptionComponents()
Returns the number of option componenents which will be added to the control panel of the GraphViewer. |
java.lang.Object |
getObject(V id)
Returns the object for the given id, e.g. a cluster node. |
GraphObjectViewer |
getObjectViewer()
Returns the viewer for objects. |
javax.swing.JComponent |
getOptionComponent(GraphViewer viewer,
int index)
Returns the desired option componenents which will be added to the control panel of the GraphViewer. |
edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel<V,E> |
getVertexLabelRenderer()
Returns the renderer used for node labels. |
java.lang.String |
getVertexName(V id)
Returns the name that should be displayed in each vertex. |
org.apache.commons.collections15.Transformer<V,java.awt.Paint> |
getVertexPaintTransformer(edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)
Returns the transformer which maps vertices to the paint (color) used for drawing. |
edu.uci.ics.jung.visualization.renderers.Renderer.Vertex<V,E> |
getVertexRenderer()
Returns the renderer used for the nodes. |
java.lang.String |
getVertexToolTip(V id)
Returns the text that should be displayed as tool tip for each vertex. |
boolean |
isBold(V id)
Returns true if the vertex with the given id should use a bold font. |
boolean |
isEdgeLabelDecorating()
Returns true if the edge label should be decorated. |
boolean |
isLeaf(V id)
Returns true if the node with the given id is a leaf. |
boolean |
isRotatingEdgeLabels()
Returns true if the edge labels should be rotated. |
boolean |
showEdgeLabelsDefault()
Indicates if the edge labels should be initially shown. |
boolean |
showVertexLabelsDefault()
Indicates if the vertex labels should be initially shown. |
| Field Detail |
|---|
static final int EDGE_SHAPE_LINE
static final int EDGE_SHAPE_QUAD_CURVE
static final int EDGE_SHAPE_CUBIC_CURVE
static final int EDGE_SHAPE_BENT_LINE
static final int EDGE_SHAPE_WEDGE
| Method Detail |
|---|
edu.uci.ics.jung.graph.Graph<V,E> createGraph()
java.lang.String getVertexName(V id)
java.lang.String getVertexToolTip(V id)
java.lang.String getEdgeName(E id)
double getEdgeStrength(E id)
int getEdgeShape()
EDGE_SHAPE_LINE,
EDGE_SHAPE_QUAD_CURVE, EDGE_SHAPE_CUBIC_CURVE, EDGE_SHAPE_BENT_LINE,
or EDGE_SHAPE_WEDGE.
int getMinLeafHeight()
int getMinLeafWidth()
boolean isBold(V id)
boolean isRotatingEdgeLabels()
org.apache.commons.collections15.Transformer<V,java.awt.Paint> getVertexPaintTransformer(edu.uci.ics.jung.visualization.VisualizationViewer<V,E> viewer)
edu.uci.ics.jung.visualization.renderers.Renderer.Vertex<V,E> getVertexRenderer()
edu.uci.ics.jung.visualization.renderers.Renderer.VertexLabel<V,E> getVertexLabelRenderer()
edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V,E> getEdgeLabelRenderer()
boolean isEdgeLabelDecorating()
boolean isLeaf(V id)
GraphObjectViewer getObjectViewer()
java.lang.Object getObject(V id)
int getNumberOfOptionComponents()
GraphViewer.
javax.swing.JComponent getOptionComponent(GraphViewer viewer,
int index)
GraphViewer.
int getLabelOffset()
boolean showEdgeLabelsDefault()
boolean showVertexLabelsDefault()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||