API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.text.html. StyleSheet.BoxPainter View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      StyleSheet.BoxPainter
Implements
 Serializable
Subclasses
Description
publicstatic class StyleSheet.BoxPainter
  Class to carry out some of the duties of CSS formatting.
See also:   
Constructors
pack-private StyleSheet.BoxPainter (AttributeSet a, CSS css, StyleSheet ss)
Methods
Hide/Show inherited methods
pack-private Border getBorder (AttributeSet a)
  Fetches a border to render for the given attributes.
pack-private Color getBorderColor (AttributeSet a)
  Fetches the color to use for borders.
public float getInset (int side, View v)
  Fetches the inset needed on a given side to account for the margin, border, and padding.
pack-private float getLength (Attribute key, AttributeSet a)
pack-private float getOrientationMargin (HorizontalMargin side, float cssMargin, AttributeSet a, boolean isLeftToRight)
  for , , etc.
pack-privatestatic boolean isLeftToRight (View v)
pack-privatestatic boolean isOrientationAware (View v)
public void paint (Graphics g, float x, float y, float w, float h, View v)
  Paints the CSS box according to the attributes given.
Fields
Hide/Show inherited fields
pack-private Color bg
pack-private BackgroundImagePainter bgPainter
pack-private Insets binsets
pack-private Border border
pack-private float bottomMargin
pack-private CSS css
pack-private float leftMargin
pack-private short marginFlags
pack-private float rightMargin
pack-private StyleSheet ss
pack-private float topMargin
Nested Classes
  StyleSheet.BoxPainter.HorizontalMargin
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar