|
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.higrid.CellStyle
The CellStyle
class is an implementation of the CellStyleModel
interface and provides CellRenderer
and CellEditor
objects formatting information that can
be used in drawing.
Field Summary | |
protected boolean |
allowWidthSizing
|
protected Color |
backgroundColor
|
protected Insets |
borderInsets
|
protected int |
borderStyle
|
protected int |
clipHints
|
protected int |
editHeightPolicy
|
protected int |
editWidthPolicy
|
protected Font |
font
|
protected Color |
foregroundColor
|
protected int |
horizontalAlignment
|
protected Insets |
marginInsets
|
protected boolean |
selectAll
|
protected Color |
selectedBackgroundColor
|
protected Color |
selectedForegroundColor
|
protected int |
verticalAlignment
|
Constructor Summary | |
CellStyle()
|
Method Summary | |
void |
copyFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Copies the passed cellStyle's attributes into this CellStyle. |
void |
copyPlafFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
Copies the passed cellStyle's PLAF attributes into this CellStyle. |
boolean |
getAllowWidthSizing()
Retrieves whether width sizing is currently allowed. |
Color |
getBackground()
Retrieves the background color for this object. |
Insets |
getBorderInsets()
Retrieves the border insets for this object. |
int |
getBorderStyle()
Retrieves the border style for this object. |
int |
getClipHints()
Determines whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
int |
getEditHeightPolicy()
Retrieves the edit height policy for this object. |
int |
getEditWidthPolicy()
Retrieves the edit width policy for this object. |
Font |
getFont()
Retrieves the font for this object. |
Color |
getForeground()
Retrieves the foreground color for this object. |
int |
getHorizontalAlignment()
Retrieves the horizontal alignment for this object. |
Insets |
getMarginInsets()
Retrieves the margin insets for this object. |
boolean |
getSelectAll()
Determines whether the editor should select the contents before editing. |
Color |
getSelectedBackground()
Retrieves the selected background color for this object. |
Color |
getSelectedForeground()
Retrieves the selected foreground color for this object. |
int |
getVerticalAlignment()
Retrieves the vertical alignment for this object. |
void |
setAllowWidthSizing(boolean allow)
Sets whether width sizing is currently allowed. |
void |
setBackground(Color color)
Sets the background color for this object. |
void |
setBorderInsets(Insets insets)
Sets the border insets for this object. |
void |
setBorderStyle(int style)
Sets the border style for this object. |
void |
setClipHints(int clipHints)
Determines whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
void |
setEditHeightPolicy(int policy)
Sets the edit height policy for this object. |
void |
setEditWidthPolicy(int policy)
Sets the edit width policy for this object. |
void |
setFont(Font font)
Sets the font for this object. |
void |
setForeground(Color color)
Sets the foreground color for this object. |
void |
setHorizontalAlignment(int alignment)
Sets the horizontal alignment for this object. |
void |
setMarginInsets(Insets insets)
Sets the margin insets for this object. |
void |
setOtherAllowWidthSizing(boolean allow)
Sets whether width sizing is currently allowed for the other header/record pair. |
void |
setSelectAll(boolean selectAll)
Determines whether the editor should select the contents before editing. |
void |
setSelectedBackground(Color color)
Sets the selected background color for this object. |
void |
setSelectedForeground(Color color)
Sets the selected foreground color for this object. |
void |
setVerticalAlignment(int alignment)
Sets the vertical alignment for this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Color backgroundColor
protected Color foregroundColor
protected Color selectedBackgroundColor
protected Color selectedForegroundColor
protected int borderStyle
protected Insets borderInsets
protected int verticalAlignment
protected int horizontalAlignment
protected int editWidthPolicy
protected int editHeightPolicy
protected Insets marginInsets
protected Font font
protected boolean allowWidthSizing
protected boolean selectAll
protected int clipHints
Constructor Detail |
public CellStyle()
Method Detail |
public void copyPlafFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
copyPlafFromCellStyle
in interface CellStyleModel
cellStyle
- the CellStyle to initialize this CellStyle with.public void copyFromCellStyle(com.klg.jclass.higrid.CellStyleModel cellStyle)
copyFromCellStyle
in interface CellStyleModel
cellStyle
- the CellStyle to initialize this CellStyle with.public Color getBackground()
getBackground
in interface CellStyleModel
public void setBackground(Color color)
setBackground
in interface CellStyleModel
color
- The new background color.
IllegalArgumentException
- If parameter is null.public Color getForeground()
getForeground
in interface CellStyleModel
public void setForeground(Color color)
setForeground
in interface CellStyleModel
color
- The new foreground color.
IllegalArgumentException
- If parameter is null.public Color getSelectedBackground()
getSelectedBackground
in interface CellStyleModel
public void setSelectedBackground(Color color)
setSelectedBackground
in interface CellStyleModel
color
- The new selected background color.
IllegalArgumentException
- If parameter is null.public Color getSelectedForeground()
getSelectedForeground
in interface CellStyleModel
public void setSelectedForeground(Color color)
setSelectedForeground
in interface CellStyleModel
color
- The new selected foreground color.
IllegalArgumentException
- If parameter is null.public int getBorderStyle()
getBorderStyle
in interface CellStyleModel
public void setBorderStyle(int style)
setBorderStyle
in interface CellStyleModel
style
- The new border style.public Insets getBorderInsets()
getBorderInsets
in interface CellStyleModel
public void setBorderInsets(Insets insets)
setBorderInsets
in interface CellStyleModel
public int getVerticalAlignment()
getVerticalAlignment
in interface CellStyleModel
public void setVerticalAlignment(int alignment)
setVerticalAlignment
in interface CellStyleModel
alignment
- The new vertical alignment.public int getHorizontalAlignment()
getHorizontalAlignment
in interface CellStyleModel
public void setHorizontalAlignment(int alignment)
setHorizontalAlignment
in interface CellStyleModel
alignment
- The new horizontal alignment.public int getEditWidthPolicy()
getEditWidthPolicy
in interface CellStyleModel
public void setEditWidthPolicy(int policy)
setEditWidthPolicy
in interface CellStyleModel
policy
- The new edit width policy.public int getEditHeightPolicy()
getEditHeightPolicy
in interface CellStyleModel
public void setEditHeightPolicy(int policy)
setEditHeightPolicy
in interface CellStyleModel
policy
- The new edit height policy.public Insets getMarginInsets()
getMarginInsets
in interface CellStyleModel
public void setMarginInsets(Insets insets)
setMarginInsets
in interface CellStyleModel
insets
- The new margin insets.public Font getFont()
getFont
in interface CellStyleModel
public void setFont(Font font)
setFont
in interface CellStyleModel
font
- The new font.
IllegalArgumentException
- If parameter is null.public boolean getAllowWidthSizing()
getAllowWidthSizing
in interface CellStyleModel
public void setAllowWidthSizing(boolean allow)
setAllowWidthSizing
in interface CellStyleModel
allow
- Whether to allow width sizing.public void setOtherAllowWidthSizing(boolean allow)
setOtherAllowWidthSizing
in interface CellStyleModel
allow
- Whether to allow width sizing.public boolean getSelectAll()
getSelectAll
in interface CellStyleModel
public void setSelectAll(boolean selectAll)
setSelectAll
in interface CellStyleModel
public int getClipHints()
getClipHints
in interface CellStyleModel
public void setClipHints(int clipHints)
setClipHints
in interface CellStyleModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |