Class HotkeyTipPainter<T extends HotkeyTipLabel>

  extended by com.alee.extended.painter.AbstractPainter<E>
      extended by<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.

Mikle Garin
See Also:
AbstractPainter, Painter

Field Summary
static java.awt.Color bg
          Style constants.
static int round
Fields inherited from class
backgroundPainter, drawShade, paintIconR, paintTextR, shadeColor, transparency
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
Constructor Summary
          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
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


public static java.awt.Color bg
Style constants.


public static int round
Constructor Detail


public HotkeyTipPainter()
Constructs new hotkey tip painter.

Method Detail


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>
paint in class WebLabelPainter<T extends HotkeyTipLabel>
g2d - component graphics
bounds - bounds for painter visual data
c - component to process