Liking cljdoc? Tell your friends :D

javax.swing.text.PlainView

Implements View interface for a simple multi-line text view that has text in one font and color. The view represents each child element as a line of text.

Implements View interface for a simple multi-line text view
that has text in one font and color.  The view represents each
child element as a line of text.
raw docstring

->plain-viewclj

(->plain-view elem)

Constructor.

Constructs a new PlainView wrapped on an element.

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

Constructor.

Constructs a new PlainView wrapped on an element.

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

changed-updateclj

(changed-update this changes a f)

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

changes - 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.

changes - 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-preferred-spanclj

(get-preferred-span this axis)

Determines the preferred span for this view along an axis.

axis - may be either View.X_AXIS or View.Y_AXIS - int

returns: the span the view would like to be rendered into >= 0. Typically the view is told to render into the span that is returned, although there is no guarantee. The parent may choose to resize or break the view. - float

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

Determines the preferred span for this view along an
 axis.

axis - may be either View.X_AXIS or View.Y_AXIS - `int`

returns: the span the view would like to be rendered into >= 0.
           Typically the view is told to render into the span
           that is returned, although there is no guarantee.
           The parent may choose to resize or break the view. - `float`

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

insert-updateclj

(insert-update this changes a f)

Gives notification that something was inserted into the document in a location that this view is responsible for.

changes - 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 that something was inserted into the document
 in a location that this view is responsible for.

changes - 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

model-to-viewclj

(model-to-view this pos a b)

Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.

pos - the position to convert >= 0 - int a - the allocated region to render into - java.awt.Shape b - the bias toward the previous character or the next character represented by the offset, in case the position is a boundary of two views; b will have one of these values: Position.Bias.Forward Position.Bias.Backward - javax.swing.text.Position$Bias

returns: the bounding box of the given position - java.awt.Shape

throws: javax.swing.text.BadLocationException - if the given position does not represent a valid location in the associated document

Provides a mapping from the document model coordinate space
 to the coordinate space of the view mapped to it.

pos - the position to convert >= 0 - `int`
a - the allocated region to render into - `java.awt.Shape`
b - the bias toward the previous character or the next character represented by the offset, in case the position is a boundary of two views; b will have one of these values: Position.Bias.Forward Position.Bias.Backward - `javax.swing.text.Position$Bias`

returns: the bounding box of the given position - `java.awt.Shape`

throws: javax.swing.text.BadLocationException - if the given position does not represent a valid location in the associated document
raw docstring

next-tab-stopclj

(next-tab-stop this x tab-offset)

Returns the next tab stop position after a given reference position. This implementation does not support things like centering so it ignores the tabOffset argument.

x - the current position >= 0 - float tab-offset - the position within the text stream that the tab occurred at >= 0. - int

returns: the tab stop, measured in points >= 0 - float

Returns the next tab stop position after a given reference position.
 This implementation does not support things like centering so it
 ignores the tabOffset argument.

x - the current position >= 0 - `float`
tab-offset - the position within the text stream that the tab occurred at >= 0. - `int`

returns: the tab stop, measured in points >= 0 - `float`
raw docstring

paintclj

(paint this g a)

Renders using the given rendering surface and area on that surface. The view may need to do layout and create child views to enable itself to render into the given allocation.

g - the rendering surface to use - java.awt.Graphics a - the allocated region to render into - java.awt.Shape

Renders using the given rendering surface and area on that surface.
 The view may need to do layout and create child views to enable
 itself to render into the given allocation.

g - the rendering surface to use - `java.awt.Graphics`
a - the allocated region to render into - `java.awt.Shape`
raw docstring

remove-updateclj

(remove-update this changes a f)

Gives notification that something was removed from the document in a location that this view is responsible for.

changes - 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 that something was removed from the document
 in a location that this view is responsible for.

changes - 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

set-sizeclj

(set-size this width height)

Sets the size of the view. This should cause layout of the view along the given axis, if it has any layout duties.

width - the width >= 0 - float height - the height >= 0 - float

Sets the size of the view.  This should cause
 layout of the view along the given axis, if it
 has any layout duties.

width - the width >= 0 - `float`
height - the height >= 0 - `float`
raw docstring

view-to-modelclj

(view-to-model this fx fy a bias)

Provides a mapping from the view coordinate space to the logical coordinate space of the model.

fx - the X coordinate >= 0 - float fy - the Y coordinate >= 0 - float a - the allocated region to render into - java.awt.Shape bias - javax.swing.text.Position$Bias[]

returns: the location within the model that best represents the given point in the view >= 0 - int

Provides a mapping from the view coordinate space to the logical
 coordinate space of the model.

fx - the X coordinate >= 0 - `float`
fy - the Y coordinate >= 0 - `float`
a - the allocated region to render into - `java.awt.Shape`
bias - `javax.swing.text.Position$Bias[]`

returns: the location within the model that best represents the
  given point in the view >= 0 - `int`
raw docstring

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

× close