public class WebPanelUI extends javax.swing.plaf.basic.BasicPanelUI implements Styleable, ShapeProvider, BorderMethods, PartialDecoration
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Insets |
margin |
protected boolean |
paintBottom |
protected boolean |
paintBottomLine |
protected PanelPainter |
painter
Component painter.
|
protected boolean |
paintFocus |
protected boolean |
paintLeft |
protected boolean |
paintLeftLine |
protected boolean |
paintRight |
protected boolean |
paintRightLine |
protected boolean |
paintTop |
protected boolean |
paintTopLine |
protected javax.swing.JPanel |
panel |
protected java.beans.PropertyChangeListener |
propertyChangeListener
Panel listeners.
|
protected java.lang.String |
styleId
Runtime variables.
|
protected boolean |
undecorated
Style settings.
|
| Constructor and Description |
|---|
WebPanelUI() |
| Modifier and Type | Method and Description |
|---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Returns an instance of the WebPanelUI for the specified component.
|
java.awt.Color |
getBorderColor()
Returns decoration border color.
|
java.awt.Stroke |
getBorderStroke()
Returns decoration border stroke.
|
java.awt.Color |
getDisabledBorderColor()
Returns decoration disabled border color.
|
java.awt.Insets |
getMargin()
Returns panel margin.
|
Painter |
getPainter()
Returns panel painter.
|
int |
getRound()
Returns decoration corners rounding.
|
float |
getShadeTransparency()
Returns decoration shade transparency.
|
int |
getShadeWidth()
Returns decoration shade width.
|
java.lang.String |
getStyleId()
Returns component style ID.
|
void |
installUI(javax.swing.JComponent c)
Installs UI in the specified component.
|
boolean |
isPaintBackground()
Returns whether should paint decoration background or not.
|
boolean |
isPaintBottom()
Returns whether should paint bottom side or not.
|
boolean |
isPaintBottomLine()
Returns whether should paint bottom side line or not.
|
boolean |
isPaintFocus()
Returns whether focus should be painted or not.
|
boolean |
isPaintLeft()
Returns whether should paint left side or not.
|
boolean |
isPaintLeftLine()
Returns whether should paint left side line or not.
|
boolean |
isPaintRight()
Returns whether should paint right side or not.
|
boolean |
isPaintRightLine()
Returns whether should paint right side line or not.
|
boolean |
isPaintTop()
Returns whether should paint top side or not.
|
boolean |
isPaintTopLine()
Returns whether should paint top side line or not.
|
boolean |
isUndecorated()
Returns whether panel is undecorated or not.
|
boolean |
isWebColoredBackground()
Returns whether should paint web-styled background or not.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paints panel.
|
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
setBorderColor(java.awt.Color color)
Sets decoration border color.
|
void |
setBorderStroke(java.awt.Stroke stroke)
Sets decoration border stroke.
|
void |
setDisabledBorderColor(java.awt.Color color)
Sets decoration disabled border color.
|
void |
setMargin(java.awt.Insets margin)
Sets panel margin.
|
void |
setPaintBackground(boolean paint)
Sets whether should paint decoration background 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 |
setPainter(Painter painter)
Sets panel painter.
|
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 |
setRound(int round)
Sets decoration corners rounding.
|
void |
setShadeTransparency(float transparency)
Sets decoration shade transparency.
|
void |
setShadeWidth(int shadeWidth)
Sets decoration shade width.
|
void |
setStyleId(java.lang.String id)
Sets custom component style ID.
|
void |
setUndecorated(boolean undecorated)
Sets whether panel should be undecorated or not.
|
void |
setWebColoredBackground(boolean webColored)
Sets whether should paint web-styled background or not.
|
void |
uninstallUI(javax.swing.JComponent c)
Uninstalls UI from the specified component.
|
void |
updateBorder()
Updates custom WebLaF border.
|
getBaseline, getBaselineResizeBehavior, installDefaults, uninstallDefaultsprotected boolean undecorated
protected boolean paintFocus
protected java.awt.Insets margin
protected boolean paintTop
protected boolean paintLeft
protected boolean paintBottom
protected boolean paintRight
protected boolean paintTopLine
protected boolean paintLeftLine
protected boolean paintBottomLine
protected boolean paintRightLine
protected PanelPainter painter
protected java.beans.PropertyChangeListener propertyChangeListener
protected java.lang.String styleId
protected javax.swing.JPanel panel
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c - component that will use UI instancepublic void installUI(javax.swing.JComponent c)
installUI in class javax.swing.plaf.basic.BasicPanelUIc - component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicPanelUIc - component with this UIpublic java.lang.String getStyleId()
getStyleId in interface Styleablepublic void setStyleId(java.lang.String id)
setStyleId in interface Styleableid - custom component style IDpublic java.awt.Shape provideShape()
provideShape in interface ShapeProviderpublic void updateBorder()
updateBorder in interface BorderMethodspublic boolean isUndecorated()
public void setUndecorated(boolean undecorated)
undecorated - whether panel should be undecorated or notpublic boolean isPaintFocus()
public void setPaintFocus(boolean paint)
paint - whether focus should be painted or notpublic java.awt.Insets getMargin()
public void setMargin(java.awt.Insets margin)
margin - new panel marginpublic boolean isPaintTop()
public void setPaintTop(boolean top)
setPaintTop in interface PartialDecorationtop - whether should paint top side or notpublic boolean isPaintLeft()
public void setPaintLeft(boolean left)
setPaintLeft in interface PartialDecorationleft - whether should paint left side or notpublic boolean isPaintBottom()
public void setPaintBottom(boolean bottom)
setPaintBottom in interface PartialDecorationbottom - whether should paint bottom side or notpublic boolean isPaintRight()
public void setPaintRight(boolean right)
setPaintRight in interface PartialDecorationright - whether should paint right side or notpublic void setPaintSides(boolean top,
boolean left,
boolean bottom,
boolean right)
setPaintSides in interface PartialDecorationtop - whether should paint top side or notleft - whether should paint left side or notbottom - whether should paint bottom side or notright - whether should paint right side or notpublic boolean isPaintTopLine()
public void setPaintTopLine(boolean top)
setPaintTopLine in interface PartialDecorationtop - whether should paint top side line or notpublic boolean isPaintLeftLine()
public void setPaintLeftLine(boolean left)
setPaintLeftLine in interface PartialDecorationleft - whether should paint left side line or notpublic boolean isPaintBottomLine()
public void setPaintBottomLine(boolean bottom)
setPaintBottomLine in interface PartialDecorationbottom - whether should paint bottom side line or notpublic boolean isPaintRightLine()
public void setPaintRightLine(boolean right)
setPaintRightLine in interface PartialDecorationright - whether should paint right side line or notpublic void setPaintSideLines(boolean top,
boolean left,
boolean bottom,
boolean right)
setPaintSideLines in interface PartialDecorationtop - whether should paint top side line or notleft - whether should paint left side line or notbottom - whether should paint bottom side line or notright - whether should paint right side line or notpublic int getRound()
public void setRound(int round)
round - decoration corners roundingpublic int getShadeWidth()
public void setShadeWidth(int shadeWidth)
shadeWidth - decoration shade widthpublic float getShadeTransparency()
public void setShadeTransparency(float transparency)
transparency - new decoration shade transparencypublic java.awt.Stroke getBorderStroke()
public void setBorderStroke(java.awt.Stroke stroke)
stroke - decoration border strokepublic java.awt.Color getBorderColor()
public void setBorderColor(java.awt.Color color)
color - decoration border colorpublic java.awt.Color getDisabledBorderColor()
public void setDisabledBorderColor(java.awt.Color color)
color - decoration disabled border colorpublic boolean isPaintBackground()
public void setPaintBackground(boolean paint)
paint - whether should paint decoration background or notpublic boolean isWebColoredBackground()
public void setWebColoredBackground(boolean webColored)
webColored - whether should paint web-styled background or notpublic Painter getPainter()
public void setPainter(Painter painter)
painter - new panel painterpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.ComponentUIg - graphicsc - component