|
Diamond Control Suite 3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectdiamondedge.swing.DsTableCell
public class DsTableCell
| Field Summary |
|---|
| Fields inherited from interface diamondedge.swing.DsCellProperties |
|---|
ALIGN_DEFAULT, ROTATE_0, ROTATE_270, ROTATE_90, ROTATE_DEFAULT |
| Fields inherited from interface diamondedge.swing.DsConstants |
|---|
ACCOUNTING, ALL, ASCENDING, ASCENDING_CASE, BORDER_BOTTOM, BORDER_LEFT, BORDER_NONE, BORDER_OUTLINE, BORDER_RIGHT, BORDER_TOP, CROSS_LINES, DASH, DASH_DOT, DASH_DOT_DOT, DEFAULT, DESCENDING, DESCENDING_CASE, DIAGONAL_CROSS_LINES, DOT, DOUBLE, DOUBLE_LINE, DOWNWARD_DIAGONAL_LINES, ETCHED, ETCHED_RAISED, FALSE, FIND_ALL, FIND_EQUALS, FIND_GT, FIND_GTE, FIND_LT, FIND_LTE, FIND_NE, FIND_PREFIX, FIND_REGEX, FIND_STRING, FIRST, FLAT, GRID_DASH, GRID_DASH_DOT, GRID_DASH_DOT_DOT, GRID_DOT, GRID_LINE, HIGHLIGHT_SELECTION_ALWAYS, HIGHLIGHT_SELECTION_NEVER, HIGHLIGHT_SELECTION_WITH_FOCUS, HORIZONTAL_LINES, LOWERED, LOWERED_LIGHT, NONE, RAISED, RAISED_LIGHT, SELECT_CELL, SELECT_NONE, SELECT_ROW, SINGLE, SINGLE_LINE, SOLID, STRETCH, TILE, TRANSPARENT, TRUE, UPWARD_DIAGONAL_LINES, VERTICAL_LINES |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
protected |
DsTableCell()
|
protected |
DsTableCell(Object val)
|
| Method Summary | |
|---|---|
Object |
clone()
|
static String |
formatValue(DsCellProperties cell,
Object value)
Hides or unhides this cell. |
Paint |
getBackground()
Returns a value which determines the background color behind the text. |
Border |
getBorder()
Returns the border that will be painted on the outside. |
Paint |
getBorderLineColor()
Returns a value which determines the color that line borders are drawn in. |
int |
getBorderLines()
Returns a value that determines which border lines that are drawn around the cell. |
int |
getBorderLineWidth()
Returns a value that determines the width of the lines that are drawn around the cell. |
int |
getBorderStyle()
Returns a value that determines how the border for the cell is drawn. |
int |
getColumnSpan()
Returns the number of columns this cell spans. |
Object |
getData()
Returns a user defined object associated with the cell. |
int |
getEditableVal()
Returns a value that determines whether the value for the cell can be edited by the user at run-time. |
Font |
getFont()
Returns the Font used to display the text of the cell. |
int |
getFontBoldVal()
Returns a value that determines whether the text for the cell is displayed with a bold font. |
String |
getFontName()
Returns the name of the font used to display the text for the cell. |
int |
getFontSize()
Returns the size of the font used to display the text for the cell. |
int |
getFontUnderline()
Returns a value that determines how the text for the cell is underlined. |
Paint |
getForeground()
Returns a value which determines the color of the text. |
Object |
getFormat()
Returns a Format/Formatter object that determines how the text for the cell is formatted. |
int |
getHorizontalAlignment()
Returns a value that determines how the text for the cell is aligned horizontally. |
int |
getHorizontalTextPosition()
Returns the horizontal position of the text in relation to the icon |
Icon |
getIcon()
Returns the graphic image (glyph, icon) that the label displays. |
int |
getRotation()
Returns a value that determines the rotation of the text and icon. |
int |
getRowSpan()
Returns the number of rows this cell spans. |
String |
getText()
Returns the formatted text to display in a cell of a table. |
int |
getTextStyle()
Returns a value that determines how the text for the cell is drawn. |
String |
getToolTipText()
Returns the text to display when the cursor is over the cell of a table. |
Object |
getValue()
Returns the value being display in a cell of a table. |
int |
getVerticalAlignment()
Returns a value that determines how the text for the cell is aligned horizontally. |
int |
getVerticalTextPosition()
Returns the vertical position of the text in relation to the icon |
boolean |
isEditable()
Returns a value that determines whether the value for the cell can be edited by the user at run-time. |
boolean |
isFontBold()
Returns a value that determines whether the text for the cell is displayed with a bold font. |
boolean |
isFontItalic()
Returns a value that determines whether the text for the cell is displayed with an italic style. |
boolean |
isFontStrikeThrough()
Returns a value that determines whether the text for the cell is displayed with a line through the text. |
boolean |
isNegativeNumberRed()
Returns a value that determines whether negative numbers are displayed in a red color. |
boolean |
isOpaque()
Returns a value that determines whether the background for the cell is painted. |
boolean |
isVisible()
Returns true if this cell is not hidden. |
boolean |
isWordWrap()
Returns a value that determines whether the text for the cell is wrapped onto the line below if it doesn't fit. |
void |
reset()
Resets all style information back to the default values. |
void |
setBackground(Paint c)
Sets a value which determines the background color behind the text. |
void |
setBorder(Border b)
Sets a border that will be painted on the outside. |
void |
setBorder(int borderLineWidth,
int borderStyle,
Paint borderLineColor)
Creates a border around the cell. |
void |
setBorder(int borderLineWidth,
int borderStyle,
Paint borderLineColor,
int borderLines)
Creates a border around the cell. |
void |
setBorderLineColor(Paint c)
Sets a value which determines the color that line borders are drawn in. |
void |
setBorderLines(int val)
Sets a value that determines which border lines that are drawn around the cell. |
void |
setBorderLineWidth(int val)
Sets a value that determines the width of the lines that are drawn around the cell. |
void |
setBorderStyle(int val)
Sets a value that determines how the border for the cell is drawn. |
void |
setColumnSpan(int colSpan)
Sets the number of columns this cell spans. |
void |
setData(Object userData)
Sets a user defined object to be stored with the cell. |
void |
setEditable(boolean val)
Determines whether the value for the cell can be edited by the user at run-time. |
void |
setEditableVal(int val)
Determines whether the value for the cell can be edited by the user at run-time. |
void |
setFont(Font f)
Sets the Font used to display the text of the cell. |
void |
setFontBold(boolean val)
Sets a value that determines whether the text for the cell is displayed with a bold font. |
void |
setFontBoldVal(int val)
Sets a value that determines whether the text for the cell is displayed with a bold font. |
void |
setFontItalic(boolean italic)
Sets a value that determines whether the text for the cell is displayed with an italic style. |
void |
setFontName(String name)
Sets the name of the font used to display the text for the cell. |
void |
setFontSize(int size)
Sets the size of the font used to display the text for the cell. |
void |
setFontStrikeThrough(boolean val)
Sets a value that determines whether the text for the cell is displayed with a line through the text. |
void |
setFontUnderline(int val)
Sets a value that determines how the text for the cell is underlined. |
void |
setForeground(Paint c)
Sets a value which determines the color of the text. |
void |
setFormat(Object val)
Sets a value that determines how the text for the cell is formatted. |
void |
setHorizontalAlignment(int val)
Sets the horizontal alignment of the text. |
void |
setHorizontalTextPosition(int textPosition)
Sets the horizontal position of the text in relation to the icon. |
void |
setIcon(Icon icon)
Defines the icon this component will display. |
void |
setIcon(Image image)
Defines the icon this component will display. |
void |
setNegativeNumberRed(boolean val)
Sets a value that determines whether negative numbers are displayed in a red color. |
void |
setOpaque(boolean val)
Sets a value that determines whether the background for the cell is painted. |
void |
setRotation(int val)
Sets a value that determines the rotation of the text and icon. |
protected void |
setRowSpan(int rowSpan)
Sets the number of rows this cell spans. |
void |
setText(String text)
Sets the text to display in a cell of a table. |
void |
setTextStyle(int val)
Sets a value that determines how the text for the cell is drawn. |
void |
setToolTipText(String text)
Sets the text to display when the cursor is over the cell of a table. |
void |
setValue(Object val)
Sets the value for a cell of a table. |
void |
setVerticalAlignment(int val)
Sets the vertical alignment of the text. |
void |
setVerticalTextPosition(int textPosition)
Sets the vertical position of the text in relation to the icon. |
void |
setWordWrap(boolean val)
Sets a value that determines whether the text for the cell is wrapped onto the line below if it doesn't fit. |
String |
toString()
Returns the formatted text to display in a cell of a table. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected DsTableCell()
protected DsTableCell(Object val)
| Method Detail |
|---|
public Object clone()
clone in class Objectpublic final void reset()
reset in interface DsCellPropertiespublic final Object getValue()
getValue in interface DsCellpublic void setValue(Object val)
setValue in interface DsCellpublic final String getText()
getText in interface DsCellgetFormat()public final void setText(String text)
setText in interface DsCellpublic final Paint getForeground()
getForeground in interface DsCellPropertiespublic final void setForeground(Paint c)
setForeground in interface DsCellPropertiespublic final Paint getBackground()
getBackground in interface DsCellPropertiespublic final void setBackground(Paint c)
setBackground in interface DsCellPropertiespublic final Font getFont()
getFont in interface DsCellPropertiespublic final void setFont(Font f)
setFont in interface DsCellPropertiespublic final String getFontName()
getFontName in interface DsCellPropertiespublic final void setFontName(String name)
setFontName in interface DsCellPropertiespublic final int getFontSize()
getFontSize in interface DsCellPropertiespublic final void setFontSize(int size)
setFontSize in interface DsCellPropertiespublic final boolean isFontBold()
isFontBold in interface DsCellPropertiespublic final void setFontBold(boolean val)
setFontBold in interface DsCellPropertiespublic final int getFontBoldVal()
public final void setFontBoldVal(int val)
public final boolean isFontItalic()
isFontItalic in interface DsCellPropertiespublic final void setFontItalic(boolean italic)
setFontItalic in interface DsCellPropertiespublic final boolean isFontStrikeThrough()
isFontStrikeThrough in interface DsCellPropertiespublic final void setFontStrikeThrough(boolean val)
setFontStrikeThrough in interface DsCellPropertiespublic final int getFontUnderline()
getFontUnderline in interface DsCellPropertiespublic final void setFontUnderline(int val)
DEFAULT - use the value set for the column default value
SINGLE - single line drawn at the baseline
DOUBLE - double line drawn at the baseline
ACCOUNTING - single line drawn below the descent
setFontUnderline in interface DsCellPropertiespublic final boolean isNegativeNumberRed()
isNegativeNumberRed in interface DsCellPropertiespublic final void setNegativeNumberRed(boolean val)
setNegativeNumberRed in interface DsCellPropertiespublic final boolean isOpaque()
isOpaque in interface DsCellPropertiespublic final void setOpaque(boolean val)
setOpaque in interface DsCellPropertiespublic final boolean isWordWrap()
isWordWrap in interface DsCellPropertiespublic final void setWordWrap(boolean val)
setWordWrap in interface DsCellPropertiespublic final boolean isEditable()
isEditable in interface DsCellPropertiespublic final void setEditable(boolean val)
setEditable in interface DsCellPropertiespublic final int getEditableVal()
public final void setEditableVal(int val)
public final int getHorizontalAlignment()
getHorizontalAlignment in interface DsCellPropertiespublic final void setHorizontalAlignment(int val)
ALIGN_DEFAULT - use the alignment set for the column
LEFT
CENTER
RIGHT
setHorizontalAlignment in interface DsCellPropertiespublic final int getVerticalAlignment()
getVerticalAlignment in interface DsCellPropertiespublic final void setVerticalAlignment(int val)
ALIGN_DEFAULT - use the alignment set for the column
TOP
CENTER
BOTTOM
setVerticalAlignment in interface DsCellPropertiespublic final int getTextStyle()
getTextStyle in interface DsCellPropertiespublic final void setTextStyle(int val)
DEFAULT - use the value set for the column default value
FLAT - draw text normally
RAISED - make text look like it raised off the screen with a bevel
LOWERED - make text look like it inset into the screen
RAISED_LIGHT - make text look like it raised off the screen but without the shadow
LOWERED_LIGHT - make text look like it inset into the screen but without the shadow
RAISED and LOWERED look good with larger or bold fonts. For smaller fonts use
RAISED_LIGHT and LOWERED_LIGHT
setTextStyle in interface DsCellPropertiespublic final int getRotation()
getRotation in interface DsCellPropertiespublic final void setRotation(int val)
ROTATE_0 - draw text normally
ROTATE_90 - draw text and icon at a 90 degree angle
ROTATE_270 - draw text and icon at a 270 degree angle
setRotation in interface DsCellProperties
public void setBorder(int borderLineWidth,
int borderStyle,
Paint borderLineColor)
setBorder in interface DsCellPropertiessetBorderLineWidth(int),
setBorderStyle(int),
setBorderLineColor(java.awt.Paint),
setBorderLines(int)
public void setBorder(int borderLineWidth,
int borderStyle,
Paint borderLineColor,
int borderLines)
setBorder in interface DsCellPropertiessetBorderLineWidth(int),
setBorderStyle(int),
setBorderLineColor(java.awt.Paint),
setBorderLines(int)public final int getBorderStyle()
getBorderStyle in interface DsCellPropertiespublic final void setBorderStyle(int val)
setBorderStyle in interface DsCellPropertiespublic final int getBorderLines()
getBorderLines in interface DsCellPropertiespublic final void setBorderLines(int val)
setBorderLines in interface DsCellPropertiespublic final int getBorderLineWidth()
getBorderLineWidth in interface DsCellPropertiespublic final void setBorderLineWidth(int val)
setBorderLineWidth in interface DsCellPropertiespublic final Paint getBorderLineColor()
getBorderLineColor in interface DsCellPropertiespublic final void setBorderLineColor(Paint c)
setBorderLineColor in interface DsCellPropertiespublic final Border getBorder()
getBorder in interface DsCellPropertiespublic final void setBorder(Border b)
setBorder in interface DsCellPropertiespublic final Icon getIcon()
getIcon in interface DsCellPropertiespublic final void setIcon(Icon icon)
The default value of this property is null.
setIcon in interface DsCellPropertiessetVerticalTextPosition(int),
setHorizontalTextPosition(int)public final void setIcon(Image image)
setIcon in interface DsCellPropertiessetIcon(Icon)public final int getHorizontalTextPosition()
getHorizontalTextPosition in interface DsCellPropertiespublic final void setHorizontalTextPosition(int textPosition)
LEFT - text is on the left side of the icon. CENTER - text and icon are centered horizontally. RIGHT - text is on the right side of the icon. (Default)
setHorizontalTextPosition in interface DsCellPropertiespublic final int getVerticalTextPosition()
getVerticalTextPosition in interface DsCellPropertiespublic final void setVerticalTextPosition(int textPosition)
TOP - text is on the top of the icon. CENTER - text and icon are centered vertically. (Default) BOTTOM - text is on the bottom of the icon.
setVerticalTextPosition in interface DsCellPropertiespublic final Object getFormat()
getFormat in interface DsCellPropertiespublic final void setFormat(Object val)
setFormat in interface DsCellPropertiespublic final String getToolTipText()
getToolTipText in interface DsCellpublic final void setToolTipText(String text)
setToolTipText in interface DsCellpublic final Object getData()
getData in interface DsCellpublic final void setData(Object userData)
setData in interface DsCellpublic final int getRowSpan()
getRowSpan in interface DsCellprotected final void setRowSpan(int rowSpan)
public final int getColumnSpan()
getColumnSpan in interface DsCellpublic final void setColumnSpan(int colSpan)
public final boolean isVisible()
isVisible in interface DsCell
public static String formatValue(DsCellProperties cell,
Object value)
public String toString()
toString in class ObjectgetText(),
getFormat()
|
Diamond Control Suite 3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||