|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.enough.polish.ui.ClippingRegion
public class ClippingRegion
Manages a region that is increased when further regions are added.
Copyright Enough Software 2007 - 2008
history
Aug 18, 2007 - rob creation
| Constructor Summary | |
|---|---|
ClippingRegion()
|
|
| Method Summary | |
|---|---|
void |
addRegion(int x,
int y,
int width,
int height)
Adds a clipping region. |
boolean |
containsRegion()
Determines whether a region has been added since the last reset. |
int |
getHeight()
Retrieves the height of this region. |
int |
getWidth()
Retrieves the width of this region. |
int |
getX()
Retrieves the horizontal start of this region |
int |
getY()
Retrieves the vertical start of this region |
void |
reset()
Resets this clipping region. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClippingRegion()
| Method Detail |
|---|
public void reset()
public void addRegion(int x,
int y,
int width,
int height)
x - horizontal starty - vertical startwidth - width of the regionheight - height of the regionpublic boolean containsRegion()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||