com.linksoft.chart
Class LineStyle

java.lang.Object
  extended bycom.linksoft.chart.LineStyle

public class LineStyle
extends java.lang.Object

Copyright (c) 2002-2005 LinkSoft Systems, Inc. All Rights Reserved


Field Summary
 float alphaValue
           
static int LINE_DASHED
           
static int LINE_DOTS
           
static int LINE_NORMAL
           
 
Constructor Summary
LineStyle(float w, ChartColor c, int t)
           
LineStyle(float w, ChartColor c, int t, float alpha)
           
 
Method Summary
static LineStyle createFromString(java.lang.String s)
           
 void draw(ChartGraphics g, int x1, int y1, int x2, int y2)
           
 void drawArc(ChartGraphics g, int x, int y, int w, int h, int a1, int a2)
           
 void drawOpenPolygon(ChartGraphics g, int[] x, int[] y, int c)
           
 void drawPolygon(ChartGraphics g, int[] x, int[] y, int c)
           
 void drawRect(ChartGraphics g, int x1, int y1, int x2, int y2)
           
 void drawRoundRect(ChartGraphics g, int x1, int y1, int x2, int y2)
           
 ChartColor getColor()
           
 int getType()
           
 float getWidth()
           
 void setColor(ChartColor c)
           
protected  void setGraphicsProperties(ChartGraphics g)
           
 void setType(int t)
           
 void setWidth(float f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alphaValue

public float alphaValue

LINE_NORMAL

public static final int LINE_NORMAL
See Also:
Constant Field Values

LINE_DASHED

public static final int LINE_DASHED
See Also:
Constant Field Values

LINE_DOTS

public static final int LINE_DOTS
See Also:
Constant Field Values
Constructor Detail

LineStyle

public LineStyle(float w,
                 ChartColor c,
                 int t)

LineStyle

public LineStyle(float w,
                 ChartColor c,
                 int t,
                 float alpha)
Method Detail

createFromString

public static LineStyle createFromString(java.lang.String s)

setType

public void setType(int t)

getType

public int getType()

getColor

public ChartColor getColor()

setColor

public void setColor(ChartColor c)

getWidth

public float getWidth()

setWidth

public void setWidth(float f)

drawArc

public void drawArc(ChartGraphics g,
                    int x,
                    int y,
                    int w,
                    int h,
                    int a1,
                    int a2)

drawPolygon

public void drawPolygon(ChartGraphics g,
                        int[] x,
                        int[] y,
                        int c)

drawOpenPolygon

public void drawOpenPolygon(ChartGraphics g,
                            int[] x,
                            int[] y,
                            int c)

drawRoundRect

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

drawRect

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

draw

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

setGraphicsProperties

protected void setGraphicsProperties(ChartGraphics g)