|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.types.twodee.Rect2i
org.openmali.types.twodee.ExtRect2i
public class ExtRect2i
A basic 2-dimensional rectangle.
| Field Summary |
|---|
| Fields inherited from class org.openmali.types.twodee.Rect2i |
|---|
isDirty |
| Constructor Summary | |
|---|---|
ExtRect2i()
Creates a new 2-dimensional rectangle with zero position and size. |
|
ExtRect2i(ExtRect2i template)
Creates a new 2-dimensional rectangle and copies the template's coordinates. |
|
ExtRect2i(int left,
int top,
int width,
int height)
Creates a new 2-dimensional rectangle. |
|
| Method Summary | |
|---|---|
void |
addRepositionListener(RepositionListener2i listener)
Adds a new RepositionListener2i. |
void |
addResizeListener(ResizeListener2i listener)
Adds a new ResizeListener2i. |
protected void |
fireRepositionEvent(int oldLeft,
int oldTop,
int newLeft,
int newTop)
|
protected void |
fireResizeEvent(int oldWidth,
int oldHeight,
int newWidth,
int newHeight)
|
void |
removeRepositionListener(RepositionListener2i listener)
Removes the given RepositionListener2i from the List, if it was present. |
void |
removeResizeListener(ResizeListener2i listener)
Removes the given ResizeListener2i from the List, if it was present. |
ExtRect2i |
setLocation(int left,
int top)
Sets the upper-left corner's coordinates. |
ExtRect2i |
setSize(int width,
int height)
Sets the size. |
| Methods inherited from class org.openmali.types.twodee.Rect2i |
|---|
clamp, clamp, combine, combine, covers, covers, equals, equals, fromPool, fromPool, getArea, getAspect, getHeight, getLeft, getLocation, getMatchFactor, getMatchFactor, getTop, getWidth, intersects, intersects, isCoveredBy, isCoveredBy, isDirty, set, set, set, setClean, setHeight, setLocation, setSize, setSize, setWidth, toPool, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmali.types.twodee.Positioned2i |
|---|
setLocation |
| Methods inherited from interface org.openmali.types.twodee.Positioned2iRO |
|---|
getLeft, getLocation, getTop |
| Methods inherited from interface org.openmali.types.twodee.Sized2i |
|---|
setHeight, setSize, setSize, setWidth |
| Methods inherited from interface org.openmali.types.twodee.Sized2iRO |
|---|
getAspect, getHeight, getWidth |
| Constructor Detail |
|---|
public ExtRect2i(int left,
int top,
int width,
int height)
left - the upper-left corner's x-coordinatetop - the upper-left corner's y-coordinatewidth - the rectangle's widthheight - the rectangle's heightpublic ExtRect2i(ExtRect2i template)
template - public ExtRect2i()
| Method Detail |
|---|
public void addRepositionListener(RepositionListener2i listener)
addRepositionListener in interface ExtPositioned2ipublic void removeRepositionListener(RepositionListener2i listener)
removeRepositionListener in interface ExtPositioned2i
protected void fireRepositionEvent(int oldLeft,
int oldTop,
int newLeft,
int newTop)
public void addResizeListener(ResizeListener2i listener)
addResizeListener in interface ExtSized2ipublic void removeResizeListener(ResizeListener2i listener)
removeResizeListener in interface ExtSized2i
protected void fireResizeEvent(int oldWidth,
int oldHeight,
int newWidth,
int newHeight)
public ExtRect2i setLocation(int left,
int top)
setLocation in interface Positioned2isetLocation in class Rect2ileft - top -
public ExtRect2i setSize(int width,
int height)
setSize in interface Sized2isetSize in class Rect2i
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||