public class GraphRenderer extends Object implements IOnStepDoneListener, IGraphRenderer, org.jzy3d.picking.IObjectPickedListener
Modifier and Type | Field and Description |
---|---|
protected org.jzy3d.chart.Chart |
chart |
protected Map<Object,org.jzy3d.plot3d.primitives.LineStrip> |
edgeRepresentation |
protected org.gephi.graph.api.GraphModel |
g |
protected int |
layoutStepRatio |
protected Set<Object> |
nodeIds |
protected Map<Object,org.jzy3d.plot3d.text.DrawableTextWrapper> |
nodeLabelRepresentation |
protected Map<Object,org.jzy3d.plot3d.primitives.Point> |
nodePoint |
protected Map<Object,org.jzy3d.plot3d.primitives.Sphere> |
nodeRepresentation |
protected GraphRendererSettings |
settings |
protected boolean |
updateViewAtCreateObject |
Constructor and Description |
---|
GraphRenderer(org.gephi.graph.api.GraphModel g,
org.jzy3d.chart.Chart c) |
GraphRenderer(org.gephi.graph.api.GraphModel g,
GraphRendererSettings settings,
org.jzy3d.chart.Chart c) |
Modifier and Type | Method and Description |
---|---|
protected void |
addToSceneGraph(org.jzy3d.plot3d.primitives.AbstractDrawable s) |
static GraphRenderer |
create(org.gephi.graph.api.GraphModel g,
GraphRendererSettings settings,
org.jzy3d.plot3d.rendering.canvas.Quality quality,
String wt,
String chart) |
static GraphRenderer |
create(org.gephi.graph.api.GraphModel g,
org.jzy3d.plot3d.rendering.canvas.Quality quality,
String wt,
String chart) |
protected void |
createEdge(org.gephi.graph.api.Edge e) |
org.jzy3d.plot3d.primitives.LineStrip |
createEdgeLine(org.jzy3d.maths.Coord3d c1,
org.jzy3d.maths.Coord3d c2,
org.jzy3d.colors.Color color,
float width) |
protected void |
createNode(org.gephi.graph.api.Node n) |
org.jzy3d.plot3d.text.DrawableTextWrapper |
createNodeLabel(String text,
org.jzy3d.maths.Coord3d c,
org.jzy3d.colors.Color color) |
org.jzy3d.plot3d.primitives.Point |
createNodePoint(org.jzy3d.maths.Coord3d c,
org.jzy3d.colors.Color color,
float width) |
org.jzy3d.plot3d.primitives.Sphere |
createNodeSphere(org.jzy3d.maths.Coord3d c,
org.jzy3d.colors.Color color,
org.jzy3d.colors.Color wireframe,
float radius,
int slicing) |
void |
createOrUpdateEdge(org.gephi.graph.api.Edge e) |
void |
createOrUpdateNode(org.gephi.graph.api.Node n) |
protected String |
formatNodeLabel(org.gephi.graph.api.Node nd) |
protected String |
formatNodeLabel2(org.gephi.graph.api.Node nd) |
org.jzy3d.chart.Chart |
getChart() |
org.jzy3d.plot3d.primitives.LineStrip |
getEdgeRepresentation(org.gephi.graph.api.Edge e) |
double |
getLastRenderTime() |
int |
getLayoutStepRatio() |
org.jzy3d.plot3d.text.DrawableTextWrapper |
getNodeLabel(org.gephi.graph.api.Node n) |
org.jzy3d.plot3d.primitives.Point |
getNodePoint(org.gephi.graph.api.Node n) |
org.jzy3d.plot3d.primitives.Sphere |
getNodeRepresentation(org.gephi.graph.api.Node n) |
GraphRendererSettings |
getSettings() |
protected boolean |
hasEdgeRepresentation(org.gephi.graph.api.Edge e) |
protected boolean |
hasNodeId(org.gephi.graph.api.Node n) |
protected static org.jzy3d.chart.Chart |
newChart(org.gephi.graph.api.GraphModel g,
org.jzy3d.plot3d.rendering.canvas.Quality quality,
String wt,
String chart) |
void |
objectPicked(List<? extends Object> vertices,
org.jzy3d.picking.PickingSupport picking) |
void |
openChart() |
protected org.jzy3d.maths.Pair<org.jzy3d.maths.Coord3d,org.jzy3d.maths.Coord3d> |
readEdgeCoords(org.gephi.graph.api.Edge e) |
protected void |
refreshChart() |
void |
setLayoutStepRatio(int stepRatio)
Step ratio is the number of layout steps required to update the chart.
|
void |
stepDone(org.gephi.layout.spi.Layout layout) |
protected void |
storeEdgeRepresentation(org.gephi.graph.api.Edge e,
org.jzy3d.plot3d.primitives.LineStrip ls) |
protected void |
storeNodeId(org.gephi.graph.api.Node n) |
protected void |
storeNodeLable(org.gephi.graph.api.Node n,
org.jzy3d.plot3d.text.DrawableTextWrapper text) |
protected void |
storeNodePoint(org.gephi.graph.api.Node n,
org.jzy3d.plot3d.primitives.Point p) |
protected void |
storeNodeSphere(org.gephi.graph.api.Node n,
org.jzy3d.plot3d.primitives.Sphere s) |
protected void |
updateEdge(org.gephi.graph.api.Edge e) |
protected void |
updateEdgeLineSourceCoordinate(org.gephi.graph.api.Edge e,
org.jzy3d.plot3d.primitives.LineStrip ls) |
protected void |
updateEdgeLineTargetCoordinate(org.gephi.graph.api.Edge e,
org.jzy3d.plot3d.primitives.LineStrip ls) |
protected void |
updateNode(org.gephi.graph.api.Node n) |
protected void |
updateNodeLabel(org.gephi.graph.api.Node n,
org.jzy3d.plot3d.text.DrawableTextWrapper txt) |
protected void |
updateNodePoint(org.gephi.graph.api.Node n,
org.jzy3d.plot3d.primitives.Point p) |
protected void |
updateNodeSphere(org.gephi.graph.api.Node n,
org.jzy3d.plot3d.primitives.Sphere s) |
protected boolean updateViewAtCreateObject
protected org.gephi.graph.api.GraphModel g
protected org.jzy3d.chart.Chart chart
protected GraphRendererSettings settings
protected int layoutStepRatio
protected Map<Object,org.jzy3d.plot3d.text.DrawableTextWrapper> nodeLabelRepresentation
public GraphRenderer(org.gephi.graph.api.GraphModel g, org.jzy3d.chart.Chart c)
public GraphRenderer(org.gephi.graph.api.GraphModel g, GraphRendererSettings settings, org.jzy3d.chart.Chart c)
public static GraphRenderer create(org.gephi.graph.api.GraphModel g, org.jzy3d.plot3d.rendering.canvas.Quality quality, String wt, String chart)
public static GraphRenderer create(org.gephi.graph.api.GraphModel g, GraphRendererSettings settings, org.jzy3d.plot3d.rendering.canvas.Quality quality, String wt, String chart)
protected static org.jzy3d.chart.Chart newChart(org.gephi.graph.api.GraphModel g, org.jzy3d.plot3d.rendering.canvas.Quality quality, String wt, String chart)
public void stepDone(org.gephi.layout.spi.Layout layout)
stepDone
in interface IOnStepDoneListener
public int getLayoutStepRatio()
public void setLayoutStepRatio(int stepRatio)
stepRatio
- public void objectPicked(List<? extends Object> vertices, org.jzy3d.picking.PickingSupport picking)
objectPicked
in interface org.jzy3d.picking.IObjectPickedListener
public void createOrUpdateNode(org.gephi.graph.api.Node n)
createOrUpdateNode
in interface IGraphRenderer
public void createOrUpdateEdge(org.gephi.graph.api.Edge e)
createOrUpdateEdge
in interface IGraphRenderer
protected String formatNodeLabel(org.gephi.graph.api.Node nd)
protected String formatNodeLabel2(org.gephi.graph.api.Node nd)
protected void createNode(org.gephi.graph.api.Node n)
protected void storeNodeId(org.gephi.graph.api.Node n)
protected void updateNode(org.gephi.graph.api.Node n)
protected void createEdge(org.gephi.graph.api.Edge e)
protected org.jzy3d.maths.Pair<org.jzy3d.maths.Coord3d,org.jzy3d.maths.Coord3d> readEdgeCoords(org.gephi.graph.api.Edge e)
protected void updateEdge(org.gephi.graph.api.Edge e)
public org.jzy3d.plot3d.primitives.LineStrip getEdgeRepresentation(org.gephi.graph.api.Edge e)
public org.jzy3d.plot3d.primitives.Sphere createNodeSphere(org.jzy3d.maths.Coord3d c, org.jzy3d.colors.Color color, org.jzy3d.colors.Color wireframe, float radius, int slicing)
createNodeSphere
in interface IGraphRenderer
protected void updateNodeSphere(org.gephi.graph.api.Node n, org.jzy3d.plot3d.primitives.Sphere s)
public org.jzy3d.plot3d.text.DrawableTextWrapper createNodeLabel(String text, org.jzy3d.maths.Coord3d c, org.jzy3d.colors.Color color)
protected void updateNodeLabel(org.gephi.graph.api.Node n, org.jzy3d.plot3d.text.DrawableTextWrapper txt)
public org.jzy3d.plot3d.primitives.Point createNodePoint(org.jzy3d.maths.Coord3d c, org.jzy3d.colors.Color color, float width)
protected void updateNodePoint(org.gephi.graph.api.Node n, org.jzy3d.plot3d.primitives.Point p)
public org.jzy3d.plot3d.primitives.LineStrip createEdgeLine(org.jzy3d.maths.Coord3d c1, org.jzy3d.maths.Coord3d c2, org.jzy3d.colors.Color color, float width)
createEdgeLine
in interface IGraphRenderer
protected void updateEdgeLineSourceCoordinate(org.gephi.graph.api.Edge e, org.jzy3d.plot3d.primitives.LineStrip ls)
protected void updateEdgeLineTargetCoordinate(org.gephi.graph.api.Edge e, org.jzy3d.plot3d.primitives.LineStrip ls)
protected void refreshChart()
public double getLastRenderTime()
protected void addToSceneGraph(org.jzy3d.plot3d.primitives.AbstractDrawable s)
protected void storeNodePoint(org.gephi.graph.api.Node n, org.jzy3d.plot3d.primitives.Point p)
protected void storeNodeSphere(org.gephi.graph.api.Node n, org.jzy3d.plot3d.primitives.Sphere s)
protected void storeNodeLable(org.gephi.graph.api.Node n, org.jzy3d.plot3d.text.DrawableTextWrapper text)
protected void storeEdgeRepresentation(org.gephi.graph.api.Edge e, org.jzy3d.plot3d.primitives.LineStrip ls)
protected boolean hasNodeId(org.gephi.graph.api.Node n)
protected boolean hasEdgeRepresentation(org.gephi.graph.api.Edge e)
public org.jzy3d.plot3d.primitives.Point getNodePoint(org.gephi.graph.api.Node n)
public org.jzy3d.plot3d.text.DrawableTextWrapper getNodeLabel(org.gephi.graph.api.Node n)
public org.jzy3d.plot3d.primitives.Sphere getNodeRepresentation(org.gephi.graph.api.Node n)
public GraphRendererSettings getSettings()
public org.jzy3d.chart.Chart getChart()
public void openChart()
Copyright © 2018. All rights reserved.