|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.jgraph.pad.dialog.JGraphpadGradientPanel
Panel with a gradient background.
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected Color |
endColor
Start- and endcolor of the gradient fill. |
protected Color |
startColor
Start- and endcolor of the gradient fill. |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JGraphpadGradientPanel()
Constructs a new gradient panel with no gradient. |
|
JGraphpadGradientPanel(Color startColor)
Constructs a new gradient panel with the specified start- and no end color (background is used). |
|
JGraphpadGradientPanel(Color startColor,
Color endColor)
Constructs a new gradient panel with the specified start color and end colors. |
|
| Method Summary | |
Color |
getEndColor()
Returns the endcolor for the gradient fill. |
Color |
getStartColor()
Returns the startcolor for the gradient fill. |
void |
paint(Graphics g)
Paints a gradient background on g. |
void |
setEndColor(Color endColor)
Sets the endcolor for the gradient fill. |
void |
setStartColor(Color startColor)
Sets the startcolor for the gradient fill. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Color startColor
protected Color endColor
| Constructor Detail |
public JGraphpadGradientPanel()
public JGraphpadGradientPanel(Color startColor)
startColor - The start color to use for the gradient.
public JGraphpadGradientPanel(Color startColor,
Color endColor)
null, then the
component's background color is used.
startColor - The start color to use for the gradient.endColor - The end color to use for the gradient.| Method Detail |
public void paint(Graphics g)
g.
public Color getEndColor()
public void setEndColor(Color endColor)
endColor - The end color of the gradient.public Color getStartColor()
public void setStartColor(Color startColor)
startColor - The start color of the gradient.
|
JGraphpad Pro
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||