- java.lang.Object
-
- org.icepdf.ri.common.widgets.PaintButtonBase
-
public class PaintButtonBase extends Object
Decorator class for painting behind a button's main graphic image.- Since:
- 6.1
-
-
Field Summary
Fields Modifier and Type Field Description protected floatalphaprotected floatalphaDisabledprotected booleanbackprotected AbstractButtonbuttonprotected Colorcolorprotected ShapecolorBoundprotected booleanfill
-
Constructor Summary
Constructors Constructor Description PaintButtonBase(AbstractButton button)PaintButtonBase(AbstractButton button, Color color, Shape colorBound, float alpha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetAlpha()ColorgetColor()ShapegetColorBound()protected voidpaintComponent(Graphics g)voidsetAlpha(float alpha)voidsetBack(boolean back)voidsetColor(Color color)voidsetColorBound(Shape colorBound)voidsetFill(boolean fill)
-
-
-
Field Detail
-
color
protected Color color
-
colorBound
protected Shape colorBound
-
alpha
protected float alpha
-
alphaDisabled
protected final float alphaDisabled
- See Also:
- Constant Field Values
-
button
protected final AbstractButton button
-
fill
protected boolean fill
-
back
protected boolean back
-
-
Constructor Detail
-
PaintButtonBase
public PaintButtonBase(AbstractButton button)
-
PaintButtonBase
public PaintButtonBase(AbstractButton button, Color color, Shape colorBound, float alpha)
-
-
Method Detail
-
setColor
public void setColor(Color color)
-
setColorBound
public void setColorBound(Shape colorBound)
-
setAlpha
public void setAlpha(float alpha)
-
getColor
public Color getColor()
-
getColorBound
public Shape getColorBound()
-
getAlpha
public float getAlpha()
-
setFill
public void setFill(boolean fill)
-
setBack
public void setBack(boolean back)
-
paintComponent
protected void paintComponent(Graphics g)
-
-