Provides the look and feel for a plain text editor. In this implementation the default UI is extended to act as a simple view factory.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
Provides the look and feel for a plain text editor. In this implementation the default UI is extended to act as a simple view factory. Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans™ has been added to the java.beans package. Please see XMLEncoder.
(*create-ui ta)
Creates a UI for a JTextArea.
ta - a text area - javax.swing.JComponent
returns: the UI - javax.swing.plaf.ComponentUI
Creates a UI for a JTextArea. ta - a text area - `javax.swing.JComponent` returns: the UI - `javax.swing.plaf.ComponentUI`
(->basic-text-area-ui)
Constructor.
Constructs a new BasicTextAreaUI object.
Constructor. Constructs a new BasicTextAreaUI object.
(create this elem)
Creates the view for an element. Returns a WrappedPlainView or PlainView.
elem - the element - javax.swing.text.Element
returns: the view - javax.swing.text.View
Creates the view for an element. Returns a WrappedPlainView or PlainView. elem - the element - `javax.swing.text.Element` returns: the view - `javax.swing.text.View`
(get-baseline this c width height)
Returns the baseline.
c - JComponent baseline is being requested for - javax.swing.JComponent
width - the width to get the baseline for - int
height - the height to get the baseline for - int
returns: baseline or a value < 0 indicating there is no reasonable
baseline - int
throws: java.lang.NullPointerException - if c is null
Returns the baseline. c - JComponent baseline is being requested for - `javax.swing.JComponent` width - the width to get the baseline for - `int` height - the height to get the baseline for - `int` returns: baseline or a value < 0 indicating there is no reasonable baseline - `int` throws: java.lang.NullPointerException - if c is null
(get-baseline-resize-behavior this c)
Returns an enum indicating how the baseline of the component changes as the size changes.
c - JComponent to return baseline resize behavior for - javax.swing.JComponent
returns: an enum indicating how the baseline changes as the component
size changes - java.awt.Component$BaselineResizeBehavior
throws: java.lang.NullPointerException - if c is null
Returns an enum indicating how the baseline of the component changes as the size changes. c - JComponent to return baseline resize behavior for - `javax.swing.JComponent` returns: an enum indicating how the baseline changes as the component size changes - `java.awt.Component$BaselineResizeBehavior` throws: java.lang.NullPointerException - if c is null
(get-minimum-size this c)
The method is overridden to take into account caret width.
c - the editor component - javax.swing.JComponent
returns: the minimum size - java.awt.Dimension
throws: java.lang.IllegalArgumentException - if invalid value is passed
The method is overridden to take into account caret width. c - the editor component - `javax.swing.JComponent` returns: the minimum size - `java.awt.Dimension` throws: java.lang.IllegalArgumentException - if invalid value is passed
(get-preferred-size this c)
The method is overridden to take into account caret width.
c - the editor component - javax.swing.JComponent
returns: the preferred size - java.awt.Dimension
throws: java.lang.IllegalArgumentException - if invalid value is passed
The method is overridden to take into account caret width. c - the editor component - `javax.swing.JComponent` returns: the preferred size - `java.awt.Dimension` throws: java.lang.IllegalArgumentException - if invalid value is passed
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close