Class mxConnectorShape
java.lang.Object
com.mxgraph.shape.mxBasicShape
com.mxgraph.shape.mxConnectorShape
- All Implemented Interfaces:
mxIShape
- Direct Known Subclasses:
mxCurveShape
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 pointsbooleanpaintMarker(mxGraphics2DCanvas canvas, mxCellState state, boolean source) Draws the marker for the given edge.protected voidpaintPolyline(mxGraphics2DCanvas canvas, List<mxPoint> points, Map<String, Object> style) voidpaintShape(mxGraphics2DCanvas canvas, mxCellState state) Methods inherited from class mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
-
Constructor Details
-
mxConnectorShape
public mxConnectorShape()
-
-
Method Details
-
paintShape
- Specified by:
paintShapein interfacemxIShape- Overrides:
paintShapein classmxBasicShape
-
paintPolyline
-
isRounded
-
paintMarker
Draws the marker for the given edge.- Returns:
- the offset of the marker from the end of the line
-
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- 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
-