com.sibvisions.rad.ui.qt.impl
Class QtInsets

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<QContentsMargins>
      extended by com.sibvisions.rad.ui.qt.impl.QtInsets
All Implemented Interfaces:
IInsets, IResource

public class QtInsets
extends QtResource<QContentsMargins>
implements IInsets

The QtInsets class encapsulates the margins (in integer precision) in a single object.

See Also:
QContentsMargins, IInsets

Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
resource
 
Constructor Summary
QtInsets(int pTop, int pLeft, int pBottom, int pRight)
          Creates an instance of QtInsets for specific margins.
QtInsets(QContentsMargins pInsets)
          Creates an instance of AwtInsets based on a java.awt.Insets.
 
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.qt.impl.QtResource
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

QtInsets

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

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

QtInsets

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

Parameters:
pTop - the top margin
pLeft - the left margin
pBottom - the bottom margin
pRight - the right margin
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.