|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.draw2d.ConnectionLayer.ConnectionLayerClippingStrategy
public static class ConnectionLayer.ConnectionLayerClippingStrategy
Clipping strategy for connection layer, which takes into account nested view ports and truncates those parts of connections which reach outside and are thus not visible.
| Constructor Summary | |
|---|---|
protected |
ConnectionLayer.ConnectionLayerClippingStrategy(ConnectionLayer connectionLayer)
|
| Method Summary | |
|---|---|
protected void |
clipAtViewports(Rectangle clipRect,
List enclosingViewportsPath)
Clips the given clipRect at all given viewports. |
protected Rectangle |
getAbsoluteBoundsAsCopy(IFigure figure)
Returns the figure's bounds in absolute coordinates. |
protected PointList |
getAbsolutePointsAsCopy(Connection connection)
Returns the connection's points in absolute coordinates. |
protected Rectangle |
getAbsoluteViewportClientAreaAsCopy(Viewport viewport)
Returns the viewport's client area in absolute coordinates. |
Rectangle[] |
getClip(IFigure figure)
Specifies the clipping region for the given child figure. |
protected Rectangle[] |
getEdgeClippingRectangle(Connection connection)
Computes clipping rectangle(s) for a given connection. |
protected Rectangle |
getNodeClippingRectangle(IFigure figure)
Computes clipping rectangle for a given (node) figure. |
protected Viewport |
getRootViewport()
Returns the root viewport, i.e. the nearest enclosing viewport of the connection layer, which corresponds to the nearest enclosing common viewport of primary and connection layer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ConnectionLayer.ConnectionLayerClippingStrategy(ConnectionLayer connectionLayer)
| Method Detail |
|---|
public Rectangle[] getClip(IFigure figure)
IClippingStrategy
getClip in interface IClippingStrategyfigure - The child figure, which clipping region has to be returned.
null.IClippingStrategy.getClip(org.eclipse.draw2d.IFigure)protected Rectangle[] getEdgeClippingRectangle(Connection connection)
protected Rectangle getNodeClippingRectangle(IFigure figure)
protected void clipAtViewports(Rectangle clipRect,
List enclosingViewportsPath)
protected Viewport getRootViewport()
protected PointList getAbsolutePointsAsCopy(Connection connection)
protected Rectangle getAbsoluteViewportClientAreaAsCopy(Viewport viewport)
protected Rectangle getAbsoluteBoundsAsCopy(IFigure figure)
|
Eclipse Draw2d 3.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||