Constructor and Description |
---|
VerticalClip(float left,
float right)
Create clip displaying a vertical column.
|
public VerticalClip(float left, float right)
left
- the beginning of the column, value between 0 and 1, relative
to the view-port widthright
- the end of the column, value between 0 and 1, relative to
the view-port widthpublic Shape getClip(Rectangle viewportBounds, int originX, int originY, int width, int height)
Clip
getClip
in interface Clip
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 heightnull
if nothing should be paintedClip.getClip(Rectangle, int, int, int, int)
Build 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a