chart
Class ScatterPlot2D

java.lang.Object
  extended by chart.Plot
      extended by chart.ScatterPlot2D
All Implemented Interfaces:
java.io.Serializable

public class ScatterPlot2D
extends Plot

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

See Also:
ChartFrame, Serialized Form

Field Summary
static int AXIS_LABEL_PADDING
          The padding for axis labels
static int SHOW_ALL_DESIGNS
          Show all designs.
static int SHOW_DESIGNS_ACTIVE_IN_PARALLEL_CHART
          Show all designs that are not filtered on a given @link chart.ParallelCoordinatesChart.
static int SHOW_SELECTED_DESIGNS
          Show all designs that are not selected in the data table.
static java.lang.String TIC_LABEL_FORMAT
          the tic label format
static int TIC_LABEL_PADDING
          The padding for tic labels
 
Constructor Summary
ScatterPlot2D(DataSheet dataSheet, boolean showDecorations)
          Instantiates a new 2D scatter plot.
 
Method Summary
 void autofitX(DataSheet dataSheet)
          Autofits the x axis.
 void autofitY(DataSheet dataSheet)
          Autofits the y axis.
 java.awt.Color getActiveDesignColor()
          Gets the active design color.
 int getAxisLabelFontSizeX()
          Gets the x axis label font size.
 int getAxisLabelFontSizeY()
          Gets the y axis label font size.
 java.awt.Color getDecorationsColor()
          Gets the decorations color.
 java.awt.Color getDesignColor(Design design)
          Gets the design color.
 int getDisplayedDesignSelectionMode()
          Gets the displayed design selection mode.
 int getDotRadius()
          Gets the dot radius.
 double getMaxX()
          Gets the max value for the x-axis.
 double getMaxY()
          Gets the max value for the y-axis.
 double getMinX()
          Gets the min value for the x-axis.
 double getMinY()
          Gets the min value for the y-axis..
 ParallelCoordinatesChart getParallelCoordinatesChartForFiltering()
          Gets the parallel coordinates chart for filtering.
 Parameter getParameterForXAxis()
          Gets the parameter for the x axis.
 Parameter getParameterForYAxis()
          Gets the parameter for the y axis.
 int getPlotAreaDistanceToBottom()
          Gets the plot area distance to the bottom border
 int getPlotAreaDistanceToLeft(int ticLabelOffset)
          Gets the plot area distance to the left border
 int getPlotAreaDistanceToRight()
          Gets the plot area distance to the right border
 int getPlotAreaDistanceToTop()
          Gets the plot area distance to the top border
 java.awt.Color getSelectedDesignColor()
          Gets the selected design color.
 int getTicCountX()
          Gets the number of tics on the x axis.
 int getTicCountY()
          Gets the number of tics on the y axis.
 int getTicLabelFontSizeX()
          Gets the x axis tic label font size.
 int getTicLabelFontSizeY()
          Gets the y axis tic label font size.
 int getTicSize()
          Gets the tic size.
 boolean isAutofitX()
          Gets the autofit state for the x axis.
 boolean isAutofitY()
          Gets the autofit state for the y axis..
 boolean isShowDecorations()
          Gets the show decorations switch.
 void resetDisplaySettingsToDefault()
          Reset display settings to default.
 void setActiveDesignColor(java.awt.Color activeDesignColor)
          Sets the active design color.
 void setAutofitX(boolean autofitX)
          Sets the autofit state for the x axis.
 void setAutofitY(boolean autofitY)
          Sets the autofit state for the y axis..
 void setAxisLabelFontSizeX(int axisLabelFontSizeX)
          Sets the x axis label font size..
 void setAxisLabelFontSizeY(int axisLabelFontSizeY)
          Sets the y axis label font size..
 void setDecorationsColor(java.awt.Color decorationsColor)
          Sets the decorations color.
 void setDisplayedDesignSelectionMode(int displayedDesignSelectionMode)
          Sets the displayed design selection mode..
 void setDotRadius(int dotRadius)
          Sets the dot radius.
 void setMaxX(double maxX)
          Sets the max value for the x-axis..
 void setMaxY(double maxY)
          Sets the max value for the y-axis.
 void setMinX(double minX)
          Sets the min value for the x-axis.
 void setMinY(double minY)
          Sets the min value for the y-axis.
 void setParallelCoordinatesChartForFiltering(ParallelCoordinatesChart parallelCoordinatesChartForFiltering)
          Sets the the parallel coordinates chart for filtering.
 void setParameterForXAxis(Parameter parameterForXAxis)
          Sets the parameter for the x axis.
 void setParameterForYAxis(Parameter parameterForYAxis)
          Sets the parameter for the y axis..
 void setSelectedDesignColor(java.awt.Color selectedDesignColor)
          Sets the selected design color..
 void setTicCountX(int ticCountX)
          Sets the number of tics on the x axis.
 void setTicCountY(int ticCountY)
          Sets the number of tics on the y axis.
 void setTicLabelFontSizeX(int ticLabelFontSizeX)
          Sets the x axis tic label font size.
 void setTicLabelFontSizeY(int ticLabelFontSizeY)
          Sets the y axis tic label font size.
 
Methods inherited from class chart.Plot
getBackGroundColor, getDataSheet, getMargin, setBackGroundColor, setDataSheet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOW_ALL_DESIGNS

public static final int SHOW_ALL_DESIGNS
Show all designs.

See Also:
Constant Field Values

SHOW_SELECTED_DESIGNS

public static final int SHOW_SELECTED_DESIGNS
Show all designs that are not selected in the data table.

See Also:
Constant Field Values

SHOW_DESIGNS_ACTIVE_IN_PARALLEL_CHART

public static final int SHOW_DESIGNS_ACTIVE_IN_PARALLEL_CHART
Show all designs that are not filtered on a given @link chart.ParallelCoordinatesChart.

See Also:
Constant Field Values

AXIS_LABEL_PADDING

public static final int AXIS_LABEL_PADDING
The padding for axis labels

See Also:
Constant Field Values

TIC_LABEL_PADDING

public static final int TIC_LABEL_PADDING
The padding for tic labels

See Also:
Constant Field Values

TIC_LABEL_FORMAT

public static final java.lang.String TIC_LABEL_FORMAT
the tic label format

See Also:
Constant Field Values
Constructor Detail

ScatterPlot2D

public ScatterPlot2D(DataSheet dataSheet,
                     boolean showDecorations)
Instantiates a new 2D scatter plot.

Parameters:
dataSheet - the data sheet
showDecorations - show decorations yes / no
Method Detail

getDesignColor

public java.awt.Color getDesignColor(Design design)
Gets the design color.

Parameters:
design - the design
Returns:
the design color

getActiveDesignColor

public java.awt.Color getActiveDesignColor()
Gets the active design color.

Returns:
the default design color

setActiveDesignColor

public void setActiveDesignColor(java.awt.Color activeDesignColor)
Sets the active design color.

Parameters:
activeDesignColor - the new active design color

getDisplayedDesignSelectionMode

public int getDisplayedDesignSelectionMode()
Gets the displayed design selection mode.

Returns:
the displayed design selection mode.

setDisplayedDesignSelectionMode

public void setDisplayedDesignSelectionMode(int displayedDesignSelectionMode)
Sets the displayed design selection mode..

Parameters:
displayedDesignSelectionMode - the new displayed design selection mode.

getParallelCoordinatesChartForFiltering

public ParallelCoordinatesChart getParallelCoordinatesChartForFiltering()
Gets the parallel coordinates chart for filtering.

Returns:
the parallel coordinates chart for filtering

setParallelCoordinatesChartForFiltering

public void setParallelCoordinatesChartForFiltering(ParallelCoordinatesChart parallelCoordinatesChartForFiltering)
Sets the the parallel coordinates chart for filtering.

Parameters:
parallelCoordinatesChartForFiltering - the new the parallel coordinates chart for filtering

getDotRadius

public int getDotRadius()
Gets the dot radius.

Returns:
the dot radius

setDotRadius

public void setDotRadius(int dotRadius)
Sets the dot radius.

Parameters:
dotRadius - the new dot radius

getSelectedDesignColor

public java.awt.Color getSelectedDesignColor()
Gets the selected design color.

Returns:
the selected design color.

setSelectedDesignColor

public void setSelectedDesignColor(java.awt.Color selectedDesignColor)
Sets the selected design color..

Parameters:
selectedDesignColor - the new selected design color.

getParameterForXAxis

public Parameter getParameterForXAxis()
Gets the parameter for the x axis.

Returns:
the parameter for the x axis.

setParameterForXAxis

public void setParameterForXAxis(Parameter parameterForXAxis)
Sets the parameter for the x axis.

Parameters:
parameterForXAxis - the new parameter for the x axis.

getParameterForYAxis

public Parameter getParameterForYAxis()
Gets the parameter for the y axis.

Returns:
the parameter for the y axis.

setParameterForYAxis

public void setParameterForYAxis(Parameter parameterForYAxis)
Sets the parameter for the y axis..

Parameters:
parameterForYAxis - the new parameter for the y axis.

getDecorationsColor

public java.awt.Color getDecorationsColor()
Gets the decorations color.

Returns:
the decorations color.

setDecorationsColor

public void setDecorationsColor(java.awt.Color decorationsColor)
Sets the decorations color.

Parameters:
decorationsColor - the new decorations color.

isAutofitX

public boolean isAutofitX()
Gets the autofit state for the x axis.

Returns:
the autofit state for the x axis.

setAutofitX

public void setAutofitX(boolean autofitX)
Sets the autofit state for the x axis.

Parameters:
autofitX - the new autofit state for the x axis.

isAutofitY

public boolean isAutofitY()
Gets the autofit state for the y axis..

Returns:
the autofit state for the y axis.

setAutofitY

public void setAutofitY(boolean autofitY)
Sets the autofit state for the y axis..

Parameters:
autofitY - the new autofit state for the y axis.

autofitX

public void autofitX(DataSheet dataSheet)
Autofits the x axis.


autofitY

public void autofitY(DataSheet dataSheet)
Autofits the y axis.


getMinX

public double getMinX()
Gets the min value for the x-axis.

Returns:
the min value for the x-axis.

setMinX

public void setMinX(double minX)
Sets the min value for the x-axis.

Parameters:
minX - the new min value for the x-axis.

getMaxX

public double getMaxX()
Gets the max value for the x-axis.

Returns:
the max value for the x-axis.

setMaxX

public void setMaxX(double maxX)
Sets the max value for the x-axis..

Parameters:
maxX - the new max value for the x-axis.

getMinY

public double getMinY()
Gets the min value for the y-axis..

Returns:
the min value for the y-axis.

setMinY

public void setMinY(double minY)
Sets the min value for the y-axis.

Parameters:
minY - the new min value for the y-axis.

getMaxY

public double getMaxY()
Gets the max value for the y-axis.

Returns:
the max value for the y-axis.

setMaxY

public void setMaxY(double maxY)
Sets the max value for the y-axis.

Parameters:
maxY - the new max value for the y-axis.

getTicCountX

public int getTicCountX()
Gets the number of tics on the x axis.

Returns:
the number of tics on the x axis.

setTicCountX

public void setTicCountX(int ticCountX)
Sets the number of tics on the x axis.

Parameters:
ticCountX - the new number of tics on the x axis.

getTicCountY

public int getTicCountY()
Gets the number of tics on the y axis.

Returns:
the number of tics on the y axis.

getTicSize

public int getTicSize()
Gets the tic size.

Returns:
this tic size.

setTicCountY

public void setTicCountY(int ticCountY)
Sets the number of tics on the y axis.

Parameters:
ticCountY - the new number of tics on the y axis.

getAxisLabelFontSizeX

public int getAxisLabelFontSizeX()
Gets the x axis label font size.

Returns:
the axis label font size.

setAxisLabelFontSizeX

public void setAxisLabelFontSizeX(int axisLabelFontSizeX)
Sets the x axis label font size..

Parameters:
axisLabelFontSizeX - the new axis label font size.

getAxisLabelFontSizeY

public int getAxisLabelFontSizeY()
Gets the y axis label font size.

Returns:
the axis label font size.

setAxisLabelFontSizeY

public void setAxisLabelFontSizeY(int axisLabelFontSizeY)
Sets the y axis label font size..

Parameters:
axisLabelFontSizeY - the new axis label font size.

getTicLabelFontSizeX

public int getTicLabelFontSizeX()
Gets the x axis tic label font size.

Returns:
the tic label font size.

setTicLabelFontSizeX

public void setTicLabelFontSizeX(int ticLabelFontSizeX)
Sets the x axis tic label font size.

Parameters:
ticLabelFontSizeX - the new tic label font size.

getTicLabelFontSizeY

public int getTicLabelFontSizeY()
Gets the y axis tic label font size.

Returns:
the tic label font size.

setTicLabelFontSizeY

public void setTicLabelFontSizeY(int ticLabelFontSizeY)
Sets the y axis tic label font size.

Parameters:
ticLabelFontSizeY - the new tic label font size.

getPlotAreaDistanceToLeft

public int getPlotAreaDistanceToLeft(int ticLabelOffset)
Gets the plot area distance to the left border

Returns:
the plot area distance to the left border

getPlotAreaDistanceToRight

public int getPlotAreaDistanceToRight()
Gets the plot area distance to the right border

Returns:
the plot area distance to the right border

getPlotAreaDistanceToTop

public int getPlotAreaDistanceToTop()
Gets the plot area distance to the top border

Returns:
the plot area distance to the top border

getPlotAreaDistanceToBottom

public int getPlotAreaDistanceToBottom()
Gets the plot area distance to the bottom border

Returns:
the plot area distance to the bottom border

isShowDecorations

public boolean isShowDecorations()
Gets the show decorations switch.

Returns:
true, if axes etc. should be displayed

resetDisplaySettingsToDefault

public void resetDisplaySettingsToDefault()
Reset display settings to default.

Specified by:
resetDisplaySettingsToDefault in class Plot