Liking cljdoc? Tell your friends :D
Clojure only.

javax.swing.text.html.StyleSheet$BoxPainter

Class to carry out some of the duties of CSS formatting. Implementations of this class enable views to present the CSS formatting while not knowing anything about how the CSS values are being cached.

As a delegate of Views, this object is responsible for the insets of a View and making sure the background is maintained according to the CSS attributes.

Class to carry out some of the duties of
CSS formatting.  Implementations of this
class enable views to present the CSS formatting
while not knowing anything about how the CSS values
are being cached.

As a delegate of Views, this object is responsible for
the insets of a View and making sure the background
is maintained according to the CSS attributes.
raw docstring

get-insetclj

(get-inset this side v)

Fetches the inset needed on a given side to account for the margin, border, and padding.

side - The size of the box to fetch the inset for. This can be View.TOP, View.LEFT, View.BOTTOM, or View.RIGHT. - int v - the view making the request. This is used to get the AttributeSet, and may be used to resolve percentage arguments. - javax.swing.text.View

returns: float

throws: java.lang.IllegalArgumentException - for an invalid direction

Fetches the inset needed on a given side to
 account for the margin, border, and padding.

side - The size of the box to fetch the inset for. This can be View.TOP, View.LEFT, View.BOTTOM, or View.RIGHT. - `int`
v - the view making the request. This is used to get the AttributeSet, and may be used to resolve percentage arguments. - `javax.swing.text.View`

returns: `float`

throws: java.lang.IllegalArgumentException - for an invalid direction
raw docstring

paintclj

(paint this g x y w h v)

Paints the CSS box according to the attributes given. This should paint the border, padding, and background.

g - the rendering surface. - java.awt.Graphics x - the x coordinate of the allocated area to render into. - float y - the y coordinate of the allocated area to render into. - float w - the width of the allocated area to render into. - float h - the height of the allocated area to render into. - float v - the view making the request. This is used to get the AttributeSet, and may be used to resolve percentage arguments. - javax.swing.text.View

Paints the CSS box according to the attributes
 given.  This should paint the border, padding,
 and background.

g - the rendering surface. - `java.awt.Graphics`
x - the x coordinate of the allocated area to render into. - `float`
y - the y coordinate of the allocated area to render into. - `float`
w - the width of the allocated area to render into. - `float`
h - the height of the allocated area to render into. - `float`
v - the view making the request. This is used to get the AttributeSet, and may be used to resolve percentage arguments. - `javax.swing.text.View`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close