public class mxCurveShape extends mxConnectorShape
Modifier and Type | Field and Description |
---|---|
protected mxCurve |
curve
Cache of the points between which drawing straight lines views as a
curve
|
Constructor and Description |
---|
mxCurveShape() |
mxCurveShape(mxCurve curve) |
Modifier and Type | Method and Description |
---|---|
mxCurve |
getCurve() |
protected mxLine |
getMarkerVector(java.util.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
points
|
protected void |
paintPolyline(mxGraphics2DCanvas canvas,
java.util.List<mxPoint> points,
java.util.Map<java.lang.String,java.lang.Object> style) |
void |
paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
validateCurve(java.util.List<mxPoint> points,
double scale,
java.util.Map<java.lang.String,java.lang.Object> style)
Forces underlying curve to a valid state
|
isRounded, paintMarker
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
protected mxCurve curve
public mxCurveShape()
public mxCurveShape(mxCurve curve)
public mxCurve getCurve()
public void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
paintShape
in interface mxIShape
paintShape
in class mxConnectorShape
protected void paintPolyline(mxGraphics2DCanvas canvas, java.util.List<mxPoint> points, java.util.Map<java.lang.String,java.lang.Object> style)
paintPolyline
in class mxConnectorShape
public void validateCurve(java.util.List<mxPoint> points, double scale, java.util.Map<java.lang.String,java.lang.Object> style)
points
- protected mxLine getMarkerVector(java.util.List<mxPoint> points, boolean source, double markerSize)
getMarkerVector
in class mxConnectorShape
points
- the guide points of the connectorsource
- whether the marker is at the source endmarkerSize
- the scaled maximum length of the markerCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.