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