Liking cljdoc? Tell your friends :D

javax.swing.plaf.TextUI

Text editor user interface

Text editor user interface
raw docstring

->text-uiclj

(->text-ui)

Constructor.

Constructor.
raw docstring

damage-rangeclj

(damage-range this t p-0 p-1)
(damage-range this t p-0 p-1 first-bias second-bias)

Causes the portion of the view responsible for the given part of the model to be repainted.

t - javax.swing.text.JTextComponent p-0 - the beginning of the range >= 0 - int p-1 - the end of the range >= p0 - int first-bias - javax.swing.text.Position$Bias second-bias - javax.swing.text.Position$Bias

Causes the portion of the view responsible for the
 given part of the model to be repainted.

t - `javax.swing.text.JTextComponent`
p-0 - the beginning of the range >= 0 - `int`
p-1 - the end of the range >= p0 - `int`
first-bias - `javax.swing.text.Position$Bias`
second-bias - `javax.swing.text.Position$Bias`
raw docstring

get-editor-kitclj

(get-editor-kit this t)

Fetches the binding of services that set a policy for the type of document being edited. This contains things like the commands available, stream readers and writers, etc.

t - javax.swing.text.JTextComponent

returns: the editor kit binding - javax.swing.text.EditorKit

Fetches the binding of services that set a policy
 for the type of document being edited.  This contains
 things like the commands available, stream readers and
 writers, etc.

t - `javax.swing.text.JTextComponent`

returns: the editor kit binding - `javax.swing.text.EditorKit`
raw docstring

get-next-visual-position-fromclj

(get-next-visual-position-from this t pos b direction bias-ret)

Provides a way to determine the next visually represented model location that one might place a caret. Some views may not be visible, they might not be in the same order found in the model, or they just might not allow access to some of the locations in the model.

t - the text component for which this UI is installed - javax.swing.text.JTextComponent pos - the position to convert >= 0 - int b - the bias for the position - javax.swing.text.Position$Bias direction - the direction from the current position that can be thought of as the arrow keys typically found on a keyboard. This may be SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, or SwingConstants.SOUTH - int bias-ret - an array to contain the bias for the returned position - javax.swing.text.Position$Bias[]

returns: the location within the model that best represents the next location visual position - int

throws: javax.swing.text.BadLocationException

Provides a way to determine the next visually represented model
 location that one might place a caret.  Some views may not be visible,
 they might not be in the same order found in the model, or they just
 might not allow access to some of the locations in the model.

t - the text component for which this UI is installed - `javax.swing.text.JTextComponent`
pos - the position to convert >= 0 - `int`
b - the bias for the position - `javax.swing.text.Position$Bias`
direction - the direction from the current position that can be thought of as the arrow keys typically found on a keyboard. This may be SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, or SwingConstants.SOUTH - `int`
bias-ret - an array to contain the bias for the returned position - `javax.swing.text.Position$Bias[]`

returns: the location within the model that best represents the next
  location visual position - `int`

throws: javax.swing.text.BadLocationException
raw docstring

get-root-viewclj

(get-root-view this t)

Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.

t - javax.swing.text.JTextComponent

returns: the view - javax.swing.text.View

Fetches a View with the allocation of the associated
 text component (i.e. the root of the hierarchy) that
 can be traversed to determine how the model is being
 represented spatially.

t - `javax.swing.text.JTextComponent`

returns: the view - `javax.swing.text.View`
raw docstring

get-tool-tip-textclj

(get-tool-tip-text this t pt)

Returns the string to be used as the tooltip at the passed in location.

t - javax.swing.text.JTextComponent pt - java.awt.Point

returns: java.lang.String

Returns the string to be used as the tooltip at the passed in location.

t - `javax.swing.text.JTextComponent`
pt - `java.awt.Point`

returns: `java.lang.String`
raw docstring

model-to-viewclj

(model-to-view this t pos)
(model-to-view this t pos bias)

Converts the given location in the model to a place in the view coordinate system.

t - javax.swing.text.JTextComponent pos - the local location in the model to translate >= 0 - int bias - javax.swing.text.Position$Bias

returns: the coordinates as a rectangle - java.awt.Rectangle

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

Converts the given location in the model to a place in
 the view coordinate system.

t - `javax.swing.text.JTextComponent`
pos - the local location in the model to translate >= 0 - `int`
bias - `javax.swing.text.Position$Bias`

returns: the coordinates as a rectangle - `java.awt.Rectangle`

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

view-to-modelclj

(view-to-model this t pt)
(view-to-model this t pt bias-return)

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

t - javax.swing.text.JTextComponent pt - the location in the view to translate. This should be in the same coordinate system as the mouse events. - java.awt.Point bias-return - filled in by this method to indicate whether the point given is closer to the previous or the next character in the model - 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.

t - `javax.swing.text.JTextComponent`
pt - the location in the view to translate. This should be in the same coordinate system as the mouse events. - `java.awt.Point`
bias-return - filled in by this method to indicate whether the point given is closer to the previous or the next character in the model - `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