public class ViewportAwareConnectionLayerClippingStrategy extends java.lang.Object implements IClippingStrategy
Constructor and Description |
---|
ViewportAwareConnectionLayerClippingStrategy(ConnectionLayer connectionLayer) |
Modifier and Type | Method and Description |
---|---|
protected void |
clipAtViewports(Rectangle clipRect,
java.util.List enclosingViewportsPath)
Clips the given clipRect at all given viewports.
|
protected Rectangle |
getAbsoluteBoundsAsCopy(IFigure figure)
Returns the figure's bounds in absolute coordinates.
|
protected Rectangle |
getAbsoluteClientAreaAsCopy(IFigure figure)
Returns the viewport's client area in absolute coordinates.
|
protected PointList |
getAbsolutePointsAsCopy(Connection connection)
Returns the connection's points in absolute coordinates.
|
protected Rectangle |
getAbsoluteViewportAreaAsCopy(Viewport viewport)
Returns the area covered by the viewport 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.
|
public ViewportAwareConnectionLayerClippingStrategy(ConnectionLayer connectionLayer)
public Rectangle[] getClip(IFigure figure)
IClippingStrategy
getClip
in interface IClippingStrategy
figure
- 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, java.util.List enclosingViewportsPath)
protected Viewport getRootViewport()
protected PointList getAbsolutePointsAsCopy(Connection connection)
protected Rectangle getAbsoluteViewportAreaAsCopy(Viewport viewport)
protected Rectangle getAbsoluteClientAreaAsCopy(IFigure figure)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.