com.alee.laf.panel
Class AdaptivePanelPainter<E extends javax.swing.JPanel>

java.lang.Object
  extended by com.alee.extended.painter.AbstractPainter<E>
      extended by com.alee.extended.painter.AdaptivePainter<E>
          extended by com.alee.laf.panel.AdaptivePanelPainter<E>
All Implemented Interfaces:
Painter<E>, PartialDecoration, SpecificPainter, PanelPainter<E>

public class AdaptivePanelPainter<E extends javax.swing.JPanel>
extends AdaptivePainter<E>
implements PanelPainter<E>

Simple PanelPainter adapter class. It is used to install simple non-specific painters into WebPanelUI.

Author:
Mikle Garin

Field Summary
 
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
 
Constructor Summary
AdaptivePanelPainter(Painter painter)
          Constructs new AdaptivePanelPainter for the specified painter.
 
Method Summary
 void setPaintBottom(boolean bottom)
          Sets whether should paint bottom side or not.
 void setPaintBottomLine(boolean bottom)
          Sets whether should paint bottom side line or not.
 void setPaintFocus(boolean paint)
          Sets whether focus should be painted or not.
 void setPaintLeft(boolean left)
          Sets whether should paint left side or not.
 void setPaintLeftLine(boolean left)
          Sets whether should paint left side line or not.
 void setPaintRight(boolean right)
          Sets whether should paint right side or not.
 void setPaintRightLine(boolean right)
          Sets whether should paint right side line or not.
 void setPaintSideLines(boolean top, boolean left, boolean bottom, boolean right)
          Sets whether should paint specific side lines or not.
 void setPaintSides(boolean top, boolean left, boolean bottom, boolean right)
          Sets whether should paint specific sides or not.
 void setPaintTop(boolean top)
          Sets whether should paint top side or not.
 void setPaintTopLine(boolean top)
          Sets whether should paint top side line or not.
 void setUndecorated(boolean undecorated)
          Sets whether panel decoration should be painted or not.
 
Methods inherited from class com.alee.extended.painter.AdaptivePainter
addPainterListener, getMargin, getPainter, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 
Methods inherited from class com.alee.extended.painter.AbstractPainter
p, repaint, repaint, repaint, revalidate, setMargin, setMargin, setMargin, setOpaque, setPreferredSize, 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, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 

Constructor Detail

AdaptivePanelPainter

public AdaptivePanelPainter(Painter painter)
Constructs new AdaptivePanelPainter for the specified painter.

Parameters:
painter - painter to adapt
Method Detail

setUndecorated

public void setUndecorated(boolean undecorated)
Sets whether panel decoration should be painted or not.

Specified by:
setUndecorated in interface PanelPainter<E extends javax.swing.JPanel>
Parameters:
undecorated - whether panel decoration should be painted or not

setPaintFocus

public void setPaintFocus(boolean paint)
Sets whether focus should be painted or not. Panel focus is displayed when either panel or one of its children are focused.

Specified by:
setPaintFocus in interface PanelPainter<E extends javax.swing.JPanel>
Parameters:
paint - whether focus should be painted or not

setPaintTop

public void setPaintTop(boolean top)
Sets whether should paint top side or not.

Specified by:
setPaintTop in interface PartialDecoration
Parameters:
top - whether should paint top side or not

setPaintLeft

public void setPaintLeft(boolean left)
Sets whether should paint left side or not.

Specified by:
setPaintLeft in interface PartialDecoration
Parameters:
left - whether should paint left side or not

setPaintBottom

public void setPaintBottom(boolean bottom)
Sets whether should paint bottom side or not.

Specified by:
setPaintBottom in interface PartialDecoration
Parameters:
bottom - whether should paint bottom side or not

setPaintRight

public void setPaintRight(boolean right)
Sets whether should paint right side or not.

Specified by:
setPaintRight in interface PartialDecoration
Parameters:
right - whether should paint right side or not

setPaintSides

public void setPaintSides(boolean top,
                          boolean left,
                          boolean bottom,
                          boolean right)
Sets whether should paint specific sides or not.

Specified by:
setPaintSides in interface PartialDecoration
Parameters:
top - whether should paint top side or not
left - whether should paint left side or not
bottom - whether should paint bottom side or not
right - whether should paint right side or not

setPaintTopLine

public void setPaintTopLine(boolean top)
Sets whether should paint top side line or not.

Specified by:
setPaintTopLine in interface PartialDecoration
Parameters:
top - whether should paint top side line or not

setPaintLeftLine

public void setPaintLeftLine(boolean left)
Sets whether should paint left side line or not.

Specified by:
setPaintLeftLine in interface PartialDecoration
Parameters:
left - whether should paint left side line or not

setPaintBottomLine

public void setPaintBottomLine(boolean bottom)
Sets whether should paint bottom side line or not.

Specified by:
setPaintBottomLine in interface PartialDecoration
Parameters:
bottom - whether should paint bottom side line or not

setPaintRightLine

public void setPaintRightLine(boolean right)
Sets whether should paint right side line or not.

Specified by:
setPaintRightLine in interface PartialDecoration
Parameters:
right - whether should paint right side line or not

setPaintSideLines

public void setPaintSideLines(boolean top,
                              boolean left,
                              boolean bottom,
                              boolean right)
Sets whether should paint specific side lines or not.

Specified by:
setPaintSideLines in interface PartialDecoration
Parameters:
top - whether should paint top side line or not
left - whether should paint left side line or not
bottom - whether should paint bottom side line or not
right - whether should paint right side line or not