javax.swing.text.html
public static class StyleSheet.BoxPainter extends Object implements Serializable
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. |
Parameters: 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.
Returns: the inset
Throws: IllegalArgumentException - for an invalid direction.
Parameters: g - the graphics configuration x - the x coordinate y - the y coordinate w - the width of the allocated area h - the height of the allocated area v - the view making the request