public class Stop extends Object
| Constructor and Description |
|---|
Stop()
Creates a stop with the default values.
|
Stop(int offset,
Color color)
Creates a stop using the given offset and color.
|
Stop(int offset,
Color color,
double opacity)
Creates a stop using the given offset, color and opacity.
|
| Modifier and Type | Method and Description |
|---|---|
Color |
getColor()
Returns the color of the stop.
|
int |
getOffset()
Returns the offset of the stop.
|
double |
getOpacity()
Returns the opacity of the stop.
|
public Stop()
public Stop(int offset,
Color color)
offset - the offset of the stopcolor - the color of the stoppublic Stop(int offset,
Color color,
double opacity)
offset - the offset of the stopcolor - the color of the stopopacity - the opacity of the stoppublic Color getColor()
public int getOffset()
public double getOpacity()
Copyright © 2014. All Rights Reserved.