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(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,
List<mxPoint> points,
Map<String,Object> style) |
void |
paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
validateCurve(List<mxPoint> points,
double scale,
Map<String,Object> style)
Forces underlying curve to a valid state
|
isRounded, paintMarkerconfigureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadowprotected mxCurve curve
public mxCurveShape()
public mxCurveShape(mxCurve curve)
public mxCurve getCurve()
public void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
paintShape in interface mxIShapepaintShape in class mxConnectorShapeprotected void paintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String,Object> style)
paintPolyline in class mxConnectorShapepublic void validateCurve(List<mxPoint> points, double scale, Map<String,Object> style)
points - protected mxLine getMarkerVector(List<mxPoint> points, boolean source, double markerSize)
getMarkerVector in class mxConnectorShapepoints - the guide points of the connectorsource - whether the marker is at the source endmarkerSize - the scaled maximum length of the markerCopyright (c) 2010 Gaudenz Alder. All rights reserved.