|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<Insets>
com.sibvisions.rad.ui.awt.impl.AwtInsets
public class AwtInsets
The AwtInsets
class encapsulates the margins (in integer precision) in a single object.
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Constructor Summary | |
---|---|
AwtInsets(Insets pInsets)
Creates an instance of AwtInsets based on
a java.awt.Insets . |
|
AwtInsets(int pTop,
int pLeft,
int pBottom,
int pRight)
Creates an instance of AwtInsets for specific margins. |
Method Summary | |
---|---|
int |
getBottom()
The bottom margin of the IInsets . |
int |
getLeft()
The left margin of the IInsets . |
int |
getRight()
The right margin of the IInsets . |
int |
getTop()
The top margin of the IInsets . |
void |
setBottom(int pBottom)
Sets the bottom margin of the IInsets . |
void |
setLeft(int pLeft)
Sets the left margin of the IInsets . |
void |
setRight(int pRight)
Sets the right margin of the IInsets . |
void |
setTop(int pTop)
Sets the top margin of the IInsets . |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
equals, getResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public AwtInsets(Insets pInsets)
AwtInsets
based on
a java.awt.Insets
.
pInsets
- java.awt.InsetsInsets
public AwtInsets(int pTop, int pLeft, int pBottom, int pRight)
AwtInsets
for specific margins.
pTop
- the top marginpLeft
- the left marginpBottom
- the bottom marginpRight
- the right marginInsets.Insets(int, int, int, int)
Method Detail |
---|
public int getTop()
IInsets
.
getTop
in interface IInsets
public void setTop(int pTop)
IInsets
.
setTop
in interface IInsets
pTop
- the top marginpublic int getLeft()
IInsets
.
getLeft
in interface IInsets
public void setLeft(int pLeft)
IInsets
.
setLeft
in interface IInsets
pLeft
- the left marginpublic int getBottom()
IInsets
.
getBottom
in interface IInsets
public void setBottom(int pBottom)
IInsets
.
setBottom
in interface IInsets
pBottom
- the bottom marginpublic int getRight()
IInsets
.
getRight
in interface IInsets
public void setRight(int pRight)
IInsets
.
setRight
in interface IInsets
pRight
- the right margin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |