Provides the look and feel for a plain text editor in the Synth look and feel. 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 the Synth look and feel. 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 object for a JTextArea.
ta - a text area - javax.swing.JComponent
returns: the UI object - javax.swing.plaf.ComponentUI
Creates a UI object for a JTextArea. ta - a text area - `javax.swing.JComponent` returns: the UI object - `javax.swing.plaf.ComponentUI`
(get-context this c)
Returns the Context for the specified component.
c - Component requesting SynthContext. - javax.swing.JComponent
returns: SynthContext describing component. - javax.swing.plaf.synth.SynthContext
Returns the Context for the specified component. c - Component requesting SynthContext. - `javax.swing.JComponent` returns: SynthContext describing component. - `javax.swing.plaf.synth.SynthContext`
(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`
(update this g c)
Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the paint(SynthContext,Graphics) method.
In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint method.
g - the Graphics object used for painting - java.awt.Graphics
c - the component being painted - javax.swing.JComponent
Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the paint(SynthContext,Graphics) method. In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint method. g - the Graphics object used for painting - `java.awt.Graphics` c - the component being painted - `javax.swing.JComponent`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close