eu.esdihumboldt.hale.ui.views.styledmap.clip
Interface Clip
- All Known Implementing Classes:
- AbstractPolygonClip, BottomLeftClip, BottomRightClip, Hide, HorizontalClip, NoClip, TopLeftClip, TopRightClip, VerticalClip
public interface Clip
Interface for classes defining an algorithm to compute a clipping region.
- Author:
- Simon Templer
Method Summary |
Shape |
getClip(Rectangle viewportBounds,
int originX,
int originY,
int width,
int height)
Determine the clip region for painting. |
getClip
Shape getClip(Rectangle viewportBounds,
int originX,
int originY,
int width,
int height)
- Determine the clip region for painting.
- Parameters:
viewportBounds
- the view-port bounds (world pixel coordinates)originX
- the x position of the origin of the graphics to clip
(world pixel coordinates)originY
- the y position of the origin of the graphics to clip
(world pixel coordinates)width
- the graphics widthheight
- the graphics height
- Returns:
- the clip shape, or
null
if nothing should be painted
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d