| |
|
| javax.swing.JPanel com.jgraph.pad.dialog.JGraphpadGradientPanel
All known Subclasses: com.jgraph.pad.dialog.JGraphpadHeaderPanel,
JGraphpadGradientPanel | public class JGraphpadGradientPanel extends JPanel (Code) | | Panel with a gradient background.
|
startColorendColor | protected Color startColorendColor(Code) | | Start- and endcolor of the gradient fill.
|
JGraphpadGradientPanel | public JGraphpadGradientPanel()(Code) | | Constructs a new gradient panel with no gradient.
|
JGraphpadGradientPanel | public JGraphpadGradientPanel(Color startColor)(Code) | | Constructs a new gradient panel with the specified start- and no end
color (background is used).
Parameters: startColor - The start color to use for the gradient. |
JGraphpadGradientPanel | public JGraphpadGradientPanel(Color startColor, Color endColor)(Code) | | Constructs a new gradient panel with the specified start color and end
colors. If start or end color is null , then the
component's background color is used.
Parameters: startColor - The start color to use for the gradient. Parameters: endColor - The end color to use for the gradient. |
getEndColor | public Color getEndColor()(Code) | | Returns the endcolor for the gradient fill.
Returns the end color. |
getStartColor | public Color getStartColor()(Code) | | Returns the startcolor for the gradient fill.
Returns the start color. |
paint | public void paint(Graphics g)(Code) | | Paints a gradient background on g .
|
setEndColor | public void setEndColor(Color endColor)(Code) | | Sets the endcolor for the gradient fill.
Parameters: endColor - The end color of the gradient. |
setStartColor | public void setStartColor(Color startColor)(Code) | | Sets the startcolor for the gradient fill.
Parameters: startColor - The start color of the gradient. |
|
|
|