Class mxCurveShape
java.lang.Object
com.mxgraph.shape.mxBasicShape
com.mxgraph.shape.mxConnectorShape
com.mxgraph.shape.mxCurveShape
- All Implemented Interfaces:
mxIShape
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCurve()protected mxLinegetMarkerVector(List<mxPoint> points, boolean source, double markerSize) Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control pointsprotected voidpaintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String, Object> style) voidpaintShape(mxGraphics2DCanvas canvas, mxCellState state) voidForces underlying curve to a valid stateMethods inherited from class mxConnectorShape
isRounded, paintMarkerMethods inherited from class mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
-
Field Details
-
curve
Cache of the points between which drawing straight lines views as a curve
-
-
Constructor Details
-
mxCurveShape
public mxCurveShape() -
mxCurveShape
-
-
Method Details
-
getCurve
-
paintShape
- Specified by:
paintShapein interfacemxIShape- Overrides:
paintShapein classmxConnectorShape
-
paintPolyline
protected void paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String, Object> style) - Overrides:
paintPolylinein classmxConnectorShape
-
validateCurve
-
getMarkerVector
Hook to override creation of the vector that the marker is drawn along since it may not be the same as the vector between any two control points- Overrides:
getMarkerVectorin classmxConnectorShape- Parameters:
points- the guide points of the connectorsource- whether the marker is at the source endmarkerSize- the scaled maximum length of the marker- Returns:
- a line describing the vector the marker should be drawn along
-