chart
public class ParallelCoordinatesChart extends Chart implements java.io.Serializable
The data that was imported by the user can be displayed on a Parallel coordinates Chart. The Parallel coordinates Chart is built by as many vertical Axes as Parameters are present in the underlying DataSheet and each Axis represents one of these Parameters.
The Designs (or, in other words, rows of the data table) are represented by lines that connect points on the Axes. Each Design's line crosses each Axis exactly at the ordinate that corresponds to the value for the respective Parameter in the Design. This allows for displaying the whole DataSheet in just one Chart, irrespective of how many dimensions it has.
The Chart also provides interactivity through a pair of draggable Filters that are present on each Axis. Depending on the positions of these filters, certain Designs are filtered from the display. This means that they are either displayed in a different color or hidden completely.
ChartFrame
,
Axis
,
Filter
,
Parameter
,
DataSheet
,
Design
,
Serialized FormConstructor and Description |
---|
ParallelCoordinatesChart(DataSheet dataSheet,
javax.swing.ProgressMonitor progressMonitor,
int id)
Instantiates a new parallel coordinates chart.
|
Modifier and Type | Method and Description |
---|---|
void |
addAxis(Axis axis)
Adds the axis.
|
void |
addAxis(int index,
Axis axis)
Adds an Axis at the position index.
|
void |
applyAllFilters()
Apply all filters.
|
void |
autofitAllAxes()
Autofits all axes.
|
int |
getActiveAxisCount()
Gets the active axis count.
|
Axis |
getAxis(int index)
Gets an Axis by its index.
|
Axis |
getAxis(java.lang.String parameterName)
Gets an Axis by its name.
|
int |
getAxisCount()
Gets the axis count.
|
int |
getAxisHeight()
Gets the Axis height in pixels.
|
int |
getAxisLabelVerticalDistance()
Gets the vertical distance between two axis labels that are vertically offset to prevent overlap.
|
int |
getAxisMaxWidth()
Gets the largest width of all Axis widths.
|
int |
getAxisTopPos()
Gets the position in pixels of the top of the Axes of this Chart.
|
java.awt.Color |
getBackGroundColor()
Gets the back ground color.
|
java.awt.Color |
getDefaultDesignColor(boolean designActive)
Gets the default design color.
|
java.awt.Color |
getDesignColor(Design design,
boolean designActive)
Gets the design color.
|
int |
getDesignLabelFontSize()
Gets the design label font size.
|
int |
getDesignLineThickness(Design design)
Gets the design line thickness.
|
java.awt.Color |
getFilterColor()
Gets the filter color.
|
int |
getFilterHeight()
Gets the filter height.
|
int |
getFilterWidth()
Gets the filter width.
|
int |
getHeight()
Determines the height of this Chart.
|
int |
getLineThickness()
Gets the line thickness.
|
int |
getMaxAxisLabelFontSize()
Gets the largest Axis label font size on this Chart.
|
java.awt.Color |
getSelectedDesignColor()
Sets the selected design color.
|
int |
getSelectedDesignsLineThickness()
Gets the selected design line thickness.
|
java.lang.String |
getTitle()
Gets the title.
|
int |
getTopMargin()
Gets the top margin.
|
int |
getWidth()
Determines the width of this Chart.
|
void |
incrementAxisWidth(int deltaWidth)
Changes the axis width of all axes by the same amount.
|
boolean |
isShowDesignIDs()
Checks if design IDs should be shown.
|
boolean |
isShowFilteredDesigns()
Checks whether filtered designs should be shown.
|
boolean |
isShowOnlySelectedDesigns()
Checks whether only selected designs should be shown.
|
boolean |
isVerticallyOffsetAxisLabels()
Checks, whether axis labels should be vertically offset.
|
void |
moveAxis(int oldIndex,
int newIndex)
Function to reorder the axes in the chart
|
void |
removeAxis(int index)
Removes the axis with index index.
|
void |
removeAxis(java.lang.String parameterName)
Removes the axis with name name.
|
void |
resetDisplaySettingsToDefault()
Reset display settings to default.
|
void |
setActiveDesignColor(java.awt.Color activeDesignColor)
Sets the active design color.
|
void |
setAxisColor(java.awt.Color color)
Sets the axis color.
|
void |
setAxisLabelVerticalDistance(int axisLabelVerticalDistance)
Sets the vertical distance between two axis labels that are vertically offset to prevent overlap.
|
void |
setAxisWidth(int width)
Sets the axis width.
|
void |
setBackGroundColor(java.awt.Color backGroundColor)
Sets the back ground color.
|
void |
setDesignLabelFontSize(int designLabelFontSize)
Sets the design label font size.
|
void |
setFilterColor(java.awt.Color filterColor)
Sets the filter color.
|
void |
setFilteredDesignColor(java.awt.Color filteredDesignColor)
Sets the filtered design color.
|
void |
setFilterHeight(int filterHeight)
Sets the filter height.
|
void |
setFilterWidth(int filterWidth)
Sets the filter width.
|
void |
setLineThickness(int lineThickness)
Sets the line thickness.
|
void |
setSelectedDesignColor(java.awt.Color selectedDesignColor)
Sets the selected design color.
|
void |
setSelectedDesignsLineThickness(int selectedDesignsLineThickness)
Sets the selected design line thickness.
|
void |
setShowDesignIDs(boolean showDesignIDs)
Specifies whether design IDs should be shown.
|
void |
setShowFilteredDesigns(boolean showFilteredDesigns)
Specifies whether filtered designs should be shown.
|
void |
setShowOnlySelectedDesigns(boolean showOnlySelectedDesigns)
Specifies whether only selected designs should be shown.
|
void |
setVerticallyOffsetAxisLabels(boolean verticallyOffsetAxisLabels)
Sets whether axis labels should be vertically offset.
|
getDataSheet, getFrameSize, getID, getLocation, setDataSheet, setFrameSize, setLocation
public ParallelCoordinatesChart(DataSheet dataSheet, javax.swing.ProgressMonitor progressMonitor, int id)
dataSheet
- the data sheetpublic java.lang.String getTitle()
public int getWidth()
public int getHeight()
public int getAxisMaxWidth()
public void setAxisWidth(int width)
width
- the new axis widthpublic void incrementAxisWidth(int deltaWidth)
deltaWidth
- the axis width incrementpublic void setAxisColor(java.awt.Color color)
color
- the new axis colorpublic int getAxisTopPos()
public Axis getAxis(int index)
index
- the indexpublic Axis getAxis(java.lang.String parameterName)
parameterName
- the parameter namepublic int getMaxAxisLabelFontSize()
public int getActiveAxisCount()
public int getAxisCount()
public int getAxisLabelVerticalDistance()
public void setAxisLabelVerticalDistance(int axisLabelVerticalDistance)
axisLabelVerticalDistance
- the vertical axis label distancepublic boolean isVerticallyOffsetAxisLabels()
public void setVerticallyOffsetAxisLabels(boolean verticallyOffsetAxisLabels)
verticallyOffsetAxisLabels
- specifies whether designs should be shownpublic void addAxis(Axis axis)
axis
- the axispublic void addAxis(int index, Axis axis)
index
- the index where the Axis should be addedaxis
- the Axis to be addedpublic void removeAxis(int index)
index
- the index of the Axis to be removedpublic void removeAxis(java.lang.String parameterName)
parameterName
- the name of the parameter for which the Axis should be removedpublic void moveAxis(int oldIndex, int newIndex)
oldIndex
- the index of the axis to be movednewIndex
- the target index for the axis to be movedpublic int getAxisHeight()
public int getDesignLabelFontSize()
public void setDesignLabelFontSize(int designLabelFontSize)
designLabelFontSize
- the new design label font sizepublic int getLineThickness()
public void setLineThickness(int lineThickness)
lineThickness
- the new line thicknesspublic java.awt.Color getDesignColor(Design design, boolean designActive)
design
- the designdesignActive
- the design activepublic int getDesignLineThickness(Design design)
design
- the designpublic int getSelectedDesignsLineThickness()
public void setSelectedDesignsLineThickness(int selectedDesignsLineThickness)
selectedDesignsLineThickness
- the selected design line thicknesspublic java.awt.Color getDefaultDesignColor(boolean designActive)
designActive
- the design activepublic void setActiveDesignColor(java.awt.Color activeDesignColor)
activeDesignColor
- the new active design colorpublic void setFilteredDesignColor(java.awt.Color filteredDesignColor)
filteredDesignColor
- the new filtered design colorpublic java.awt.Color getSelectedDesignColor()
public void setSelectedDesignColor(java.awt.Color selectedDesignColor)
selectedDesignColor
- the new selected design colorpublic boolean isShowDesignIDs()
public void setShowDesignIDs(boolean showDesignIDs)
showDesignIDs
- Specifies whether design IDs should be shown.public boolean isShowFilteredDesigns()
public void setShowFilteredDesigns(boolean showFilteredDesigns)
showFilteredDesigns
- specifies whether filtered designs should be shown.public boolean isShowOnlySelectedDesigns()
public void setShowOnlySelectedDesigns(boolean showOnlySelectedDesigns)
showOnlySelectedDesigns
- specifies whether only selected designs should be shown.public java.awt.Color getFilterColor()
public void setFilterColor(java.awt.Color filterColor)
filterColor
- the new filter colorpublic int getTopMargin()
public void resetDisplaySettingsToDefault()
resetDisplaySettingsToDefault
in class Chart
public java.awt.Color getBackGroundColor()
getBackGroundColor
in class Chart
public void setBackGroundColor(java.awt.Color backGroundColor)
setBackGroundColor
in class Chart
backGroundColor
- the new back ground colorpublic int getFilterHeight()
public void setFilterHeight(int filterHeight)
filterHeight
- the new filter heightpublic int getFilterWidth()
public void setFilterWidth(int filterWidth)
filterWidth
- the new filter widthpublic void applyAllFilters()
public void autofitAllAxes()