com.alee.extended.panel
Class WebComponentPanel.WebSelectablePanelPainter

java.lang.Object
  extended by com.alee.extended.painter.AbstractPainter<WebComponentPanel.WebSelectablePanel>
      extended by 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.


Field Summary
protected  java.awt.Color[] darkColors
           
protected  float[] fractions
          Style settings.
protected  java.awt.Color[] lightColors
           
 
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
 
Constructor Summary
WebComponentPanel.WebSelectablePanelPainter()
           
 
Method Summary
 java.lang.Boolean isOpaque(WebComponentPanel.WebSelectablePanel c)
          Returns whether visual data provided by this painter is opaque or not.
 void paint(java.awt.Graphics2D g2d, java.awt.Rectangle bounds, WebComponentPanel.WebSelectablePanel panel)
          Paints visual data onto the component graphics.
 
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
 

Field Detail

fractions

protected float[] fractions
Style settings.


lightColors

protected java.awt.Color[] lightColors

darkColors

protected java.awt.Color[] darkColors
Constructor Detail

WebComponentPanel.WebSelectablePanelPainter

public WebComponentPanel.WebSelectablePanelPainter()
Method Detail

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 graphics
bounds - bounds for painter visual data
panel - component to process