chart
Class Chart

java.lang.Object
  extended by chart.Chart
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ParallelCoordinatesChart, ScatterChart2D

public abstract class Chart
extends java.lang.Object
implements java.io.Serializable

A serializable representation of all relevant settings for a chart which is displayed on a ChartFrame.

This class should be extended to model actual charts.

See Also:
ParallelCoordinatesChart, Serialized Form

Constructor Summary
Chart(DataSheet dataSheet, int id)
          Instantiates a new chart.
 
Method Summary
abstract  java.awt.Color getBackGroundColor()
          Gets the back ground color.
 DataSheet getDataSheet()
          Gets the data sheet.
 java.awt.Dimension getFrameSize()
          Gets the size that this chart's frame takes up on screen.
abstract  int getHeight()
          Determines the height of this Chart.
 int getID()
          Gets the id.
 java.awt.Point getLocation()
          Gets the location of this Chart on the Screen.
abstract  java.lang.String getTitle()
          Gets the title.
abstract  int getWidth()
          Determines the width of this Chart.
abstract  void resetDisplaySettingsToDefault()
          Reset display settings to default.
abstract  void setBackGroundColor(java.awt.Color backGroundColor)
          Sets the back ground color.
 void setDataSheet(DataSheet dataSheet)
          Sets the data sheet.
 void setFrameSize(java.awt.Dimension size)
          Sets the size that this chart's frame takes up on screen.chart.getWidth() - chart.getScatterPlot2D().getMargin();
 void setLocation(java.awt.Point location)
          Sets the location of this Chart on the Screen..
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chart

public Chart(DataSheet dataSheet,
             int id)
Instantiates a new chart.

Parameters:
dataSheet - the data sheet
Method Detail

getTitle

public abstract java.lang.String getTitle()
Gets the title.

Returns:
the title

getID

public int getID()
Gets the id.

Returns:
the id

getWidth

public abstract int getWidth()
Determines the width of this Chart.

Returns:
the width of this Chart

getHeight

public abstract int getHeight()
Determines the height of this Chart.

Returns:
the height of this Chart

getDataSheet

public DataSheet getDataSheet()
Gets the data sheet.

Returns:
the data sheet

setDataSheet

public void setDataSheet(DataSheet dataSheet)
Sets the data sheet.

Parameters:
dataSheet - the new data sheet

getBackGroundColor

public abstract java.awt.Color getBackGroundColor()
Gets the back ground color.

Returns:
the back ground color

setBackGroundColor

public abstract void setBackGroundColor(java.awt.Color backGroundColor)
Sets the back ground color.

Parameters:
backGroundColor - the new back ground color

getFrameSize

public java.awt.Dimension getFrameSize()
Gets the size that this chart's frame takes up on screen.

Returns:
the size of this Chart.

setFrameSize

public void setFrameSize(java.awt.Dimension size)
Sets the size that this chart's frame takes up on screen.chart.getWidth() - chart.getScatterPlot2D().getMargin();

Parameters:
size - the new size of this Chart.

getLocation

public java.awt.Point getLocation()
Gets the location of this Chart on the Screen.

Returns:
the location of this Chart on the Screen.

setLocation

public void setLocation(java.awt.Point location)
Sets the location of this Chart on the Screen..

Parameters:
location - the new location of this Chart on the Screen.

resetDisplaySettingsToDefault

public abstract void resetDisplaySettingsToDefault()
Reset display settings to default.