|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.PivotStyle
public class PivotStyle
PivotStyle represents a visual modification that can be applied to a component. The style defines commonly used operations, such as setting the background/foreground color or the font of a component.
Field Summary | |
---|---|
protected Color |
background
the background color |
protected Font |
font
the font |
protected int |
fontStyle
the font's style |
protected Color |
foreground
the foreground color |
protected Color |
selectionBackground
the selection background color |
protected Color |
selectionForeground
the selection foreground color |
Constructor Summary | |
---|---|
PivotStyle()
Constructs a PivotStyle. |
|
PivotStyle(Color background,
Color foreground)
Constructs a PivotStyle with a given background and foreground color. |
Method Summary | |
---|---|
Color |
getBackground()
Retrieves the background color. |
Font |
getFont()
Retrieves the font. |
int |
getFontStyle()
Retrieves the font's style. |
Color |
getForeground()
Retrieves the foreground color. |
Color |
getSelectionBackground()
Retrieves the selection background color. |
Color |
getSelectionForeground()
Retrieves the selection foreground color. |
void |
setBackground(Color background)
Assigns the background color. |
void |
setFont(Font font)
Assigns the font. |
void |
setFontStyle(int fontStyle)
Assigns the font's style. |
void |
setForeground(Color foreground)
Assigns the foreground color. |
void |
setSelectionBackground(Color selectionBackground)
Assigns the selection background color. |
void |
setSelectionForeground(Color selectionForeground)
Assigns the selection foreground color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Color background
protected Color foreground
protected Color selectionBackground
protected Color selectionForeground
protected Font font
protected int fontStyle
Constructor Detail |
---|
public PivotStyle()
public PivotStyle(Color background, Color foreground)
Method Detail |
---|
public Color getBackground()
public Font getFont()
public int getFontStyle()
public Color getForeground()
public Color getSelectionBackground()
public Color getSelectionForeground()
public void setBackground(Color background)
background
- the background color to assignpublic void setFont(Font font)
font
- the font to assignpublic void setFontStyle(int fontStyle)
fontStyle
- the font's style to assignpublic void setForeground(Color foreground)
foreground
- the foreground color to assignpublic void setSelectionBackground(Color selectionBackground)
selectionBackground
- the selection background color to assignpublic void setSelectionForeground(Color selectionForeground)
selectionForeground
- the selection foreground color to assign
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |