com.odesys.chart.image
Class LineChartImage

java.lang.Object
  |
  +--com.odesys.chart.image.ChartImage
        |
        +--com.odesys.chart.image.LineChartImage

public class LineChartImage
extends ChartImage

LineChartImage creates a Line Chart image in JPEG format and writes its data into an OutputStream.


Constructor Summary
LineChartImage()
          Creates new LineChartImage instance
 
Method Summary
protected  Chart createChart()
          Factory method that creates the Chart instance for this LineChartImage.
 Axis getAxisX()
          Gets the X axis.
 Axis getAxisY()
          Gets the Y axis.
 void setAxisXPosition(int pos)
          Sets the position of the X axis.
 void setAxisYPosition(int pos)
          Sets the position of the Y axis.
 void setDrawHorzLines(boolean draw)
          Determines whether the horizontal coordinate lines should be drawn.
 void setDrawVertLines(boolean draw)
          Determines whether the vertical coordinate lines should be drawn.
 
Methods inherited from class com.odesys.chart.image.ChartImage
getChart, getModel, setBackground, setChartBackground, setChartContoursVisible, setChartFont, setChartForeground, setFont, setLabelsVisible, setLegendBackground, setLegendContoursVisible, setLegendFont, setLegendForeground, setLegendVisible, setModel, setQuality, setSize, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineChartImage

public LineChartImage()
Creates new LineChartImage instance
Method Detail

createChart

protected Chart createChart()
Factory method that creates the Chart instance for this LineChartImage.
Overrides:
createChart in class ChartImage
Returns:
A new LineChart instance.

getAxisX

public Axis getAxisX()
Gets the X axis.
Returns:
The X axis.

getAxisY

public Axis getAxisY()
Gets the Y axis.
Returns:
The Y axis.

setAxisXPosition

public void setAxisXPosition(int pos)
Sets the position of the X axis. The allowed values are Grid.TOP and Grid.BOTTOM.
Parameters:
pos - The position of X axis.

setAxisYPosition

public void setAxisYPosition(int pos)
Sets the position of the Y axis. The allowed values are Grid.LEFT and Grid.RIGHT.
Parameters:
pos - The position of Y axis.

setDrawHorzLines

public void setDrawHorzLines(boolean draw)
Determines whether the horizontal coordinate lines should be drawn.

setDrawVertLines

public void setDrawVertLines(boolean draw)
Determines whether the vertical coordinate lines should be drawn.