|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.style.AbstractStyle<Tag>
lt.monarch.chart.style.GradientStyle<Tag>
public class GradientStyle<Tag extends AbstractPaintTags> extends AbstractStyle<Tag>
Object for setting gradient for the
| Modifier and Type | Field and Description |
|---|---|
protected Style |
style
|
protected java.lang.String |
tag
Paint tags |
| Fields inherited from class lt.monarch.chart.style.AbstractStyle |
|---|
dirty |
| Constructor and Description |
|---|
GradientStyle(Style style,
java.lang.String tag)
Default gradient constructor |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes style object |
boolean |
equals(GradientStyle<? extends AbstractPaintTags> style2)
Compares colors, starting and ending positions. |
java.awt.Color[] |
getColors()
Gets start and end colors |
float[] |
getGradientEnd()
Gets gradient end horizontal and vertical alignments |
float |
getGradientFactor()
Sets gradient factor |
float[] |
getGradientStart()
Gets gradient start horizontal and vertical alignments respectively |
boolean |
isCyclic()
Gets if the gradient is cyclic |
void |
setColors(java.awt.Color color1,
java.awt.Color color2)
Sets the gradient colors |
void |
setCyclic(boolean cyclic)
Sets if the gradient is cyclic |
void |
setGradientEnd(float halign,
float valign)
Sets the gradient start vertical and horizontal alignment respectively |
void |
setGradientFactor(float factor)
Gets gradient factor |
void |
setGradientStart(float halign,
float valign)
Sets the gradient start vertical and horizontal alignment |
| Methods inherited from class lt.monarch.chart.style.AbstractStyle |
|---|
finalize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Style style
protected java.lang.String tag
| Constructor Detail |
|---|
public GradientStyle(Style style,
java.lang.String tag)
style - stylesheet objecttag - gradient paint tag| Method Detail |
|---|
public void setGradientStart(float halign,
float valign)
halign - horizontal alignment of the gradient startvalign - vertical alignment of the gradient startpublic float[] getGradientStart()
public void setGradientEnd(float halign,
float valign)
halign - horizontal alignment of the gradient startvalign - vertical alignment of the gradient startpublic float[] getGradientEnd()
public void setGradientFactor(float factor)
factor - gradient factorpublic float getGradientFactor()
public void setCyclic(boolean cyclic)
cyclic - true if cyclicpublic boolean isCyclic()
public boolean equals(GradientStyle<? extends AbstractPaintTags> style2)
style2 - style to compare to
public void setColors(java.awt.Color color1,
java.awt.Color color2)
color1 - 1st gradient colorcolor2 - 2nd gradient colorpublic java.awt.Color[] getColors()
public void dispose()
AbstractStyle
dispose in class AbstractStyle<Tag extends AbstractPaintTags>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||