com.alee.extended.panel
Class WebComponentPanel.WebSelectablePanelPainter
java.lang.Object
com.alee.extended.painter.AbstractPainter<WebComponentPanel.WebSelectablePanel>
com.alee.extended.panel.WebComponentPanel.WebSelectablePanelPainter
- All Implemented Interfaces:
- Painter<WebComponentPanel.WebSelectablePanel>
- Enclosing class:
- WebComponentPanel
public class WebComponentPanel.WebSelectablePanelPainter
- extends AbstractPainter<WebComponentPanel.WebSelectablePanel>
Custom painter for selectable panels.
Methods inherited from class com.alee.extended.painter.AbstractPainter |
addPainterListener, getMargin, getPreferredSize, 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 |
fractions
protected float[] fractions
- Style settings.
lightColors
protected java.awt.Color[] lightColors
darkColors
protected java.awt.Color[] darkColors
WebComponentPanel.WebSelectablePanelPainter
public WebComponentPanel.WebSelectablePanelPainter()
isOpaque
public java.lang.Boolean isOpaque(WebComponentPanel.WebSelectablePanel c)
- Returns whether visual data provided by this painter is opaque or not.
Returned value might affect component opacity depending on painter support inside that component UI.
Simply return null if you don't want to change default component opacity.
- Specified by:
isOpaque
in interface Painter<WebComponentPanel.WebSelectablePanel>
- Overrides:
isOpaque
in class AbstractPainter<WebComponentPanel.WebSelectablePanel>
- Parameters:
c
- component to process
- Returns:
- true if visual data provided by this painter is opaque, false otherwise
paint
public void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
WebComponentPanel.WebSelectablePanel panel)
- 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.
- Parameters:
g2d
- component graphicsbounds
- bounds for painter visual datapanel
- component to process