|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The JCCellInfo
class is passed to JCCellRenderer
and JCCellEditor
objects to provide cell information that
can be used in drawing or determining the type of editor to use.
Field Summary | |
static int |
BOTTOM
Alignment value. |
static int |
CENTER
Alignment value. |
static int |
LEFT
Alignment value. |
static int |
RIGHT
Alignment value. |
static int |
SHOW_ALL
clipHints value. |
static int |
SHOW_HORIZONTAL
clipHints value. |
static int |
SHOW_NONE
clipHints value. |
static int |
SHOW_VERTICAL
clipHints value. |
static int |
TOP
Alignment value. |
Method Summary | |
Color |
getBackground()
Returns the background color of the cell being displayed or edited. |
Insets |
getBorderInsets()
Returns the Insets object representing the borders for the cell. |
int |
getBorderStyle()
Returns the border style for the cell. |
int |
getClipHints()
Determines whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
Class |
getDataType()
Returns the cell's associated data type. |
Rectangle |
getDrawingArea()
Returns the dimensions of the drawing area for the cell being displayed or edited. |
Font |
getFont()
Returns the font of the cell being displayed or edited. |
Color |
getForeground()
Returns the foreground color of the cell being displayed or edited. |
int |
getHorizontalAlignment()
Returns the horizontal alignment for the cell being displayed or edited. |
Insets |
getMarginInsets()
Returns the Insets object representing the margins for the cell. |
boolean |
getSelectAll()
Determines whether the editor should select the contents before editing. |
Color |
getSelectedBackground()
Returns the background color of the cell being displayed or edited when the cell is selected. |
Color |
getSelectedForeground()
Returns the foreground color of the cell being displayed or edited when the cell is selected. |
int |
getVerticalAlignment()
Returns the vertical alignment for the cell being displayed or edited. |
boolean |
isEditable()
Determines whether the cell is editable. |
boolean |
isEnabled()
Determines whether the cell is enabled. |
Field Detail |
public static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int TOP
public static final int BOTTOM
public static final int SHOW_NONE
clipHints
value.
public static final int SHOW_HORIZONTAL
clipHints
value.
public static final int SHOW_VERTICAL
clipHints
value.
public static final int SHOW_ALL
clipHints
value.
Method Detail |
public Color getBackground()
public Color getForeground()
Container
sets the foreground color on the graphics object it
passes to JCCellRenderer.draw()
.
public Color getSelectedBackground()
public Color getSelectedForeground()
public Font getFont()
Container
sets the
font on the graphics object it passes to JCCellRenderer.draw()
.
public int getHorizontalAlignment()
LEFT
, CENTER
, and
RIGHT
.
public int getVerticalAlignment()
TOP
, CENTER
, and
BOTTOM
.
public Insets getMarginInsets()
Insets
object representing the margins for the cell.
This method should be applied to editor components, but not renderer components since the renderer has already been mapped inside the area bounded by the margins and borders.
Insets
object representing the margins for the cellpublic Insets getBorderInsets()
Insets
object representing the borders for the cell.
This method should be ignored by editor and renderer components since the editor is deliberatly made bigger than the renderer by this amount.
Insets
object representing the borders for the cellpublic int getBorderStyle()
public Rectangle getDrawingArea()
public boolean isEditable()
public boolean isEnabled()
public boolean getSelectAll()
public int getClipHints()
public Class getDataType()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |