|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.text.html.StyleSheet.BoxPainter
public static class StyleSheet.BoxPainter
This class carries out some of the duties of CSS formatting. This enables views to present the CSS formatting while not knowing how the CSS values are cached. This object is reponsible for the insets of a View and making sure the background is maintained according to the CSS attributes.
Method Summary | |
---|---|
float |
getInset(int size,
View v)
Gets the inset needed on a given side to account for the margin, border and padding. |
void |
paint(Graphics g,
float x,
float y,
float w,
float h,
View v)
Paints the CSS box according to the attributes given. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public float getInset(int size, View v)
size
- - the size of the box to get the inset for. View.TOP, View.LEFT,
View.BOTTOM or View.RIGHT.v
- - the view making the request. This is used to get the AttributeSet,
amd may be used to resolve percentage arguments.
IllegalArgumentException
- - for an invalid direction.public void paint(Graphics g, float x, float y, float w, float h, View v)
g
- - the graphics configurationx
- - the x coordinatey
- - the y coordinatew
- - the width of the allocated areah
- - the height of the allocated areav
- - the view making the request
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |