com.odesys.chart.linechart
Class LineChartView

java.lang.Object
  |
  +--com.odesys.chart.ChartView
        |
        +--com.odesys.chart.linechart.LineChartView

public class LineChartView
extends ChartView

LineChartView draws a Line Chart in the Graphics context provided by its parent Chart Component.


Fields inherited from class com.odesys.chart.ChartView
m_chart
 
Constructor Summary
LineChartView(Chart chart)
          Creates a new LineChartView instance for the specified Chart.
 
Method Summary
 Grid getGrid()
          Gets the Grid instance used by this BubbleChartView.
 float getMaxX()
          Gets the max X coordinate in this LineChartView's data model.
 float getMaxY()
          Gets the max Y coordinate in this LineChartView's data model.
 float getMinX()
          Gets the min X coordinate in this LineChartView's data model.
 float getMinY()
          Gets the min Y coordinate in this LineChartView's data model.
 LineChartModel getModel()
           
 Line lineFromPoint(java.awt.Point p)
          Determines the Line instance associated with the specified Point.
 void paint(java.awt.Graphics g)
          Draws the Line Chart in the specified Graphics context.
 PointData pointDataFromPoint(java.awt.Point p)
          Determines the PointData instance associated with the specified Point.
 void setModel(ChartModel model)
          Sets the data Model of this ChartView.
 void updateAggregates()
          Recalculates the minX, maxX, minY and maxY values.
 void updateDrawables()
          Used internally to update the DrawableLines of this LineChartView.
 
Methods inherited from class com.odesys.chart.ChartView
getBackground, getFont, getForeground, getPreferredSize, isAutoScaleToFit, isContoursVisible, isLabelsVisible, location, repaint, reshape, setAutoScaleToFit, setBackground, setContoursVisible, setFont, setForeground, setLabelsVisible, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineChartView

public LineChartView(Chart chart)
Creates a new LineChartView instance for the specified Chart.
Method Detail

updateDrawables

public void updateDrawables()
Used internally to update the DrawableLines of this LineChartView.
Overrides:
updateDrawables in class ChartView

paint

public void paint(java.awt.Graphics g)
Draws the Line Chart in the specified Graphics context.
Overrides:
paint in class ChartView

getGrid

public Grid getGrid()
Gets the Grid instance used by this BubbleChartView.
Returns:
The Grid instance used by this BubbleChartView.

pointDataFromPoint

public PointData pointDataFromPoint(java.awt.Point p)
Determines the PointData instance associated with the specified Point.
Returns:
The PointData instance associated with the specified Point.

lineFromPoint

public Line lineFromPoint(java.awt.Point p)
Determines the Line instance associated with the specified Point.
Returns:
The Line instance associated with the specified Point.

setModel

public void setModel(ChartModel model)
              throws java.lang.IllegalArgumentException
Description copied from class: ChartView
Sets the data Model of this ChartView. Throws IllegalArgumentException if the ChartModel passed as a parameter is not appropriate for this ChartView instance.
Overrides:
setModel in class ChartView

getModel

public LineChartModel getModel()

updateAggregates

public void updateAggregates()
Recalculates the minX, maxX, minY and maxY values.
Overrides:
updateAggregates in class ChartView

getMaxX

public float getMaxX()
Gets the max X coordinate in this LineChartView's data model.

getMinX

public float getMinX()
Gets the min X coordinate in this LineChartView's data model.

getMaxY

public float getMaxY()
Gets the max Y coordinate in this LineChartView's data model.

getMinY

public float getMinY()
Gets the min Y coordinate in this LineChartView's data model.