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

java.lang.Object
  extended by com.sibvisions.rad.ui.awt.impl.AwtResource<Dimension>
      extended by com.sibvisions.rad.ui.awt.impl.AwtDimension
All Implemented Interfaces:
IDimension, IResource

public class AwtDimension
extends AwtResource<Dimension>
implements IDimension

The AwtDimension 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.awt.impl.AwtResource
resource
 
Constructor Summary
AwtDimension(Dimension pDimension)
          Creates an instance of AwtDimension based on a Dimension.
AwtDimension(int pWidth, int pHeight)
          Creates an instance of AwtDimension whose width and height are the same as for the specified dimension.
 
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.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

AwtDimension

public AwtDimension(Dimension pDimension)
Creates an instance of AwtDimension based on a Dimension.

Parameters:
pDimension - java.awt.Dimension
See Also:
Dimension

AwtDimension

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

Parameters:
pWidth - the specified width
pHeight - the specified height
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.