Class CubicCurveEdgeEffects<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.control.CubicCurveEdgeEffects<V,E>
-
- All Implemented Interfaces:
EdgeEffects<V,E>
public class CubicCurveEdgeEffects<V,E> extends java.lang.Object implements EdgeEffects<V,E>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
CubicCurveEdgeEffects.ArrowPaintable
Used for the directed edge creation visual effect during mouse drag(package private) class
CubicCurveEdgeEffects.EdgePaintable
Used for the edge creation visual effect during mouse drag
-
Field Summary
Fields Modifier and Type Field Description protected VisualizationServer.Paintable
arrowPaintable
protected java.awt.Shape
arrowShape
protected VisualizationServer.Paintable
edgePaintable
protected java.awt.Shape
edgeShape
protected java.awt.Shape
rawArrowShape
protected java.awt.geom.CubicCurve2D
rawEdge
-
Constructor Summary
Constructors Constructor Description CubicCurveEdgeEffects()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endArrowEffects(BasicVisualizationServer<V,E> vv)
void
endEdgeEffects(BasicVisualizationServer<V,E> vv)
void
midArrowEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
void
midEdgeEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
void
startArrowEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
void
startEdgeEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
private void
transformArrowShape(java.awt.geom.Point2D down, java.awt.geom.Point2D out)
private void
transformEdgeShape(java.awt.geom.Point2D down, java.awt.geom.Point2D out)
code lifted from PluggableRenderer to move an edge shape into an arbitrary position
-
-
-
Field Detail
-
rawEdge
protected java.awt.geom.CubicCurve2D rawEdge
-
edgeShape
protected java.awt.Shape edgeShape
-
rawArrowShape
protected java.awt.Shape rawArrowShape
-
arrowShape
protected java.awt.Shape arrowShape
-
edgePaintable
protected VisualizationServer.Paintable edgePaintable
-
arrowPaintable
protected VisualizationServer.Paintable arrowPaintable
-
-
Method Detail
-
startEdgeEffects
public void startEdgeEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
- Specified by:
startEdgeEffects
in interfaceEdgeEffects<V,E>
-
midEdgeEffects
public void midEdgeEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
- Specified by:
midEdgeEffects
in interfaceEdgeEffects<V,E>
-
endEdgeEffects
public void endEdgeEffects(BasicVisualizationServer<V,E> vv)
- Specified by:
endEdgeEffects
in interfaceEdgeEffects<V,E>
-
startArrowEffects
public void startArrowEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
- Specified by:
startArrowEffects
in interfaceEdgeEffects<V,E>
-
midArrowEffects
public void midArrowEffects(BasicVisualizationServer<V,E> vv, java.awt.geom.Point2D down, java.awt.geom.Point2D out)
- Specified by:
midArrowEffects
in interfaceEdgeEffects<V,E>
-
endArrowEffects
public void endArrowEffects(BasicVisualizationServer<V,E> vv)
- Specified by:
endArrowEffects
in interfaceEdgeEffects<V,E>
-
transformEdgeShape
private void transformEdgeShape(java.awt.geom.Point2D down, java.awt.geom.Point2D out)
code lifted from PluggableRenderer to move an edge shape into an arbitrary position
-
transformArrowShape
private void transformArrowShape(java.awt.geom.Point2D down, java.awt.geom.Point2D out)
-
-