JIDE 3.5.15

com.jidesoft.chart.style
Class LineStyle

java.lang.Object
  extended by com.jidesoft.chart.style.AbstractStyle
      extended by com.jidesoft.chart.style.LineStyle

public class LineStyle
extends AbstractStyle

The style for a line of the chart


Field Summary
static BasicStroke DEFAULT_STROKE
          The default stroke is a solid line of default width, with CAP_SQUARE and JOIN_BEVEL
static int DEFAULT_WIDTH
          The default width is 1 pixel.
 
Constructor Summary
LineStyle()
          Create a Line Style using a default stroke and default width.
LineStyle(BasicStroke stroke)
          Create a Line Style using the supplied stroke
LineStyle(Color color, BasicStroke stroke)
          Create a line style using the supplied color, width and stroke settings
LineStyle(Color color, int width)
          Create a line style using the supplied color and width
LineStyle(int width)
          Create a Line Style using a default stroke and the supplied width.
 
Method Summary
 boolean equals(Object obj)
           
 Paint getFill()
           
 LineFillExtent getFillExtent()
          Returns the boundary to which the line is filled (if a fill is applied)
 Orientation getFillOrientation()
           
 BasicStroke getStroke()
          Returns the stroke of the lines
 int getWidth()
          Returns the currently specified width of the lines
 int hashCode()
           
 void setFill(Paint fill)
          When set, this specifies a fill to use between the line of the model and the x axis.
 void setFillExtent(LineFillExtent fillExtent)
          Specify which boundary to fill the line to; by default fills to zero on the axis indicated by the choice of fill orientation
 void setFillOrientation(Orientation fillOrientation)
           
 void setStroke(BasicStroke stroke)
          Specify the stroke of the lines
 void setWidth(int width)
          Specify the width to use for the lines
 String toString()
           
 
Methods inherited from class com.jidesoft.chart.style.AbstractStyle
getColor, getPaint, setColor, setPaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_WIDTH

public static final int DEFAULT_WIDTH
The default width is 1 pixel.

See Also:
Constant Field Values

DEFAULT_STROKE

public static final BasicStroke DEFAULT_STROKE
The default stroke is a solid line of default width, with CAP_SQUARE and JOIN_BEVEL

Constructor Detail

LineStyle

public LineStyle()
Create a Line Style using a default stroke and default width.


LineStyle

public LineStyle(int width)
Create a Line Style using a default stroke and the supplied width.

Parameters:
width - the width of the lines

LineStyle

public LineStyle(BasicStroke stroke)
Create a Line Style using the supplied stroke

Parameters:
stroke - the stroke to use for styling the lines

LineStyle

public LineStyle(Color color,
                 int width)
Create a line style using the supplied color and width

Parameters:
color - the color of the line
width - the width of the line in pixels

LineStyle

public LineStyle(Color color,
                 BasicStroke stroke)
Create a line style using the supplied color, width and stroke settings

Parameters:
color - the color of the line
stroke - the stroke to use for painting the line
Method Detail

getFill

public Paint getFill()
Returns:
the currently used fill paint

setFill

public void setFill(Paint fill)
When set, this specifies a fill to use between the line of the model and the x axis.

Parameters:
fill - a paint - often a GradientPaint

setFillOrientation

public void setFillOrientation(Orientation fillOrientation)

getFillOrientation

public Orientation getFillOrientation()

getFillExtent

public LineFillExtent getFillExtent()
Returns the boundary to which the line is filled (if a fill is applied)

Returns:
the boundary to which the line is filled

setFillExtent

public void setFillExtent(LineFillExtent fillExtent)
Specify which boundary to fill the line to; by default fills to zero on the axis indicated by the choice of fill orientation

Parameters:
fillExtent - the boundary to fill the line to

setWidth

public void setWidth(int width)
Specify the width to use for the lines

Parameters:
width - the new width of the lines

getWidth

public int getWidth()
Returns the currently specified width of the lines

Returns:
the width of the lines in pixels

getStroke

public BasicStroke getStroke()
Returns the stroke of the lines

Returns:
the stroke of the lines

setStroke

public void setStroke(BasicStroke stroke)
Specify the stroke of the lines

Parameters:
stroke - the new stroke to use for the lines

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractStyle

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractStyle

toString

public String toString()
Overrides:
toString in class Object

JIDE 3.5.15