|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ago.beans.Gradient
Class giving Image, formed of several points with key colors, and the points, forming transition from one key color to another. Gradient can be horizontal or vertical. You can make Gradient with any numbers of colors, any colors, any destance between colors. There is easy visual editor for this property.
Constructor Summary | |
Gradient()
default Gradient (blue->white->orange), segments = 256 delay = 10 |
|
Gradient(int color1,
int color2)
Create Gradient with 2 key colors & segments = 100. |
|
Gradient(java.lang.String[] colors,
float[] ranges,
int segments,
int delay)
using for JavaInitializationString Allways ranges[0]=0, ranges[last]=1 |
Method Summary | |
java.lang.Object |
clone()
|
java.awt.Image |
getImage()
|
static java.awt.Image |
rot90(java.awt.Image img)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Gradient()
public Gradient(java.lang.String[] colors, float[] ranges, int segments, int delay)
colors
- array of gradient colors. ranges
- array with distances between key-colors pointssegments
- how many points totaldelay
- speed of color changing (for dynamic components only,
ie AgoLabel & AgoButton )public Gradient(int color1, int color2)
color1
- start colorcolor2
- end colorMethod Detail |
public java.awt.Image getImage()
public static java.awt.Image rot90(java.awt.Image img)
img
- image to rotate
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |