chart
public class Axis extends java.lang.Object implements java.io.Serializable
An Axis is used to represent a Parameter. Each Axis has an upper Filter and a lower Filter, which are represented by triangles and can be dragged by the user. The positions of the Filters determine which Designs are displayed, and which are not.
ParallelCoordinatesChart
,
Filter
,
Parameter
,
Design
,
Serialized FormConstructor and Description |
---|
Axis(DataSheet dataSheet,
ParallelCoordinatesChart chart,
Parameter parameter)
Instantiates a new Axis.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilters()
Adds the Filters.
|
void |
applyFilters()
Apply filters to designs
|
void |
autofit()
Sets the Axis display range such that all Designs lie within the upper and the
lower bound of this Axis.
|
java.awt.Color |
getAxisColor()
Gets the axis color.
|
java.awt.Color |
getAxisLabelFontColor()
Gets the axis label font color.
|
int |
getAxisLabelFontSize()
Gets the axis label font size.
|
java.awt.Color |
getAxisTicLabelFontColor()
Gets the axis tic label font color.
|
ParallelCoordinatesChart |
getChart()
Gets the chart to which this Axis belongs.
|
DataSheet |
getDataSheet()
Gets the data sheet.
|
Filter |
getLowerFilter()
Gets the lower filter.
|
double |
getMax()
Gets the maximum value of this Axis.
|
Filter |
getMaximumFilter()
Gets the max filter.
|
double |
getMin()
Gets the minimum value of this Axis.
|
Filter |
getMinimumFilter()
Gets the min filter.
|
java.lang.String |
getName()
Gets the name of the Parameter represented by this Axis.
|
Parameter |
getParameter()
Gets the parameter represented by this Axis.
|
double |
getRange()
Gets the range of this Axis.
|
int |
getTicCount()
Gets the tic count.
|
int |
getTicLabelFontSize()
Gets the tic label font size.
|
java.lang.String |
getTicLabelFormat()
Gets the tic label format.
|
int |
getTicLength()
Gets the tic length in pixels.
|
Filter |
getUpperFilter()
Gets the upper filter.
|
int |
getWidth()
Gets the Axis width in pixels.
|
void |
initialiseSettings()
Initialise display settings.
|
boolean |
isActive()
Checks if this Axis is active.
|
boolean |
isAutoFit()
Checks if this axis is autofitted.
|
boolean |
isAxisInverted()
Checks if this Axis is inverted.
|
boolean |
isFilterInverted()
Checks if the Filters are inverted.
|
void |
resetFilters()
Resets both filters to the Axis min and max values..
|
void |
resetSettingsToDefault()
Reset display settings to default.
|
void |
setActive(boolean active)
Specifies whether this Axis is active.
|
void |
setAutoFit(boolean autoFit)
Specifies whether this Axis should be autofitted.
|
void |
setAxisColor(java.awt.Color axisColor)
Sets the axis color.
|
void |
setAxisInverted(boolean axisInverted)
Specifies whether this axis is inverted.
|
void |
setAxisLabelFontColor(java.awt.Color axisLabelFontColor)
Sets the axis label font color.
|
void |
setAxisLabelFontSize(int axisLabelFontSize)
Sets the axis label font size.
|
void |
setDataSheet(DataSheet dataSheet)
Sets the data sheet.
|
void |
setFilterAsNewRange()
Takes the current filter values and sets them as new min and max values
|
void |
setFilterInverted(boolean filterInverted)
Specifies whether the filter should be inverted.
|
void |
setMax(double max)
Sets the maximum value of this Axis.
|
void |
setMin(double min)
Sets the minimum value of this Axis.
|
void |
setParameter(Parameter parameter)
Sets the parameter represented by this Axis.
|
void |
setTicCount(int ticCount)
Sets the tic count.
|
void |
setTicLabelFontColor(java.awt.Color ticLabelFontColor)
Sets the tic label font color.
|
void |
setTicLabelFontSize(int ticLabelFontSize)
Sets the tic label font size.
|
void |
setTicLabelFormat(java.lang.String ticLabelFormat)
Sets the tic label number format.
|
void |
setTicLength(int ticLength)
Sets the tic length in pixels.
|
void |
setWidth(int width)
Sets the Axis width in pixels.
|
public Axis(DataSheet dataSheet, ParallelCoordinatesChart chart, Parameter parameter)
dataSheet
- the data sheetchart
- the Chart to which this Axis belongsparameter
- the Parameter represented by this Axispublic void initialiseSettings()
public void resetSettingsToDefault()
public void addFilters()
public void autofit()
public java.awt.Color getAxisLabelFontColor()
public void setAxisLabelFontColor(java.awt.Color axisLabelFontColor)
axisLabelFontColor
- the new axis label font colorpublic int getAxisLabelFontSize()
public void setAxisLabelFontSize(int axisLabelFontSize)
axisLabelFontSize
- the new axis label font sizepublic double getMax()
public void setMax(double max)
max
- the new maximum value of this Axispublic double getMin()
public void setMin(double min)
min
- the new minimum value of this Axispublic double getRange()
public int getTicCount()
public void setTicCount(int ticCount)
ticCount
- the new tic countpublic int getTicLabelFontSize()
public void setTicLabelFontSize(int ticLabelFontSize)
ticLabelFontSize
- the new tic label font sizepublic java.lang.String getTicLabelFormat()
public void setTicLabelFormat(java.lang.String ticLabelFormat)
ticLabelFormat
- the new tic label number formatpublic int getTicLength()
public void setTicLength(int ticLength)
ticLength
- the new tic lengthpublic int getWidth()
public void setWidth(int width)
width
- the new Axis widthpublic boolean isActive()
public void setActive(boolean active)
active
- the new activepublic DataSheet getDataSheet()
public void setDataSheet(DataSheet dataSheet)
dataSheet
- the new data sheetpublic Parameter getParameter()
public void setParameter(Parameter parameter)
parameter
- the new parameter represented by this Axispublic java.awt.Color getAxisColor()
public void setAxisColor(java.awt.Color axisColor)
axisColor
- the new axis colorpublic java.awt.Color getAxisTicLabelFontColor()
public void setTicLabelFontColor(java.awt.Color ticLabelFontColor)
ticLabelFontColor
- the new tic label font colorpublic java.lang.String getName()
public Filter getLowerFilter()
public Filter getUpperFilter()
public Filter getMinimumFilter()
public Filter getMaximumFilter()
public ParallelCoordinatesChart getChart()
public boolean isFilterInverted()
public void setFilterInverted(boolean filterInverted)
filterInverted
- specifies whether the filter should be invertedpublic boolean isAxisInverted()
public void setAxisInverted(boolean axisInverted)
axisInverted
- Specifies whether this axis is inverted.public boolean isAutoFit()
public void setAutoFit(boolean autoFit)
autoFit
- specifies whether this Axis should be autofittedpublic void setFilterAsNewRange()
public void applyFilters()
Filter
public void resetFilters()
Filter