|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.PanelUI javax.swing.plaf.basic.BasicPanelUI com.alee.laf.panel.WebPanelUI
public class WebPanelUI
Custom UI for JPanel component.
Field Summary | |
---|---|
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 Summary | |
---|---|
WebPanelUI()
|
Method Summary | |
---|---|
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. |
Methods inherited from class javax.swing.plaf.basic.BasicPanelUI |
---|
getBaseline, getBaselineResizeBehavior, installDefaults, uninstallDefaults |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected 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
Constructor Detail |
---|
public WebPanelUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- component that will use UI instance
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicPanelUI
c
- component for this UIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicPanelUI
c
- component with this UIpublic java.lang.String getStyleId()
getStyleId
in interface Styleable
public void setStyleId(java.lang.String id)
setStyleId
in interface Styleable
id
- custom component style IDpublic java.awt.Shape provideShape()
provideShape
in interface ShapeProvider
public void updateBorder()
updateBorder
in interface BorderMethods
public 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 PartialDecoration
top
- whether should paint top side or notpublic boolean isPaintLeft()
public void setPaintLeft(boolean left)
setPaintLeft
in interface PartialDecoration
left
- whether should paint left side or notpublic boolean isPaintBottom()
public void setPaintBottom(boolean bottom)
setPaintBottom
in interface PartialDecoration
bottom
- whether should paint bottom side or notpublic boolean isPaintRight()
public void setPaintRight(boolean right)
setPaintRight
in interface PartialDecoration
right
- whether should paint right side or notpublic void setPaintSides(boolean top, boolean left, boolean bottom, boolean right)
setPaintSides
in interface PartialDecoration
top
- 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 PartialDecoration
top
- whether should paint top side line or notpublic boolean isPaintLeftLine()
public void setPaintLeftLine(boolean left)
setPaintLeftLine
in interface PartialDecoration
left
- whether should paint left side line or notpublic boolean isPaintBottomLine()
public void setPaintBottomLine(boolean bottom)
setPaintBottomLine
in interface PartialDecoration
bottom
- whether should paint bottom side line or notpublic boolean isPaintRightLine()
public void setPaintRightLine(boolean right)
setPaintRightLine
in interface PartialDecoration
right
- whether should paint right side line or notpublic void setPaintSideLines(boolean top, boolean left, boolean bottom, boolean right)
setPaintSideLines
in interface PartialDecoration
top
- 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.ComponentUI
g
- graphicsc
- component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |