Provides the look and feel for a styled text editor in the Synth look and feel.
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 styled text editor in the Synth look and feel. 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 c)
Creates a UI for the JTextPane.
c - the JTextPane object - javax.swing.JComponent
returns: the UI object - javax.swing.plaf.ComponentUI
Creates a UI for the JTextPane. c - the JTextPane object - `javax.swing.JComponent` returns: the UI object - `javax.swing.plaf.ComponentUI`
(install-ui this c)
Installs the UI for a component. This does the following things.
Sets opaqueness of the associated component according to its style, if the opaque property has not already been set by the client program.
Installs the default caret and highlighter into the associated component. These properties are only set if their current value is either null or an instance of UIResource.
Attaches to the editor and model. If there is no model, a default one is created.
Creates the view factory and the view hierarchy used to represent the model.
c - the editor component - javax.swing.JComponent
Installs the UI for a component. This does the following things. Sets opaqueness of the associated component according to its style, if the opaque property has not already been set by the client program. Installs the default caret and highlighter into the associated component. These properties are only set if their current value is either null or an instance of UIResource. Attaches to the editor and model. If there is no model, a default one is created. Creates the view factory and the view hierarchy used to represent the model. c - the editor component - `javax.swing.JComponent`
(paint-border this context g x y w h)
Paints the border.
context - a component context - javax.swing.plaf.synth.SynthContext
g - Graphics to paint on - java.awt.Graphics
x - the X coordinate - int
y - the Y coordinate - int
w - width of the border - int
h - height of the border - int
Paints the border. context - a component context - `javax.swing.plaf.synth.SynthContext` g - Graphics to paint on - `java.awt.Graphics` x - the X coordinate - `int` y - the Y coordinate - `int` w - width of the border - `int` h - height of the border - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close