com.alee.managers.style.skin.web
Class WebPopOverPainter<E extends javax.swing.JPanel>

java.lang.Object
  extended by com.alee.extended.painter.AbstractPainter<E>
      extended by com.alee.managers.style.skin.web.WebPopupPainter<E>
          extended by com.alee.managers.style.skin.web.WebPopOverPainter<E>
All Implemented Interfaces:
Painter<E>, PartialDecoration, SpecificPainter, PanelPainter<E>, PainterShapeProvider<E>, javax.swing.SwingConstants

public class WebPopOverPainter<E extends javax.swing.JPanel>
extends WebPopupPainter<E>
implements PanelPainter<E>

Web-style painter for WebPopOver component. It is used as default WebPopOver painter.

Author:
Mikle Garin

Field Summary
protected  boolean popOverFocused
          Runtime variables.
 
Fields inherited from class com.alee.managers.style.skin.web.WebPopupPainter
borderColor, cornerAlignment, cornerSide, cornerWidth, DROPDOWN_BORDER_SHAPE, DROPDOWN_FILL_SHAPE, popupStyle, relativeCorner, round, shadeTransparency, shadeWidth, SIMPLE_BORDER_SHAPE, SIMPLE_FILL_SHAPE, transparency, transparent
 
Fields inherited from class com.alee.extended.painter.AbstractPainter
listeners, margin, opaque, preferredSize
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Constructor Summary
WebPopOverPainter()
           
 
Method Summary
protected  float getCurrentShadeTransparency()
          Returns current shade transparency.
 boolean isPopOverFocused()
          Returns whether this WebPopOver is focus owner or not.
 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 setPopOverFocused(boolean focused)
          Sets whether this WebPopOver is focus owner or not.
 void setUndecorated(boolean undecorated)
          Sets whether panel decoration should be painted or not.
 
Methods inherited from class com.alee.managers.style.skin.web.WebPopupPainter
createDropdownCornerShape, createDropdownShape, createSimpleShape, getBackgroundColor, getBorderColor, getBorderShape, getCachedShapeSettings, getComponentBackground, getCornerAlignment, getCornerSide, getCornerWidth, getDropdownCornerShape, getMargin, getPopupStyle, getRelativeCorner, getRound, getShadeBounds, getShadeTransparency, getShadeWidth, getSideWidth, getTransparency, isOpaque, isTransparent, paint, paintBackground, paintBorder, paintShade, paintSimplePopup, paintTransparentPopup, provideShape, setBorderColor, setCornerAlignment, setCornerSide, setCornerWidth, setPopupStyle, setRelativeCorner, setRound, setShadeTransparency, setShadeWidth, setTransparency, setTransparent
 
Methods inherited from class com.alee.extended.painter.AbstractPainter
addPainterListener, 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
 
Methods inherited from interface com.alee.extended.painter.Painter
addPainterListener, getMargin, getPreferredSize, install, isOpaque, paint, removePainterListener, uninstall
 

Field Detail

popOverFocused

protected boolean popOverFocused
Runtime variables.

Constructor Detail

WebPopOverPainter

public WebPopOverPainter()
Method Detail

isPopOverFocused

public boolean isPopOverFocused()
Returns whether this WebPopOver is focus owner or not.

Returns:
true if this WebPopOver is focus owner, false otherwise

setPopOverFocused

public void setPopOverFocused(boolean focused)
Sets whether this WebPopOver is focus owner or not.

Parameters:
focused - whether this WebPopOver is focus owner or not

getCurrentShadeTransparency

protected float getCurrentShadeTransparency()
Returns current shade transparency. This part moved to a separate method to make it simple to override without touchin the actual transparency value.

Overrides:
getCurrentShadeTransparency in class WebPopupPainter<E extends javax.swing.JPanel>
Returns:
current shade transparency

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