com.yworks.yfiles.server.graphml.flexio.compat
Class GradientEntry

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.compat.GradientEntry

public class GradientEntry
extends java.lang.Object

An gradient entry of a LinearGradient.

See Also:
LinearGradient

Constructor Summary
GradientEntry()
           
GradientEntry(java.awt.Color color, float ration)
           
 
Method Summary
 java.awt.Color getColor()
          The color of this entry.
 float getRatio()
          The ratio between 0 and 1 at which this entry should be considered for the LinearGradient.
 void setColor(java.awt.Color color)
           
 void setRatio(float ratio)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientEntry

public GradientEntry()

GradientEntry

public GradientEntry(java.awt.Color color,
                     float ration)
Method Detail

getColor

public java.awt.Color getColor()
The color of this entry.

Returns:

setColor

public void setColor(java.awt.Color color)

getRatio

public float getRatio()
The ratio between 0 and 1 at which this entry should be considered for the LinearGradient.

Returns:

setRatio

public void setRatio(float ratio)


Copyright © 2000-2013 yWorks GmbH. All rights reserved