org.foray.common
Class Gradient4a
java.lang.Object
org.foray.common.Gradient4a
- All Implemented Interfaces:
- org.axsl.common.Gradient
public class Gradient4a
- extends Object
- implements org.axsl.common.Gradient
Describes a radial or linear gradient.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Gradient4a
public Gradient4a(boolean radial,
ColorSpace colorSpace,
List<Color> colors,
List<Double> bounds,
List<Double> coordinates)
- Constructor.
- Parameters:
radial
- Indicates whether the gradient is linear or radial.colorSpace
- The color space for the gradient.colors
- The colors in the gradient.bounds
- The bounds of the gradient.coordinates
- The coordinates of the gradient.
isRadial
public boolean isRadial()
- Specified by:
isRadial
in interface org.axsl.common.Gradient
getColorSpace
public ColorSpace getColorSpace()
- Specified by:
getColorSpace
in interface org.axsl.common.Gradient
getColors
public List<Color> getColors()
- Specified by:
getColors
in interface org.axsl.common.Gradient
getBounds
public List<Double> getBounds()
- Specified by:
getBounds
in interface org.axsl.common.Gradient
getCoordinates
public List<Double> getCoordinates()
- Specified by:
getCoordinates
in interface org.axsl.common.Gradient
Copyright © 2017. All rights reserved.