net.comrom.chart
Class FillStyle

java.lang.Object
  extended bynet.comrom.chart.FillStyle

public class FillStyle
extends java.lang.Object

This class fills an area. It contains the description of how the filling should looks like.
The following code creates the fillings for the columns:
BarDataSerie data1= new BarDataSerie(d1,new FillStyle(GraphicsProvider.getColor(ChartColor.BLUE)));
BarDataSerie data2= new BarDataSerie(d2,new FillStyle(GraphicsProvider.getColor(ChartColor.RED));


Field Summary
 float alphaValue
          clear (0), transparency (0.5), opaque (1).
 ChartColor colorFrom
          Initial color used for the gradient
 ChartColor colorUntil
          Final color used for the gradient.
 java.lang.Object fillPatern
          fill pattern
static int GRADIENT_HORIZONTAL
           
static int GRADIENT_VERTICAL
           
 boolean gradientCyclic
           
 int gradientType
           
static int NO_GRADIENT
           
 ChartImage textureImage
           
 
Constructor Summary
FillStyle(ChartColor c)
           
FillStyle(ChartColor c, float f)
           
FillStyle(ChartImage i)
           
 
Method Summary
static FillStyle createFromString(java.lang.String f)
           
 void drawRoundRect(ChartGraphics g, int x1, int y1, int x2, int y2)
           
 ChartColor getColor()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_GRADIENT

public static int NO_GRADIENT

GRADIENT_HORIZONTAL

public static int GRADIENT_HORIZONTAL

GRADIENT_VERTICAL

public static int GRADIENT_VERTICAL

fillPatern

public java.lang.Object fillPatern
fill pattern


alphaValue

public float alphaValue
clear (0), transparency (0.5), opaque (1).


colorFrom

public ChartColor colorFrom
Initial color used for the gradient


colorUntil

public ChartColor colorUntil
Final color used for the gradient.


gradientType

public int gradientType

gradientCyclic

public boolean gradientCyclic

textureImage

public ChartImage textureImage
Constructor Detail

FillStyle

public FillStyle(ChartColor c)

FillStyle

public FillStyle(ChartImage i)

FillStyle

public FillStyle(ChartColor c,
                 float f)
Method Detail

toString

public java.lang.String toString()

createFromString

public static FillStyle createFromString(java.lang.String f)
Parameters:
f -
Returns:

create style form string

getColor

public ChartColor getColor()
Returns:

get color used for filling the area.

drawRoundRect

public void drawRoundRect(ChartGraphics g,
                          int x1,
                          int y1,
                          int x2,
                          int y2)