|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
org.jdesktop.jxlayer.plaf.LayerUI<V>
org.jdesktop.jxlayer.plaf.AbstractLayerUI<V>
oracle.javatools.ui.TextLayer<V>
public class TextLayer<V extends javax.swing.JComponent>
A layer of text that appears in front of any component. Wrap the component in a JLayer/JXLayer with an instance of this class.
Field Summary | |
---|---|
static java.awt.Font |
LARGE_FONT
Font to use when the component containing the layer is usually on the larger size |
static java.awt.Font |
REGULAR_FONT
Font to use when the component containing the layer is usually on the smaller size. |
Constructor Summary | |
---|---|
TextLayer(java.lang.String text)
|
Method Summary | |
---|---|
java.awt.Font |
getFont()
|
java.awt.Color |
getForeground()
|
java.lang.String |
getText()
|
boolean |
isTextVisible()
|
protected void |
paintLayer(java.awt.Graphics2D g2,
org.jdesktop.jxlayer.JXLayer<? extends V> l)
|
void |
setFont(java.awt.Font font)
|
void |
setForeground(java.awt.Color foreground)
Set the foreground color of the overlaid text |
void |
setText(java.lang.String text)
Set the overlaid text |
void |
setTextVisible(boolean displayText)
Set whether the overlaid text should appear or not |
Methods inherited from class org.jdesktop.jxlayer.plaf.AbstractLayerUI |
---|
configureGraphics, eventDispatched, getClip, getComposite, getLayerEventMask, getRenderingHints, getTransform, handlePropertyChangeEvent, installUI, isDirty, paint, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, setDirty, uninstallUI |
Methods inherited from class org.jdesktop.jxlayer.plaf.LayerUI |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPreferredScrollableViewportSize, getPropertyChangeListeners, getPropertyChangeListeners, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, removePropertyChangeListener, removePropertyChangeListener, updateUI |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.awt.Font REGULAR_FONT
public static final java.awt.Font LARGE_FONT
Constructor Detail |
---|
public TextLayer(java.lang.String text)
Method Detail |
---|
public final void setText(java.lang.String text)
text
- public final java.lang.String getText()
public final void setTextVisible(boolean displayText)
displayText
- public final boolean isTextVisible()
public final void setForeground(java.awt.Color foreground)
foreground
- public final java.awt.Color getForeground()
protected void paintLayer(java.awt.Graphics2D g2, org.jdesktop.jxlayer.JXLayer<? extends V> l)
paintLayer
in class org.jdesktop.jxlayer.plaf.AbstractLayerUI<V extends javax.swing.JComponent>
public final void setFont(java.awt.Font font)
public final java.awt.Font getFont()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |