org.xdat.chart
public abstract class Chart extends java.lang.Object implements java.io.Serializable
This class should be extended to model actual charts.
ParallelCoordinatesChart
,
Serialized FormConstructor and Description |
---|
Chart(DataSheet dataSheet,
int id)
Instantiates a new chart.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isAntiAliasing()
Anti Aliasing Flag for Graphics
|
boolean |
isUseAlpha()
Alpha for Graphics
|
abstract void |
resetDisplaySettingsToDefault()
Reset display settings to default.
|
void |
setAntiAliasing(boolean antiAliasing)
Sets whether the chart should use anti-aliasing.
|
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..
|
void |
setUseAlpha(boolean useAlpha)
Sets whether the chart should use alpha.
|
public Chart(DataSheet dataSheet, int id)
dataSheet
- the data sheetid
- the idpublic abstract java.lang.String getTitle()
public int getID()
public abstract int getWidth()
public abstract int getHeight()
public DataSheet getDataSheet()
public void setDataSheet(DataSheet dataSheet)
dataSheet
- the new data sheetpublic abstract java.awt.Color getBackGroundColor()
public abstract void setBackGroundColor(java.awt.Color backGroundColor)
backGroundColor
- the new back ground colorpublic java.awt.Dimension getFrameSize()
public void setFrameSize(java.awt.Dimension size)
size
- the new size of this Chart.public java.awt.Point getLocation()
public void setLocation(java.awt.Point location)
location
- the new location of this Chart on the Screen.public abstract void resetDisplaySettingsToDefault()
public boolean isAntiAliasing()
public void setAntiAliasing(boolean antiAliasing)
antiAliasing
- the new anti-aliasing statepublic boolean isUseAlpha()
public void setUseAlpha(boolean useAlpha)
useAlpha
- the new alpha state