net.sf.ecl.datepicker.util
Class Grid

java.lang.Object
  extended by net.sf.ecl.datepicker.util.Grid

public final class Grid
extends Object

TODO comment


Field Summary
 int columnCount
          TODO comment
 int columnSize
          TODO comment
 int horizontalSpacing
          TODO comment
 int marginBottom
          TODO comment
 int marginLeft
          TODO comment
 int marginRight
          TODO comment
 int marginTop
          TODO comment
 int rowCount
          TODO comment
 int rowSize
          TODO comment
 int verticalSpacing
          TODO comment
 int x
          TODO comment
 int y
          TODO comment
 
Constructor Summary
Grid(int x, int y, int rowCount, int columnCount, int rowSize, int columnSize)
          TODO comment
Grid(Point location, Point dimension, Point cellSize)
          TODO comment
 
Method Summary
 Rectangle getBounds()
          TODO comment
 Rectangle getCellBounds(int rowIndex, int columnIndex)
          TODO comment
 Point getCellFromPoint(int x, int y)
          TODO comment
 Point getCellFromPoint(Point point)
          TODO comment
 Point getCellLocation(int rowIndex, int columnIndex)
          TODO comment
 Point getCellSize()
          TODO comment
 Rectangle getColumnBounds(int columnIndex)
          TODO comment
 int getColumnIndexFromPoint(int x, int y)
          TODO comment
 Point getColumnLocation(int columnIndex)
          TODO comment
 Point getDimension()
          TODO comment
 int getHeight()
          TODO comment
 Point getLocation()
          TODO comment
 Rectangle getRowBounds(int rowIndex)
          TODO comment
 int getRowIndexFromPoint(int x, int y)
          TODO comment
 Point getRowLocation(int rowIndex)
          TODO comment
 Point getSize()
          TODO comment
 int getWidth()
          TODO comment
 void setCellSize(Point size)
          TODO comment
 void setDimension(Point dimension)
          TODO comment
 void setLocation(int x, int y)
          TODO comment
 void setLocation(Point location)
          TODO comment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnCount

public int columnCount
TODO comment


columnSize

public int columnSize
TODO comment


horizontalSpacing

public int horizontalSpacing
TODO comment


marginBottom

public int marginBottom
TODO comment


marginLeft

public int marginLeft
TODO comment


marginRight

public int marginRight
TODO comment


marginTop

public int marginTop
TODO comment


rowCount

public int rowCount
TODO comment


rowSize

public int rowSize
TODO comment


verticalSpacing

public int verticalSpacing
TODO comment


x

public int x
TODO comment


y

public int y
TODO comment

Constructor Detail

Grid

public Grid(int x,
            int y,
            int rowCount,
            int columnCount,
            int rowSize,
            int columnSize)
TODO comment

Parameters:
x -
y -
rowCount -
columnCount -
rowSize -
columnSize -

Grid

public Grid(Point location,
            Point dimension,
            Point cellSize)
TODO comment

Parameters:
location -
dimension -
cellSize -
Method Detail

getBounds

public Rectangle getBounds()
TODO comment

Returns:

getCellBounds

public Rectangle getCellBounds(int rowIndex,
                               int columnIndex)
TODO comment

Parameters:
rowIndex -
columnIndex -
Returns:
@throws IndexOutOfBoundsException

getCellFromPoint

public Point getCellFromPoint(int x,
                              int y)
TODO comment

Parameters:
x -
y -
Returns:

getCellFromPoint

public Point getCellFromPoint(Point point)
TODO comment

Parameters:
point -
Returns:

getCellLocation

public Point getCellLocation(int rowIndex,
                             int columnIndex)
TODO comment

Parameters:
rowIndex -
columnIndex -
Returns:

getCellSize

public Point getCellSize()
TODO comment

Returns:

getColumnBounds

public Rectangle getColumnBounds(int columnIndex)
TODO comment

Parameters:
columnIndex -
Returns:
@throws IndexOutOfBoundsException

getColumnIndexFromPoint

public int getColumnIndexFromPoint(int x,
                                   int y)
TODO comment

Parameters:
x -
y -
Returns:

getColumnLocation

public Point getColumnLocation(int columnIndex)
TODO comment

Parameters:
columnIndex -
Returns:
@throws IndexOutOfBoundsException

getDimension

public Point getDimension()
TODO comment

Returns:

getHeight

public int getHeight()
TODO comment

Returns:

getLocation

public Point getLocation()
TODO comment

Returns:

getRowBounds

public Rectangle getRowBounds(int rowIndex)
TODO comment

Parameters:
rowNumber -
Returns:
@throws IndexOutOfBoundsException

getRowIndexFromPoint

public int getRowIndexFromPoint(int x,
                                int y)
TODO comment

Parameters:
x -
y -
Returns:

getRowLocation

public Point getRowLocation(int rowIndex)
TODO comment

Parameters:
rowIndex -
Returns:
@throws IndexOutOfBoundsException

getSize

public Point getSize()
TODO comment

Returns:

getWidth

public int getWidth()
TODO comment

Returns:

setCellSize

public void setCellSize(Point size)
TODO comment

Parameters:
size -

setDimension

public void setDimension(Point dimension)
TODO comment

Parameters:
dimension -

setLocation

public void setLocation(int x,
                        int y)
TODO comment

Parameters:
x -
y -

setLocation

public void setLocation(Point location)
TODO comment

Parameters:
location -