com.sibvisions.rad.ui.swing.ext.layout
Class JVxGridLayout.CellConstraints

java.lang.Object
  extended by com.sibvisions.rad.ui.swing.ext.layout.JVxGridLayout.CellConstraints
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
JVxGridLayout

public static class JVxGridLayout.CellConstraints
extends java.lang.Object
implements java.lang.Cloneable

The CellConstraint class stores the X and Y position, the Width and Height and the insets of the component.


Constructor Summary
JVxGridLayout.CellConstraints()
          Constructs a new CellConstraint.
JVxGridLayout.CellConstraints(int pGridX, int pGridY)
          Constructs a new CellConstraint with the given parameters.
JVxGridLayout.CellConstraints(int pGridX, int pGridY, int pWidth, int pHeight)
          Constructs a new CellConstraint with the given parameters.
JVxGridLayout.CellConstraints(int pGridX, int pGridY, int pGridWidth, int pGridHeight, java.awt.Insets pInsets)
          Constructs a new CellConstraint with the given parameters.
 
Method Summary
 java.lang.Object clone()
           
 int getGridHeight()
          Returns the height on the GridLayout.
 int getGridWidth()
          Returns the width on the GridLayout.
 int getGridX()
          Returns the x-position on the grid.
 int getGridY()
          Returns the y-position on the GridLayout.
 java.awt.Insets getInsets()
          Returns the insets on the GridLayout.
 void setGridHeight(int pGridHeight)
          Sets the height on the GridLayout.
 void setGridWidth(int pGridWidth)
          Sets the width on the GridLayout.
 void setGridX(int pGridX)
          Sets the x-position on the GridLayout.
 void setGridY(int pGridY)
          Sets the y-position on the GridLayout.
 void setInsets(java.awt.Insets pInsets)
          Sets the width on the GridLayout.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVxGridLayout.CellConstraints

public JVxGridLayout.CellConstraints()
Constructs a new CellConstraint.


JVxGridLayout.CellConstraints

public JVxGridLayout.CellConstraints(int pGridX,
                                     int pGridY)
Constructs a new CellConstraint with the given parameters.

Parameters:
pGridX - the position on the x-axis
pGridY - the position on the y-axis

JVxGridLayout.CellConstraints

public JVxGridLayout.CellConstraints(int pGridX,
                                     int pGridY,
                                     int pWidth,
                                     int pHeight)
Constructs a new CellConstraint with the given parameters.

Parameters:
pGridX - the position on the x-axis
pGridY - the position on the y-axis
pWidth - the width of the component
pHeight - the height of the component

JVxGridLayout.CellConstraints

public JVxGridLayout.CellConstraints(int pGridX,
                                     int pGridY,
                                     int pGridWidth,
                                     int pGridHeight,
                                     java.awt.Insets pInsets)
Constructs a new CellConstraint with the given parameters.

Parameters:
pGridX - the position on the x-axis
pGridY - the position on the y-axis
pGridWidth - the width of the component
pGridHeight - the height of the component
pInsets - the specified insets
Method Detail

getGridX

public int getGridX()
Returns the x-position on the grid.

Returns:
the x-position

setGridX

public void setGridX(int pGridX)
Sets the x-position on the GridLayout.

Parameters:
pGridX - the x-position to set

getGridY

public int getGridY()
Returns the y-position on the GridLayout.

Returns:
the y-position

setGridY

public void setGridY(int pGridY)
Sets the y-position on the GridLayout.

Parameters:
pGridY - the x-position to set

getGridWidth

public int getGridWidth()
Returns the width on the GridLayout.

Returns:
the width

setGridWidth

public void setGridWidth(int pGridWidth)
Sets the width on the GridLayout.

Parameters:
pGridWidth - the height to set

getGridHeight

public int getGridHeight()
Returns the height on the GridLayout.

Returns:
the height

setGridHeight

public void setGridHeight(int pGridHeight)
Sets the height on the GridLayout.

Parameters:
pGridHeight - the height to set

getInsets

public java.awt.Insets getInsets()
Returns the insets on the GridLayout.

Returns:
the insets

setInsets

public void setInsets(java.awt.Insets pInsets)
Sets the width on the GridLayout.

Parameters:
pInsets - the insets to set

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.