|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.table.CellAreaHandler
CellAreaHandler
controls the creation and removal of
CellAreas
within the table.
Field Summary | |
protected Vector |
areas
|
protected com.klg.jclass.table.CellArea |
cellArea
|
protected com.klg.jclass.table.CellAreaRenderer |
cellAreaRenderer
|
protected com.klg.jclass.table.TableCellInfoModel |
cellInfo
|
protected Point |
cellOrigin
|
protected Rectangle |
cellRect
|
protected com.klg.jclass.table.CellArea |
columnLabelArea
|
protected Rectangle |
columnLabelRect
|
protected int |
drag_column
|
protected int[] |
drag_columns
|
protected int |
drag_row
|
protected int[] |
drag_rows
|
protected boolean |
DRAGGING
|
protected int |
drop_column
|
protected int |
drop_row
|
protected com.klg.jclass.table.CellArea |
frozenCellArea
|
protected com.klg.jclass.table.CellArea |
frozenColumnArea
|
protected com.klg.jclass.table.CellArea |
frozenColumnLabelArea
|
protected com.klg.jclass.table.CellArea |
frozenRowArea
|
protected com.klg.jclass.table.CellArea |
frozenRowLabelArea
|
protected boolean |
isStandardLayout
|
protected com.klg.jclass.table.CellArea |
rowLabelArea
|
protected Rectangle |
rowLabelRect
|
protected com.klg.jclass.table.JCTable |
table
|
Constructor Summary | |
CellAreaHandler(com.klg.jclass.table.JCTable table)
Creates a new controller for Areas. |
Method Summary | |
protected void |
cancelDrag()
Resets drag variables when the drag process is cancelled. |
protected com.klg.jclass.table.CellArea |
contains(int x,
int y)
Returns the CellArea that contains the given coordintates. |
com.klg.jclass.table.CellArea |
createCellArea(int type)
Creates a new CellArea of the specified type. |
void |
createRequiredCellAreas()
Ensures that all required Areas exist. |
protected int |
determineThinSides(int row,
int column)
Determines whether additional sides are needed for the thin border of the specified cell. |
protected int |
determineThinSides(int row,
int column,
int end_row,
int end_column)
Determines whether additional sides are needed for the thin border of the specified cell. |
protected void |
endDrag()
Resets drag variables at the end of the drag process. |
com.klg.jclass.table.CellArea |
find(int row,
int column)
Finds the Area by row/column |
com.klg.jclass.table.CellArea |
findByType(int type)
Find the Area of the specified type |
Rectangle |
getBounds(int row,
int column)
Returns the bounds of the cell accounting for the position of the CellArea that manages the cell. |
Rectangle |
getBounds(int start_row,
int start_column,
int end_row,
int end_column)
Returns the bounds of a cell range. |
Rectangle |
getBounds(int row,
int column,
Rectangle r)
Returns the bounds of the cell accounting for the position of the CellArea the manages the cell. |
com.klg.jclass.table.CellArea |
getCellArea()
Returns the scrollable cell area. |
com.klg.jclass.table.CellAreaRenderer |
getCellAreaRenderer()
Returns the AreaRenderer. |
Vector |
getCellAreas()
Returns a Vector containing the areas of the table. |
Point |
getCellOrigin()
Returns the scrollbar cell origin. |
int |
getColumn(int x,
int y)
Returns the column containing the given coordinates. |
Rectangle |
getDragBounds(int row,
int column)
Returns the bounds of a cell during a drag process. |
int |
getRow(int x,
int y)
Returns the row containing the given coordinates. |
com.klg.jclass.table.JCTable |
getTable()
Returns the table controlled by the AreaHandler. |
com.klg.jclass.table.TableCellInfoModel |
getTableCellInfo()
Returns the TableCellInfoModel object that acts as an intermediary between CellStyleModel objects and CellEditors/CellRenderers. |
protected int |
getTransposedX(int column,
int drag_column,
int drop_column)
Gets the x position of a column during a column drag. |
protected int |
getTransposedY(int row,
int drag_row,
int drop_row)
Gets the y position of a row during a row drag. |
com.klg.jclass.table.JCCellRange |
getVisibleCells()
Returns the cell range of visible, scrollable cells. |
boolean |
isContentClipped(int row,
int column)
Returns true if the full content of the cell is not displayed because of the size of the cell. |
boolean |
isStandardLayout()
Returns true if the table is in standard layout (label, frozen, cell) |
protected void |
performDrag(int drag_row,
int drag_column,
int drop_row,
int drop_column)
Remaps rows/columns during the drag process and forces appropriate cell repainting. |
void |
setAreaCellRange(com.klg.jclass.table.CellArea area)
Sets the range of cells associated with the Area. |
void |
setCellOrigin(int x,
int y)
Sets the scrollable cell origin based on an x and y value. |
void |
setCellOrigin(Point p)
Sets the scrollable cell orgin. |
void |
setCellOriginX(int x)
Sets the x coordinate for the cell origin. |
void |
setCellOriginY(int y)
Sets the y coordinate for the cell origin. |
void |
setStandardLayout(boolean value)
Set true if table is in standard layout (label, frozen, cell) |
void |
setTableCellInfo(com.klg.jclass.table.TableCellInfoModel cellInfo)
Sets the TableCellInfoModel object that acts as an intermediary between CellStyleModel objects and CellEditors/CellRenderers. |
protected int[] |
shiftArray(int[] array,
int item1,
int item2)
Repositions a row or column to a new location in the mapped array. |
protected void |
updateCellArea(int type,
boolean isNeeded)
Update the CellArea to which the type refers. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected com.klg.jclass.table.JCTable table
protected com.klg.jclass.table.CellArea cellArea
protected com.klg.jclass.table.CellArea frozenRowArea
protected com.klg.jclass.table.CellArea columnLabelArea
protected com.klg.jclass.table.CellArea frozenColumnArea
protected com.klg.jclass.table.CellArea frozenCellArea
protected com.klg.jclass.table.CellArea frozenColumnLabelArea
protected com.klg.jclass.table.CellArea rowLabelArea
protected com.klg.jclass.table.CellArea frozenRowLabelArea
protected Vector areas
protected com.klg.jclass.table.CellAreaRenderer cellAreaRenderer
protected com.klg.jclass.table.TableCellInfoModel cellInfo
protected Point cellOrigin
protected boolean isStandardLayout
protected Rectangle rowLabelRect
protected Rectangle columnLabelRect
protected Rectangle cellRect
protected boolean DRAGGING
protected int drag_row
protected int drag_column
protected int drop_row
protected int drop_column
protected int[] drag_columns
protected int[] drag_rows
Constructor Detail |
public CellAreaHandler(com.klg.jclass.table.JCTable table)
Method Detail |
public com.klg.jclass.table.CellAreaRenderer getCellAreaRenderer()
public com.klg.jclass.table.JCTable getTable()
public com.klg.jclass.table.CellArea createCellArea(int type)
CellArea.CELL
CellArea.FROZENROW
CellArea.COLUMNLABEL
CellArea.FROZENCOLUMN
CellArea.FROZENCELL
CellArea.FROZENCOLUMNLABEL
CellArea.ROWLABEL
CellArea.FROZENROWLABEL
Only one CellArea can exist of any type. If one already exists, it is returned rather than creating a new one.
public com.klg.jclass.table.CellArea findByType(int type)
public com.klg.jclass.table.CellArea find(int row, int column)
public Vector getCellAreas()
protected void updateCellArea(int type, boolean isNeeded)
type
- The type of the CellArea to update.isNeeded
- Is the CellArea needed based on the current table paramters?public void createRequiredCellAreas()
public void setAreaCellRange(com.klg.jclass.table.CellArea area)
public Point getCellOrigin()
public void setCellOrigin(Point p)
public void setCellOrigin(int x, int y)
public void setCellOriginX(int x)
public void setCellOriginY(int y)
public boolean isStandardLayout()
public void setStandardLayout(boolean value)
public com.klg.jclass.table.TableCellInfoModel getTableCellInfo()
public void setTableCellInfo(com.klg.jclass.table.TableCellInfoModel cellInfo)
public int getRow(int x, int y)
public int getColumn(int x, int y)
protected com.klg.jclass.table.CellArea contains(int x, int y)
public Rectangle getBounds(int row, int column)
public Rectangle getBounds(int row, int column, Rectangle r)
public Rectangle getBounds(int start_row, int start_column, int end_row, int end_column)
public Rectangle getDragBounds(int row, int column)
public boolean isContentClipped(int row, int column)
public com.klg.jclass.table.JCCellRange getVisibleCells()
protected void performDrag(int drag_row, int drag_column, int drop_row, int drop_column)
protected void cancelDrag()
protected void endDrag()
protected int getTransposedY(int row, int drag_row, int drop_row)
protected int getTransposedX(int column, int drag_column, int drop_column)
protected int[] shiftArray(int[] array, int item1, int item2)
public com.klg.jclass.table.CellArea getCellArea()
protected int determineThinSides(int row, int column)
row
- the cell's rowcolumn
- the cell's column
protected int determineThinSides(int row, int column, int end_row, int end_column)
row
- the cell's rowcolumn
- the cell's columnend_row
- the end row where we need bottom sidesend_column
- the end column where we need right sides
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |