org.foray.common
Class Gradient4a

java.lang.Object
  extended by 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.


Constructor Summary
Gradient4a(boolean radial, ColorSpace colorSpace, List<Color> colors, List<Double> bounds, List<Double> coordinates)
          Constructor.
 
Method Summary
 List<Double> getBounds()
           
 List<Color> getColors()
           
 ColorSpace getColorSpace()
           
 List<Double> getCoordinates()
           
 boolean isRadial()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.