|
Draw2d 3.9.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.ViewportAwareConnectionLayerClippingStrategy
public class ViewportAwareConnectionLayerClippingStrategy
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 | |
---|---|
ViewportAwareConnectionLayerClippingStrategy(ConnectionLayer connectionLayer)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewportAwareConnectionLayerClippingStrategy(ConnectionLayer connectionLayer)
Method Detail |
---|
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)
protected Rectangle getAbsoluteBoundsAsCopy(IFigure figure)
|
Draw2d 3.9.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |