Package com.mxgraph.shape
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 mxLine
getMarkerVector
(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 void
paintPolyline
(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String, Object> style) void
paintShape
(mxGraphics2DCanvas canvas, mxCellState state) void
Forces underlying curve to a valid stateMethods inherited from class com.mxgraph.shape.mxConnectorShape
isRounded, paintMarker
Methods inherited from class com.mxgraph.shape.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:
paintShape
in interfacemxIShape
- Overrides:
paintShape
in classmxConnectorShape
-
paintPolyline
protected void paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String, Object> style) - Overrides:
paintPolyline
in classmxConnectorShape
-
validateCurve
Forces underlying curve to a valid state- Parameters:
points
-
-
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:
getMarkerVector
in 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
-