|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Object
Style
public class Style
This class represents the look and feel of Component.
For more detailed documentation see stylesheet.
Style affects following:
Canvas component can utilize them.
Canvas,
Component,
Component.setStyle(Style),
Component.getStyle(),
getStyle(String)| Method Summary | |
|---|---|
int |
argument(int i)
Return custom argument. |
int |
color(int i)
Return custom color. |
int |
consumed(int dirs)
Calculates the total amount of space consumed from specified edges of this style. |
Style |
focused()
Returns the focused variant of this style. |
Font |
font(int i)
Return custom font. |
Image |
image(int i)
Return custom image. |
void |
setPainter(PaintCallback callback)
Sets a paint callback for this style. |
| Methods inherited from class Object |
|---|
toString, equals, hashCode |
| Methods inherited from |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public int color(int i)
i - index between [0..3]public int argument(int i)
i - index between [0..3]public Font font(int i)
i - index between [0..3]public Image image(int i)
i - index between [0..3]public int consumed(int dirs)
dirs - Combination of TOP, BOTTOM
LEFT and RIGHT.
public Style focused()
null
if there is no focused variantpublic void setPainter(PaintCallback callback)
callback - Paint callback, received arguments are:
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||