com.odesys.chart.bubblechart
Class BubbleChartView

java.lang.Object
  |
  +--com.odesys.chart.ChartView
        |
        +--com.odesys.chart.bubblechart.BubbleChartView

public class BubbleChartView
extends ChartView

BubbleChartView draws a Bubble Chart in the Graphics context provided by its parent Chart Component.


Fields inherited from class com.odesys.chart.ChartView
m_chart
 
Constructor Summary
BubbleChartView(Chart chart)
          Creates a new BubbleChartView instance for the specified Chart.
 
Method Summary
 BubbleData bubbleDataFromPoint(java.awt.Point point)
          Determines the BubbleData instance associated with the specified Point.
 Grid getGrid()
          Gets the Grid instance used by this BubbleChartView.
 float getMaxValue()
          Gets the max value in this BubbleChartView's data model.
 float getMaxX()
          Gets the max X coordinate in this BubbleChartView's data model.
 float getMaxY()
          Gets the max Y coordinate in this BubbleChartView's data model.
 float getMinX()
          Gets the min X coordinate in this BubbleChartView's data model.
 float getMinY()
          Gets the min Y coordinate in this BubbleChartView's data model.
 BubbleChartModel getModel()
           
 int getRadius(float value)
          Calculates the absolute radius of a bubble with the specified value.
 void paint(java.awt.Graphics g)
          Draws the Bubble Chart in the specified Graphics context.
 void setModel(ChartModel model)
          Sets the data Model of this ChartView.
 void updateAggregates()
          Recalculates the aggregate values of the model.
 void updateDrawables()
          Used internally to update the DrawableBubbles of this BubbleChartView.
 
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

BubbleChartView

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

getRadius

public int getRadius(float value)
Calculates the absolute radius of a bubble with the specified value.
Returns:
The absolute radius of a bubble with the specified value.

updateAggregates

public void updateAggregates()
Recalculates the aggregate values of the model.
Overrides:
updateAggregates in class ChartView

updateDrawables

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

paint

public void paint(java.awt.Graphics g)
Draws the Bubble 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.

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 BubbleChartModel getModel()

bubbleDataFromPoint

public BubbleData bubbleDataFromPoint(java.awt.Point point)
Determines the BubbleData instance associated with the specified Point.
Returns:
The BubbleData instance associated with the specified Point.

getMaxX

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

getMinX

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

getMaxY

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

getMinY

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

getMaxValue

public float getMaxValue()
Gets the max value in this BubbleChartView's data model.