com.mxgraph.shape
Class mxConnectorShape
java.lang.Object
   com.mxgraph.shape.mxBasicShape
com.mxgraph.shape.mxBasicShape
       com.mxgraph.shape.mxConnectorShape
com.mxgraph.shape.mxConnectorShape
- All Implemented Interfaces: 
- mxIShape
- Direct Known Subclasses: 
- mxCurveShape
- public class mxConnectorShape 
- extends mxBasicShape
 
| Method Summary | 
| 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
 | 
|  boolean | isRounded(Map<String,Object> style)
 | 
|  mxPoint | paintMarker(mxGraphics2DCanvas canvas,
            List<mxPoint> points,
            Map<String,Object> style,
            boolean source)Draws the marker for the given edge.
 | 
| protected  void | paintPolyline(mxGraphics2DCanvas canvas,
              List<mxPoint> points,
              Map<String,Object> style)
 | 
|  void | paintShape(mxGraphics2DCanvas canvas,
           mxCellState state)
 | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
mxConnectorShape
public mxConnectorShape()
paintShape
public void paintShape(mxGraphics2DCanvas canvas,
                       mxCellState state)
- 
- Specified by:
- paintShapein interface- mxIShape
- Overrides:
- paintShapein class- mxBasicShape
 
- 
 
paintPolyline
protected void paintPolyline(mxGraphics2DCanvas canvas,
                             List<mxPoint> points,
                             Map<String,Object> style)
- 
 
isRounded
public boolean isRounded(Map<String,Object> style)
- 
 
paintMarker
public mxPoint paintMarker(mxGraphics2DCanvas canvas,
                           List<mxPoint> points,
                           Map<String,Object> style,
                           boolean source)
- Draws the marker for the given edge.
 
- 
- Parameters:
- canvas-
- points-
- style-
- source-
- Returns:
- the offset of the marker from the end of the line
 
getMarkerVector
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
 
- 
- Parameters:
- points- the guide points of the connector
- source- whether the marker is at the source end
- markerSize- the scaled maximum length of the marker
- Returns:
- a line describing the vector the marker should be drawn along
 
Copyright (c) 2010 Gaudenz Alder. All rights reserved.