Text editor user interface
Text editor user interface
(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`
(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`
(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
(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`
(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`
(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
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close