com.alee.managers.style.skin.web
Class WebHotkeyLabelPainter<E extends javax.swing.JLabel>

java.lang.Object
  extended by com.alee.extended.painter.AbstractPainter<E>
      extended by com.alee.managers.style.skin.web.WebLabelPainter<E>
          extended by com.alee.managers.style.skin.web.WebHotkeyLabelPainter<E>
All Implemented Interfaces:
Painter<E>, SpecificPainter, LabelPainter<E>

public class WebHotkeyLabelPainter<E extends javax.swing.JLabel>
extends WebLabelPainter<E>

Custom painter for WebHotkeyLabel component.

Author:
Mikle Garin
See Also:
AbstractPainter, Painter

Field Summary
static java.awt.Color bg
           
static java.awt.Color border
          Used colors.
 
Fields inherited from class com.alee.managers.style.skin.web.WebLabelPainter
backgroundPainter, drawShade, paintIconR, paintTextR, shadeColor, transparency
 
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
 
Constructor Summary
WebHotkeyLabelPainter()
           
 
Method Summary
 void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, E label)
          Paints visual data onto the component graphics.
 
Methods inherited from class com.alee.managers.style.skin.web.WebLabelPainter
getBackgroundPainter, getMargin, getPreferredSize, getShadeColor, getTransparency, isDrawShade, isOpaque, layout, layoutCL, paintDisabledText, paintEnabledText, paintShadowText, setBackgroundPainter, setDrawShade, setShadeColor, setTransparency
 
Methods inherited from class com.alee.extended.painter.AbstractPainter
addPainterListener, install, p, removePainterListener, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, uninstall, 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, install, removePainterListener, uninstall
 

Field Detail

border

public static java.awt.Color border
Used colors.


bg

public static java.awt.Color bg
Constructor Detail

WebHotkeyLabelPainter

public WebHotkeyLabelPainter()
Method Detail

paint

public void paint(java.awt.Graphics2D g2d,
                  java.awt.Rectangle bounds,
                  E label)
Paints visual data onto the component graphics. Provided graphics and component are taken directly from component UI paint method. Provided bounds are usually fake (zero location, component size) but in some cases it might be specified by componentUI.

Specified by:
paint in interface Painter<E extends javax.swing.JLabel>
Overrides:
paint in class WebLabelPainter<E extends javax.swing.JLabel>
Parameters:
g2d - component graphics
bounds - bounds for painter visual data
label - component to process