com.alee.managers.tooltip
Class HotkeyTipPainter<T extends HotkeyTipLabel>

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

public class HotkeyTipPainter<T extends HotkeyTipLabel>
extends WebLabelPainter<T>

Custom painter for HotkeyTipLabel component.

Author:
Mikle Garin
See Also:
AbstractPainter, Painter

Field Summary
static java.awt.Color bg
          Style constants.
static int round
           
 
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
HotkeyTipPainter()
          Constructs new hotkey tip painter.
 
Method Summary
 void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, T c)
          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

bg

public static java.awt.Color bg
Style constants.


round

public static int round
Constructor Detail

HotkeyTipPainter

public HotkeyTipPainter()
Constructs new hotkey tip painter.

Method Detail

paint

public void paint(java.awt.Graphics2D g2d,
                  java.awt.Rectangle bounds,
                  T c)
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<T extends HotkeyTipLabel>
Overrides:
paint in class WebLabelPainter<T extends HotkeyTipLabel>
Parameters:
g2d - component graphics
bounds - bounds for painter visual data
c - component to process