com.sibvisions.rad.ui.awt.impl
Class AwtInsets

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<Insets>
      extended by com.sibvisions.rad.ui.awt.impl.AwtInsets
All Implemented Interfaces:
IInsets, IResource

public class AwtInsets
extends AwtResource<Insets>
implements IInsets

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

AwtInsets

public AwtInsets(Insets pInsets)
Creates an instance of AwtInsets based on a java.awt.Insets.

Parameters:
pInsets - java.awt.Insets
See Also:
Insets

AwtInsets

public AwtInsets(int pTop,
                 int pLeft,
                 int pBottom,
                 int pRight)
Creates an instance of AwtInsets for specific margins.

Parameters:
pTop - the top margin
pLeft - the left margin
pBottom - the bottom margin
pRight - the right margin
See Also:
Insets.Insets(int, int, int, int)
Method Detail

getTop

public int getTop()
The top margin of the IInsets.

Specified by:
getTop in interface IInsets
Returns:
the top margin.

setTop

public void setTop(int pTop)
Sets the top margin of the IInsets.

Specified by:
setTop in interface IInsets
Parameters:
pTop - the top margin

getLeft

public int getLeft()
The left margin of the IInsets.

Specified by:
getLeft in interface IInsets
Returns:
the left margin.

setLeft

public void setLeft(int pLeft)
Sets the left margin of the IInsets.

Specified by:
setLeft in interface IInsets
Parameters:
pLeft - the left margin

getBottom

public int getBottom()
The bottom margin of the IInsets.

Specified by:
getBottom in interface IInsets
Returns:
the bottom margin.

setBottom

public void setBottom(int pBottom)
Sets the bottom margin of the IInsets.

Specified by:
setBottom in interface IInsets
Parameters:
pBottom - the bottom margin

getRight

public int getRight()
The right margin of the IInsets.

Specified by:
getRight in interface IInsets
Returns:
the right margin.

setRight

public void setRight(int pRight)
Sets the right margin of the IInsets.

Specified by:
setRight in interface IInsets
Parameters:
pRight - the right margin


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.