|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchart.Chart
public class Chart
A serializable representation of all relevant settings for a Chart which is displayed on a ChartFrame.
The data that was imported by the user can be displayed on a Chart. The Chart is built by as many vertical Axes as Parameters are present in the underlying the 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 to display 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 FormField Summary | |
---|---|
private java.awt.Color |
activeDesignColor
The active design color. |
private java.util.Vector<Axis> |
axes
The axes on this Chart. |
private java.awt.Color |
backGroundColor
The background color of this Chart. |
private DataSheet |
dataSheet
The data sheet that is displayed in this Chart. |
private int |
designLabelFontSize
The design label font size. |
private java.awt.Color |
filterColor
The color in which the Filters are shown on this Chart. |
private java.awt.Color |
filteredDesignColor
The filtered design color. |
private int |
filterHeight
The height of the triangles that represent the filter in pixels. |
private int |
filterWidth
The width of one half triangle that represents a filter in pixels. |
private java.awt.Point |
location
The location of the ChartFrame on the screen. |
(package private) static boolean |
printLog
Flag to enable debug message printing for this class. |
(package private) static long |
serialVersionUID
The version tracking unique identifier for Serialization. |
private boolean |
showDesignIDs
Specifies whether the design IDs next to the left-most Axis should be shown. |
private boolean |
showFilteredDesigns
Switch that enables displaying filtered designs. |
private java.awt.Dimension |
size
The size of this Chart. |
private int |
topMargin
The top margin of the Chart. |
Constructor Summary | |
---|---|
Chart(DataSheet dataSheet,
javax.swing.ProgressMonitor progressMonitor)
Instantiates a new chart. |
Method Summary | |
---|---|
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. |
void |
evaluateBoundsForAllDesigns()
Evaluate Axis bounds for all designs. |
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 |
getAxisMaxHeight()
Gets the largest height of all Axis heights. |
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. |
DataSheet |
getDataSheet()
Gets the data sheet. |
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. |
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. |
java.awt.Point |
getLocation()
Gets the location of this Chart on the Screen. |
int |
getMaxAxisLabelFontSize()
Gets the largest Axis label font size on this Chart. |
java.awt.Dimension |
getSize()
Gets the size of this Chart. |
int |
getTopMargin()
Gets the top margin. |
int |
getWidth()
Determines the width of this Chart. |
boolean |
isShowDesignIDs()
Checks if design IDs should be shown. |
boolean |
isShowFilteredDesigns()
Checks whether filtered designs should be shown. |
private void |
log(java.lang.String message)
Prints debug information to stdout when printLog is set to true. |
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 |
setAxisHeight(int height)
Sets the height of this Chart by setting the heigh of all Axes. |
void |
setAxisWidth(int width)
Sets the axis width. |
void |
setBackGroundColor(java.awt.Color backGroundColor)
Sets the back ground color. |
void |
setDataSheet(DataSheet dataSheet)
Sets the data sheet. |
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 |
setLocation(java.awt.Point location)
Sets the location of this Chart on the Screen.. |
void |
setShowDesignIDs(boolean showDesignIDs)
Specifies whether design IDs should be shown. |
void |
setShowFilteredDesigns(boolean showFilteredDesigns)
Specifies whether filtered designs should be shown. |
void |
setSize(java.awt.Dimension size)
Sets the size of this Chart.. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final long serialVersionUID
static final boolean printLog
private java.awt.Point location
ChartFrame
on the screen.
private java.awt.Dimension size
private DataSheet dataSheet
DataSheet
private int topMargin
private java.util.Vector<Axis> axes
For each Parameter in the DataSheet there is exactly one Axis.
private java.awt.Color backGroundColor
private int designLabelFontSize
The design IDs are shown as labels next to the left-most Axis. This field specifies the font size for these labels.
private java.awt.Color activeDesignColor
All Designs that are not filtered and do not belong to any Clusters are displayed in this Color. New Clusters are also given this Color by default.
Design
,
Cluster
private java.awt.Color filteredDesignColor
All Designs that are filtered are displayed in this Color.
This is only relevant if showFilteredDesigns
is true.
Design
private java.awt.Color filterColor
private boolean showDesignIDs
private boolean showFilteredDesigns
If this switch is true, designs are displayed in the Color specified by filteredDesignColor
private int filterHeight
private int filterWidth
Constructor Detail |
---|
public Chart(DataSheet dataSheet, javax.swing.ProgressMonitor progressMonitor)
dataSheet
- the data sheetMethod Detail |
---|
public int getWidth()
public int getHeight()
public int getAxisMaxHeight()
public void setAxisHeight(int height)
height
- the height of this Chart by setting the heigh of all Axes..public int getAxisMaxWidth()
public void setAxisWidth(int width)
width
- the new axis widthpublic void setAxisColor(java.awt.Color color)
color
- the new axis colorpublic int getAxisTopPos()
public Axis getAxis(int index)
index
- the index
public Axis getAxis(java.lang.String parameterName)
parameterName
- the parameter name
public int getMaxAxisLabelFontSize()
public int getActiveAxisCount()
public int getAxisCount()
public 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 DataSheet getDataSheet()
public void setDataSheet(DataSheet dataSheet)
dataSheet
- the new data sheetprivate void log(java.lang.String message)
message
- the messagepublic int getDesignLabelFontSize()
public void setDesignLabelFontSize(int designLabelFontSize)
designLabelFontSize
- the new design label font sizepublic java.awt.Color getDesignColor(Design design, boolean designActive)
design
- the designdesignActive
- the design active
public java.awt.Color getDefaultDesignColor(boolean designActive)
designActive
- the design active
public 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 getBackGroundColor()
public void setBackGroundColor(java.awt.Color backGroundColor)
backGroundColor
- the new back ground 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 java.awt.Color getFilterColor()
public void setFilterColor(java.awt.Color filterColor)
filterColor
- the new filter colorpublic int getTopMargin()
public void resetDisplaySettingsToDefault()
public 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()
public void evaluateBoundsForAllDesigns()
DataSheet
public java.awt.Dimension getSize()
public void setSize(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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |