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

java.lang.Object
  extended by com.sibvisions.rad.ui.qt.impl.QtResource<QSize>
      extended by com.sibvisions.rad.ui.qt.impl.QtDimension
All Implemented Interfaces:
IDimension, IResource

public class QtDimension
extends QtResource<QSize>
implements IDimension

The QtDimension class encapsulates the width and height of a component (in integer precision) in a single object.


Field Summary
 
Fields inherited from class com.sibvisions.rad.ui.qt.impl.QtResource
resource
 
Constructor Summary
QtDimension(int pWidth, int pHeight)
          Creates an instance of QtDimension whose width and height are the same as for the specified dimension.
QtDimension(QSize pDimension)
          Creates an instance of QtDimension based on a QSize.
 
Method Summary
 int getHeight()
          The height of the IDimension.
 int getWidth()
          The width of the IDimension.
 void setHeight(int pHeight)
          Sets the height of the IDimension.
 void setWidth(int pWidth)
          Sets the width of the IDimension.
 
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

QtDimension

public QtDimension(QSize pDimension)
Creates an instance of QtDimension based on a QSize.

Parameters:
pDimension - the dimension object
See Also:
QSize.QSize(int, int)

QtDimension

public QtDimension(int pWidth,
                   int pHeight)
Creates an instance of QtDimension whose width and height are the same as for the specified dimension.

Parameters:
pWidth - the specified width
pHeight - the specified height
See Also:
QSize.QSize(int, int)
Method Detail

getWidth

public int getWidth()
The width of the IDimension.

Specified by:
getWidth in interface IDimension
Returns:
the width.

setWidth

public void setWidth(int pWidth)
Sets the width of the IDimension.

Specified by:
setWidth in interface IDimension
Parameters:
pWidth - the width

getHeight

public int getHeight()
The height of the IDimension.

Specified by:
getHeight in interface IDimension
Returns:
the height.

setHeight

public void setHeight(int pHeight)
Sets the height of the IDimension.

Specified by:
setHeight in interface IDimension
Parameters:
pHeight - the height


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.