java.lang.Object
javax.swing.text.html.StyleSheet.BoxPainter
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- StyleSheet
- public static class StyleSheet.BoxPainter
- extends java.lang.Object
- implements java.io.Serializable
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
as
javax.swing.text.AttributeSet as
- Attribute set for painter
StyleSheet.BoxPainter
StyleSheet.BoxPainter(javax.swing.text.AttributeSet as)
- Package-private constructor.
getInset
public float getInset(int size,
javax.swing.text.View v)
- Gets the inset needed on a given side to account for the margin, border
and padding.
paint
public void paint(java.awt.Graphics g,
float x,
float y,
float w,
float h,
javax.swing.text.View v)
- Paints the CSS box according to the attributes given. This should
paint the border, padding and background.