|
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 | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--com.klg.jclass.table.CellArea
A CellArea
is a transparent component that manages
a specific scrollable or non-scrollable region within JCTable.
There will typically be 1 to 9 Area objects in a JCTable --
depending on the existance of row labels, column labels, and
frozen rows/columns. It also acts as the container
for editors and components in cells.
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
CELL
|
protected Dimension |
cell_size
|
static int |
COLUMNLABEL
|
protected int |
end_column
|
protected int |
end_row
|
static int |
FROZENCELL
|
static int |
FROZENCOLUMN
|
static int |
FROZENCOLUMNLABEL
|
static int |
FROZENROW
|
static int |
FROZENROWLABEL
|
static int |
ROWLABEL
|
protected int |
standard_offset_x
|
protected int |
standard_offset_y
|
protected int |
start_column
|
protected int |
start_row
|
protected int |
type
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
CellArea(int type)
Creates a new CellArea. |
Method Summary | |
boolean |
containsCell(int row,
int column)
Returns true if the given cell is contained in the area. |
com.klg.jclass.table.JCCellRange |
getCellRange()
Returns the range of cells contained by the Area. |
Dimension |
getCellSize()
Returns the total dimensions of the contained cells. |
int |
getEndColumn()
Returns the end column for the range of cells contained in the area. |
int |
getEndRow()
Returns the end row for the range of cells contained in the area. |
Dimension |
getMinimumSize()
Returns the minimum size of the area. |
Dimension |
getPreferredSize()
Returns the preferred size of the cell area. |
int |
getStandardOffsetX()
Returns the x offset of the area bounds to standard layout. |
int |
getStandardOffsetY()
Returns the y offset of the area bounds to standard layout. |
int |
getStartColumn()
Returns the start column for the range of cells contained in the area. |
int |
getStartRow()
Returns the start row for the range of cells contained in the area. |
int |
getType()
Returns the type of area. |
String |
getTypeString()
Returns a string representation of the Area type. |
boolean |
intersects(Rectangle r)
Returns true if the bounds of the area intersects the given rectangle. |
boolean |
isFocusTraversable()
|
boolean |
isHorizontalScrollable()
Returns true if this Area scrolls horizontally. |
boolean |
isVerticalScrollable()
Returns true if this Area scrolls vertically. |
protected void |
processKeyEvent(KeyEvent e)
|
protected void |
processMouseEvent(MouseEvent e)
|
protected void |
processMouseMotionEvent(MouseEvent e)
|
void |
setCellRange(int start_row,
int start_column,
int end_row,
int end_column)
Sets the range of cells that the area manages. |
void |
setCellRange(com.klg.jclass.table.JCCellRange range)
Sets the range of cells that the Area manages. |
void |
setCellSize(Dimension d)
Sets the total dimensions of the contained cells for use in preferred size calculations. |
void |
setCellSize(int width,
int height)
Sets the total dimensions of the contained cells. |
void |
setStandardOffset(int x,
int y)
Sets the offset of the area bounds to standard layout. |
void |
setStandardOffsetX(int x)
Sets the x offset of the area bounds to standard layout. |
void |
setStandardOffsetY(int y)
Sets the y offset of the area bounds to standard layout. |
void |
setType(int type)
Sets the type for the area. |
String |
toString()
Returns a string representation of the Area. |
protected MouseEvent |
translateMouseEventToParent(MouseEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int CELL
public static final int FROZENROW
public static final int COLUMNLABEL
public static final int FROZENCOLUMN
public static final int FROZENCELL
public static final int FROZENCOLUMNLABEL
public static final int ROWLABEL
public static final int FROZENROWLABEL
protected int standard_offset_x
protected int standard_offset_y
protected Dimension cell_size
protected int start_row
protected int start_column
protected int end_row
protected int end_column
protected int type
Constructor Detail |
protected CellArea(int type)
Method Detail |
protected void processMouseEvent(MouseEvent e)
processMouseEvent
in class Component
protected void processMouseMotionEvent(MouseEvent e)
processMouseMotionEvent
in class JComponent
protected MouseEvent translateMouseEventToParent(MouseEvent e)
protected void processKeyEvent(KeyEvent e)
processKeyEvent
in class JComponent
public com.klg.jclass.table.JCCellRange getCellRange()
setCellRange(com.klg.jclass.table.JCCellRange)
public void setCellRange(com.klg.jclass.table.JCCellRange range)
public void setCellRange(int start_row, int start_column, int end_row, int end_column)
public Dimension getCellSize()
public void setCellSize(Dimension d)
public void setCellSize(int width, int height)
public boolean containsCell(int row, int column)
public boolean intersects(Rectangle r)
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public int getStandardOffsetX()
public int getStandardOffsetY()
public void setStandardOffset(int x, int y)
public void setStandardOffsetX(int x)
public void setStandardOffsetY(int y)
public int getType()
setType(int)
public void setType(int type)
Area.CELL
, CellArea.FROZENROW
,
CellArea.COLUMNLABEL
, CellArea.FROZENCOLUMN
,
CellArea.FROZENCELL
, CellArea.FROZENCOLUMNLABEL
,
CellArea.ROWLABEL
, CellArea.FROZENROWLABEL
public String getTypeString()
public boolean isHorizontalScrollable()
public boolean isVerticalScrollable()
public int getStartRow()
public int getStartColumn()
public int getEndRow()
public int getEndColumn()
public boolean isFocusTraversable()
isFocusTraversable
in class Component
public String toString()
toString
in class Component
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |