|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.LabelUI javax.swing.plaf.basic.BasicLabelUI com.alee.laf.label.WebLabelUI
public class WebLabelUI
Custom UI for JLabel component.
Field Summary | |
---|---|
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. |
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI |
---|
labelUI |
Constructor Summary | |
---|---|
WebLabelUI()
|
Method Summary | |
---|---|
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. |
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
---|
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public WebLabelUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicLabelUI
c
- component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicLabelUI
c
- component with this UIpublic java.lang.String getStyleId()
getStyleId
in interface Styleable
public void setStyleId(java.lang.String id)
setStyleId
in interface Styleable
id
- custom component style IDpublic void updateBorder()
updateBorder
in interface BorderMethods
public 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.BasicLabelUI
g
- graphicsc
- componentpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.basic.BasicLabelUI
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |