com.arctorus.documents
Class GradientFromCenter

java.lang.Object
  extended by com.arctorus.documents.Gradient
      extended by com.arctorus.documents.GradientFromCenter
All Implemented Interfaces:
java.lang.Cloneable

public final class GradientFromCenter
extends Gradient

Gradient from a shape center.


Method Summary
static GradientFromCenter createRadialGradient()
          Create and return radial gradient.
static GradientFromCenter createRectangularGradient()
          Create and return rectangular gradient.
 float getX()
          Return X coordinate of a gradient focus.
 float getY()
          Return Y coordinate of a gradient focus.
 void setX(float x)
          Set X coordinate of a gradient focus.
 void setY(float y)
          Set Y coordinate of a gradient focus.
 
Methods inherited from class com.arctorus.documents.Gradient
getEndColor, getEndColorStop, getStartColor, getStartColorStop, getType, isRotate, setEndColor, setEndColorStop, setRotate, setStartColor, setStartColorStop
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRadialGradient

public static final GradientFromCenter createRadialGradient()
Create and return radial gradient.


createRectangularGradient

public static final GradientFromCenter createRectangularGradient()
Create and return rectangular gradient.


getX

public float getX()
Return X coordinate of a gradient focus. Value is in the range [0..1].


setX

public void setX(float x)
Set X coordinate of a gradient focus.

Parameters:
x - new X coordinate. Must be in the range [0..1].

getY

public float getY()
Return Y coordinate of a gradient focus. Value is in the range [0..1].


setY

public void setY(float y)
Set Y coordinate of a gradient focus.

Parameters:
y - new Y coordinate. Must be in the range [0..1].