public class WebLabelUI extends javax.swing.plaf.basic.BasicLabelUI implements Styleable, BorderMethods
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
drawShade |
protected javax.swing.JLabel |
label |
protected java.awt.Insets |
margin
Style settings.
|
protected LabelPainter |
painter
Component painter.
|
protected java.beans.PropertyChangeListener |
propertyChangeListener
Label listeners.
|
protected java.lang.String |
styleId
Runtime variables.
|
| Constructor and Description |
|---|
WebLabelUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebLabelUI for the specified component.
|
java.awt.Insets |
getMargin()
Returns component margin.
|
Painter |
getPainter()
Returns label painter.
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
java.awt.Color |
getShadeColor()
Returns text shade color.
|
java.lang.String |
getStyleId()
Returns component style ID.
|
java.lang.Float |
getTransparency()
Returns label transparency.
|
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component.
|
boolean |
isDrawShade()
Returns whether text shade is displayed or not.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paints label.
|
void |
setDrawShade(boolean drawShade)
Sets whether text shade should be displayed or not.
|
void |
setMargin(java.awt.Insets margin)
Sets component margin.
|
void |
setPainter(Painter painter)
Sets label painter.
|
void |
setShadeColor(java.awt.Color shadeColor)
Sets text shade color.
|
void |
setStyleId(java.lang.String id)
Sets custom component style ID.
|
void |
setTransparency(java.lang.Float transparency)
Sets label transparency.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.
|
void |
updateBorder()
Updates custom WebLaF border.
|
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListenersprotected java.awt.Insets margin
protected boolean drawShade
protected LabelPainter painter
protected java.beans.PropertyChangeListener propertyChangeListener
protected java.lang.String styleId
protected javax.swing.JLabel label
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicLabelUIc - component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicLabelUIc - component with this UIpublic java.lang.String getStyleId()
getStyleId in interface Styleablepublic void setStyleId(java.lang.String id)
setStyleId in interface Styleableid - custom component style IDpublic void updateBorder()
updateBorder in interface BorderMethodspublic boolean isDrawShade()
public void setDrawShade(boolean drawShade)
drawShade - whether text shade should be displayed or notpublic java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
margin - component marginpublic java.awt.Color getShadeColor()
public void setShadeColor(java.awt.Color shadeColor)
shadeColor - text shade colorpublic java.lang.Float getTransparency()
public void setTransparency(java.lang.Float transparency)
transparency - label transparencypublic Painter getPainter()
public void setPainter(Painter painter)
painter - new label painterpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicLabelUIg - graphicsc - componentpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicLabelUI