Liking cljdoc? Tell your friends :D

javax.swing.text.LabelView

A LabelView is a styled chunk of text that represents a view mapped over an element in the text model. It caches the character level attributes used for rendering.

A LabelView is a styled chunk of text
that represents a view mapped over an element in the
text model.  It caches the character level attributes
used for rendering.
raw docstring

->label-viewclj

(->label-view elem)

Constructor.

Constructs a new view wrapped on an element.

elem - the element - javax.swing.text.Element

Constructor.

Constructs a new view wrapped on an element.

elem - the element - `javax.swing.text.Element`
raw docstring

changed-updateclj

(changed-update this e a f)

Gives notification from the document that attributes were changed in a location that this view is responsible for.

e - the change information from the associated document - javax.swing.event.DocumentEvent a - the current allocation of the view - java.awt.Shape f - the factory to use to rebuild if the view has children - javax.swing.text.ViewFactory

Gives notification from the document that attributes were changed
 in a location that this view is responsible for.

e - the change information from the associated document - `javax.swing.event.DocumentEvent`
a - the current allocation of the view - `java.awt.Shape`
f - the factory to use to rebuild if the view has children - `javax.swing.text.ViewFactory`
raw docstring

get-backgroundclj

(get-background this)

Fetches the background color to use to render the glyphs. This is implemented to return a cached background color, which defaults to null.

returns: the cached background color - java.awt.Color

Fetches the background color to use to render the glyphs.
 This is implemented to return a cached background color,
 which defaults to null.

returns: the cached background color - `java.awt.Color`
raw docstring

get-fontclj

(get-font this)

Fetches the font that the glyphs should be based upon. This is implemented to return a cached font.

returns: the cached font - java.awt.Font

Fetches the font that the glyphs should be based upon.
 This is implemented to return a cached font.

returns: the cached font - `java.awt.Font`
raw docstring

get-foregroundclj

(get-foreground this)

Fetches the foreground color to use to render the glyphs. This is implemented to return a cached foreground color, which defaults to null.

returns: the cached foreground color - java.awt.Color

Fetches the foreground color to use to render the glyphs.
 This is implemented to return a cached foreground color,
 which defaults to null.

returns: the cached foreground color - `java.awt.Color`
raw docstring

strike-through?clj

(strike-through? this)

Determines if the glyphs should have a strikethrough line. If true, a line should be drawn through the center of the glyphs. This is implemented to return the cached strikeThrough property.

When you request this property, LabelView re-syncs its state with the properties of the Element's AttributeSet. If Element's AttributeSet does not have this property set, it will revert to false.

returns: the value of the cached strikeThrough property - boolean

Determines if the glyphs should have a strikethrough
 line.  If true, a line should be drawn through the center
 of the glyphs.  This is implemented to return the
 cached strikeThrough property.

 When you request this property, LabelView
 re-syncs its state with the properties of the
 Element's AttributeSet.
 If Element's AttributeSet
 does not have this property set, it will revert to false.

returns: the value of the cached
     strikeThrough property - `boolean`
raw docstring

subscript?clj

(subscript? this)

Determines if the glyphs should be rendered as superscript.

returns: the value of the cached subscript property

When you request this property, LabelView re-syncs its state with the properties of the Element's AttributeSet. If Element's AttributeSet does not have this property set, it will revert to false. - boolean

Determines if the glyphs should be rendered as superscript.

returns: the value of the cached subscript property

 When you request this property, LabelView
 re-syncs its state with the properties of the
 Element's AttributeSet.
 If Element's AttributeSet
 does not have this property set, it will revert to false. - `boolean`
raw docstring

superscript?clj

(superscript? this)

Determines if the glyphs should be rendered as subscript.

When you request this property, LabelView re-syncs its state with the properties of the Element's AttributeSet. If Element's AttributeSet does not have this property set, it will revert to false.

returns: the value of the cached superscript property - boolean

Determines if the glyphs should be rendered as subscript.

 When you request this property, LabelView
 re-syncs its state with the properties of the
 Element's AttributeSet.
 If Element's AttributeSet
 does not have this property set, it will revert to false.

returns: the value of the cached
     superscript property - `boolean`
raw docstring

underline?clj

(underline? this)

Determines if the glyphs should be underlined. If true, an underline should be drawn through the baseline. This is implemented to return the cached underline property.

When you request this property, LabelView re-syncs its state with the properties of the Element's AttributeSet. If Element's AttributeSet does not have this property set, it will revert to false.

returns: the value of the cached underline property - boolean

Determines if the glyphs should be underlined.  If true,
 an underline should be drawn through the baseline.  This
 is implemented to return the cached underline property.

 When you request this property, LabelView
 re-syncs its state with the properties of the
 Element's AttributeSet.
 If Element's AttributeSet
 does not have this property set, it will revert to false.

returns: the value of the cached
     underline property - `boolean`
raw docstring

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

× close