|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.Gradient
public abstract class Gradient
Abstract 2 colors gradient. By default gradient from BLACK to WHITE.
GradientLinear
,
GradientFromCenter
Constructor Summary | |
---|---|
Gradient(GradientType type)
Create gradient with the specified type. |
Method Summary | |
---|---|
java.awt.Color |
getEndColor()
Return gradient end color. |
float |
getEndColorStop()
Return end color stop. |
java.awt.Color |
getStartColor()
Return gradient start color. |
float |
getStartColorStop()
Return start color stop. |
GradientType |
getType()
Return gradient type. |
boolean |
isRotate()
Return whether the gradient rotated with shape. |
void |
setEndColor(java.awt.Color endColor)
Set gradient end color. |
void |
setEndColorStop(float endColorStop)
Set end color stop. |
void |
setRotate(boolean rotate)
Set whether the gradient rotated with shape. |
void |
setStartColor(java.awt.Color startColor)
Set gradient start color. |
void |
setStartColorStop(float startColorStop)
Set start color stop. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Gradient(GradientType type)
type
- gradient type.Method Detail |
---|
public java.awt.Color getStartColor()
public void setStartColor(java.awt.Color startColor)
startColor
- new start color.public java.awt.Color getEndColor()
public void setEndColor(java.awt.Color endColor)
endColor
- new end color.public GradientType getType()
public boolean isRotate()
public void setRotate(boolean rotate)
rotate
- true to rotate gradient with shape.public float getStartColorStop()
public void setStartColorStop(float startColorStop)
startColorStop
- new color stop. Must be in the range [0..1].public float getEndColorStop()
public void setEndColorStop(float endColorStop)
endColorStop
- new color stop. Must be in the range [0..1].
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |