|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmali.types.twodee.Dim2i
org.openmali.types.twodee.ExtDim2i
public class ExtDim2i
A basic 2-dimensional unpositioned rectangle.
| Field Summary |
|---|
| Fields inherited from class org.openmali.types.twodee.Dim2i |
|---|
isDirty |
| Constructor Summary | |
|---|---|
ExtDim2i()
Creates a new 2-dimensional unpositioned rectangle with zero position and size. |
|
ExtDim2i(int width,
int height)
Creates a new 2-dimensional unpositioned rectangle. |
|
ExtDim2i(Sized2iRO template)
Creates a new 2-dimensional unpositioned rectangle and copies the template's coordinates. |
|
| Method Summary | |
|---|---|
void |
addResizeListener(ResizeListener2i listener)
Adds a new ResizeListener2i. |
protected void |
fireResizeEvent(int oldWidth,
int oldHeight,
int newWidth,
int newHeight)
|
void |
removeResizeListener(ResizeListener2i listener)
Removes the given ResizeListener2i from the List, if it was present. |
ExtDim2i |
setSize(int width,
int height)
Sets the size. |
| Methods inherited from class org.openmali.types.twodee.Dim2i |
|---|
add, addH, addW, equals, equals, fromPool, fromPool, getAspect, getHeight, getWidth, isDirty, scale, scaleH, scaleW, set, set, setClean, setHeight, setSize, setSize, setWidth, toPool, toString, toTuple, toTuple |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 ExtDim2i(int width,
int height)
width - the rectangle's widthheight - the rectangle's heightpublic ExtDim2i(Sized2iRO template)
template - public ExtDim2i()
| Method Detail |
|---|
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 ExtDim2i setSize(int width,
int height)
setSize in interface Sized2isetSize in class Dim2i
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||