com.alee.laf.label
Class AdaptiveLabelPainter<E extends javax.swing.JLabel>

java.lang.Object
  extended by com.alee.extended.painter.AbstractPainter<E>
      extended by com.alee.extended.painter.AdaptivePainter<E>
          extended by com.alee.laf.label.AdaptiveLabelPainter<E>
All Implemented Interfaces:
Painter<E>, SpecificPainter, LabelPainter<E>

public class AdaptiveLabelPainter<E extends javax.swing.JLabel>
extends AdaptivePainter<E>
implements LabelPainter<E>

Simple LabelPainter adapter class. It is used to install simple non-specific painters into WebLabelUI.

Author:
Mikle Garin

Field Summary
 
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
 
Constructor Summary
AdaptiveLabelPainter(Painter painter)
          Constructs new AdaptiveLabelPainter for the specified painter.
 
Method Summary
 void setDrawShade(boolean drawShade)
          Sets whether text shade should be displayed or not.
 
Methods inherited from class com.alee.extended.painter.AdaptivePainter
addPainterListener, getMargin, getPainter, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 
Methods inherited from class com.alee.extended.painter.AbstractPainter
p, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, updateAll, updateOpacity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.alee.extended.painter.Painter
addPainterListener, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 

Constructor Detail

AdaptiveLabelPainter

public AdaptiveLabelPainter(Painter painter)
Constructs new AdaptiveLabelPainter for the specified painter.

Parameters:
painter - painter to adapt
Method Detail

setDrawShade

public void setDrawShade(boolean drawShade)
Sets whether text shade should be displayed or not.

Specified by:
setDrawShade in interface LabelPainter<E extends javax.swing.JLabel>
Parameters:
drawShade - whether text shade should be displayed or not