|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.pro.common.NFGraph
netcharts.pro.common.zoomable.NFZoomableChart
netcharts.pro.common.rectangular.NFDataChart
netcharts.pro.charts.box.NFBoxchart
public class NFBoxchart
Represents a box chart. Provides the ability to configure the chart via object manipulation or directly from CDL.
Field Summary | |
---|---|
static int |
BOX_ANIMATION_STYLE_FADE
Box animation style fade |
static int |
BOX_ANIMATION_STYLE_NONE
No box animation style |
static int |
BOX_ANIMATION_STYLE_SCALE
Box animation style scale |
static int |
BOX_WHISKER
Box whisker type |
static int |
EDA
EDA plot type |
static int |
GAUSSIAN
Gaussian plot type |
static int |
HORIZONTAL
Horizontal orientation |
static int |
LINE_WHISKER
Line whisker type |
static int |
LINEAR
Linear Box Symbol Width |
static int |
OFF
Off Box Symbol Width |
static int |
OVER
Over fence position |
static int |
PERCENTN
PercentN plot type |
static int |
SQRT
SQRT Box Symbol Width |
static int |
STANDARD
Standard plot type |
static int |
TENNINETY
Tenninety plot type |
static int |
UNDER
Under fence position |
static int |
VERTICAL
Vertical orientation |
Fields inherited from class netcharts.pro.common.rectangular.NFDataChart |
---|
GRID_ANIMATION_STYLE_FADE, GRID_ANIMATION_STYLE_NONE |
Fields inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
---|
NOZOOM, zoomActionsMap, ZOOMIN, ZOOMOUT |
Fields inherited from class netcharts.pro.common.NFGraph |
---|
ANTIALIAS_OFF, ANTIALIAS_ON, ANTIALIAS_ONDRAW, ANTIALIAS_ONTEXT, antiAliasModeMap, BAR, BAR3D, BOX, BUBBLE, COMBO, DIAGRAM, DIAL, DWELL_ANIMATION_STYLE_HIGHLIGHT, DWELL_ANIMATION_STYLE_NONE, FADE, HEATMAP, HIGHLIGHT, HISTOGRAM, LABEL_ANIMATION_STYLE_FADE, LABEL_ANIMATION_STYLE_NONE, LEGEND_ANIMATION_STYLE_FADE, LEGEND_ANIMATION_STYLE_NONE, LEGEND_DWELL_ANIMATION_STYLE_HIGHLIGHT, LEGEND_DWELL_ANIMATION_STYLE_NONE, LINE, MULTIPIE, PARETO, PIE, POLAR, RADAR, STOCK, STRIP, TIME, XY |
Constructor Summary | |
---|---|
NFBoxchart()
Constructs a default chart object. |
|
NFBoxchart(javax.swing.JPanel panel)
Constructs a chart object on the given JPanel. |
|
NFBoxchart(javax.swing.JPanel panel,
java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
|
NFBoxchart(java.util.Properties initProperties)
Constructs a chart object on the given JPanel. |
Method Summary | |
---|---|
void |
addBoxLimitLineStyle(NFLine lineStyle)
Adds a style definition to the set of limit line styles. |
void |
addBoxSet(NFBoxSet boxSet)
Adds a box set to the current list of boxsets. |
void |
addMeanActiveLabel(NFActiveLabel activeLabel)
Adds a single active label to the list of mean active labels for this set. |
NFVector |
getBoxActiveLabels()
Get active labels to be associated with each data label. |
int |
getBoxAnimationStyle()
Get the box animation style. |
boolean |
getBoxFences()
Returns whether fences will be drawn at the ends of the Inter Quartile Range. |
int |
getBoxHeight()
Gets the height (in pixels) for each box displayed. |
NFVector |
getBoxLimitLines()
Return the values of the limit lines. |
NFVector |
getBoxLimitLineStyle()
Return the styles of the limit lines. |
NFBoxSeries |
getBoxSeries()
Get the box series. |
int |
getBoxSymbolWidth()
Get box symbol width. |
int |
getBoxWidth()
Get box width. |
boolean |
getDataIsSummary()
Gets if the data provided is already in summary form. |
boolean |
getDataIsSummaryWithMean()
Gets if the data provided is already in summary with mean form. |
NFVector |
getDataLabels()
Get the labels to be displayed under each box. |
java.awt.Color |
getDataPointColor()
Get the color of the data points. |
boolean |
getDataPointJitter()
Returns whether data point jitter is enabled. |
java.lang.String |
getDefaultData()
Returns a string of default data |
boolean |
getDrawFences()
Returns whether fences will be drawn on the chart. |
int |
getFencePosition()
Gets the fence position, whether the fences that are within the IQR over or under the box. |
int |
getLayout()
Get box orientation, either VERTICAL (default) or HORIZONTAL |
NFVector |
getMeanActiveLabels()
Returns the mean active labels for this set |
java.awt.Color |
getMeanColor()
Get the base color of the mean line and symbols. |
NFLine |
getMeanLine()
Gets the style of the mean line. |
java.awt.Color |
getMedianColor()
Get the color of the median line. |
int |
getMinimumDataPoints()
Gets the minimum number of allowable data points. |
boolean |
getNaturalDisplayOrder()
Returns whether show to show the data from left to right. |
java.awt.Color |
getOutlierColor()
Get the color of the outliers. |
int |
getPercentileN()
Gets the percentile to use when in PERCENTN mode. |
int |
getPlotType()
Gets the plot type, one of STANDARD (default), EDA, GAUSSIAN or TENNINETY . |
int |
getRelativeBoxSymbolWidth()
Returns the relative symbol box width value. |
boolean |
getShowDataPoints()
Returns whether show the data points. |
int |
getType()
Gets the chart type. |
int |
getWhiskerType()
Gets the whisker type, either BOX_WHISKER (default) or LINE_WHISKER . |
void |
resetState()
Resets all of the parameter values to their initial state. |
void |
setBoxActiveLabels(NFVector boxActiveLabels)
Set active labels to be associated with each data label. |
void |
setBoxAnimationStyle(int style)
Set the box animation style. |
void |
setBoxFences(boolean boxFences)
Sets whether to draw fences at the ends of the Inter Quartile Range. |
void |
setBoxHeight(int boxHeight)
Sets the height (in pixels) for each box displayed. |
void |
setBoxLimitLines(NFVector boxLimitLines)
Sets the values of the limit lines. |
void |
setBoxLimitLineStyle(NFVector boxLimitLineStyles)
Sets the styles of the limit lines. |
void |
setBoxSeries(NFBoxSeries boxSeries)
Set the box series. |
void |
setBoxSymbolWidth(int boxSymbolWidth)
Set box symbol width. |
void |
setBoxWidth(int boxWidth)
Set box width. |
void |
setDataIsSummary(boolean dataIsSummary)
Sets if the data provided is already in summary form ( SUMMARY ). |
void |
setDataIsSummary(boolean dataIsSummary,
boolean summaryHasMean)
Sets if the data provided is already in summary form and if it includes a mean. |
void |
setDataLabels(NFVector dataLabels)
Set the labels to be displayed under each box. |
void |
setDataPointColor(java.awt.Color dataPointColor)
Set the color of the data points. |
void |
setDataPointJitter(boolean dataPointJitter)
Sets whether data point jitter should be enabled or disabled. |
void |
setDefaultBoxSymbolWidth()
Set default box symbol width. |
void |
setDefaultBoxWidth()
Set default box width. |
void |
setDrawFences(boolean drawFences)
Sets whether to draw fences on the chart |
void |
setFencePosition(int fencePosition)
Sets the fence position, whether the fences that are within the IQR over or under the box. |
void |
setLayout(int layout)
Set box orientation, either VERTICAL (default) or HORIZONTAL. |
void |
setMeanActiveLabels(NFVector meanActiveLabels)
Set the mean active labels for this set. |
void |
setMeanColor(java.awt.Color meanColor)
Set the base color of the mean line and symbols. |
void |
setMeanLine(int style,
int thickness,
java.awt.Color color)
Sets the style of the mean line. |
void |
setMeanLine(NFLine meanLine)
Sets the style of the mean line. |
void |
setMedianColor(java.awt.Color medianColor)
Set the color of the median line. |
void |
setMinimumDataPoints(int minimumDataPoints)
Sets the minimum number of allowable data points. |
void |
setNaturalDisplayOrder(boolean naturalDisplayOrder)
Sets whether show to show the data from left to right. |
void |
setOutlierColor(java.awt.Color outlierColor)
Set the color of the outliers. |
void |
setPercentileN(int percentileN)
Sets the percentile to use when in PERCENTN mode. |
void |
setPlotType(int plotType)
Sets the plot type, one of STANDARD (default), EDA, GAUSSIAN or TENNINETY . |
void |
setRelativeBoxSymbolWidth(int relativeBoxSymbolWidth)
Sets the relative symbol box width value. |
void |
setShowDataPoints(boolean showDataPoints)
Sets whether show the data points. |
void |
setWhiskerType(int whiskerType)
Sets the whisker type, either BOX_WHISKER (default) or LINE_WHISKER . |
void |
writeChart(java.lang.StringBuffer sb)
Writes this chart into a string buffer |
void |
writeExternal(java.io.ObjectOutput out)
Writes this chart into an object for serialization. |
Methods inherited from class netcharts.pro.common.rectangular.NFDataChart |
---|
addGrid, getAutoscalePad, getAxesSizes, getAxisThickness, getBottomAxis, getBottomAxisSeries, getGrid, getGridAnimationStyle, getGridDepth, getGridSeries, getLeftAxis, getLeftAxisSeries, getRightAxis, getRightAxisSeries, getTopAxis, getTopAxisSeries, getXAxis, getYAxis, setAutoscalePad, setAxesSizes, setAxisThickness, setBottomAxis, setBottomAxisSeries, setGrid, setGridAnimationStyle, setGridDepth, setGridSeries, setLeftAxis, setLeftAxisSeries, setRightAxis, setRightAxisSeries, setTopAxis, setTopAxisSeries |
Methods inherited from class netcharts.pro.common.zoomable.NFZoomableChart |
---|
getMouseControlDown, getMouseMetaDown, getMouseShiftDown, getZoomingEnabled, setMouseControlDown, setMouseMetaDown, setMouseShiftDown, setZoomingEnabled, zoom |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int HORIZONTAL
public static final int VERTICAL
public static final int STANDARD
public static final int EDA
public static final int GAUSSIAN
public static final int TENNINETY
public static final int PERCENTN
public static final int BOX_WHISKER
public static final int LINE_WHISKER
public static final int OVER
public static final int UNDER
public static final int OFF
public static final int LINEAR
public static final int SQRT
public static final int BOX_ANIMATION_STYLE_NONE
public static final int BOX_ANIMATION_STYLE_SCALE
public static final int BOX_ANIMATION_STYLE_FADE
Constructor Detail |
---|
public NFBoxchart()
public NFBoxchart(javax.swing.JPanel panel)
panel
- Panel to draw chart on.public NFBoxchart(java.util.Properties initProperties)
initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.public NFBoxchart(javax.swing.JPanel panel, java.util.Properties initProperties)
panel
- Panel to draw chart on.initProperties
- A java.util.Properties object containing the set
of runtime properties to use when generating the chart. See the
netcharts.pro.common.NFGraph(java.util.Properties)
constructor
for a list of valid Properties.Method Detail |
---|
public java.lang.String getDefaultData()
getDefaultData
in class NFGraph
public void setOutlierColor(java.awt.Color outlierColor)
outlierColor
- Color of the outlierspublic java.awt.Color getOutlierColor()
public void setMedianColor(java.awt.Color medianColor)
medianColor
- Color of the median line.public java.awt.Color getMedianColor()
public void setMeanColor(java.awt.Color meanColor)
meanColor
- Color of the mean line and symbols.public java.awt.Color getMeanColor()
public void setDataPointColor(java.awt.Color dataPointColor)
dataPointColor
- Color of the data points.public java.awt.Color getDataPointColor()
public void setBoxHeight(int boxHeight)
boxHeight
- public int getBoxHeight()
public void addBoxSet(NFBoxSet boxSet)
boxSet
- The boxset to add.public void setBoxSeries(NFBoxSeries boxSeries) throws NFParamException
NFBoxchart chart = new NFBoxchart(); NFBoxSeries bs = chart.getBoxSeries(); NFBoxSet set = (NFBoxSet)bs.elementAt(0); // Set some of the properties on the NFBoxSet ... bs.setElementAt(set, 0); chart.setBoxSeries(bs);
boxSeries
-
NFParamException
public NFBoxSeries getBoxSeries()
NFBoxchart chart = new NFBoxchart(); NFBoxSeries bs = chart.getBoxSeries(); NFBoxSet set = (NFBoxSet)bs.elementAt(0); // Set some of the properties on the NFBoxSet ... bs.setElementAt(set, 0); chart.setBoxSeries(bs);
public void setDataIsSummary(boolean dataIsSummary)
SUMMARY
).
dataIsSummary
- True if data is in summary form.public void setDataIsSummary(boolean dataIsSummary, boolean summaryHasMean)
dataIsSummary
- True if data is in summary form (SUMMARY or
SUMMARYWITHMEAN
), false if otherwise (RAW
).summaryHasMean
- True if the summary includes a mean.public boolean getDataIsSummary()
SUMMARY or
SUMMARYWITHMEAN
), false if otherwise (RAW
).public boolean getDataIsSummaryWithMean()
public void setMinimumDataPoints(int minimumDataPoints)
minimumDataPoints
- The minimum number of allowable data points.public int getMinimumDataPoints()
public void setLayout(int layout)
layout
- One of HORIZONTAL, VERTICAL
public int getLayout()
HORIZONTAL, VERTICAL
. If
null
, VERTICAL
is returned by default.public void setBoxWidth(int boxWidth)
0
. The maximum allowable
value is 100
.
boxWidth
- public void setDefaultBoxWidth()
public int getBoxWidth()
public void setBoxSymbolWidth(int boxSymbolWidth)
0
. The maximum allowable
value is 100
.
boxSymbolWidth
- public void setDefaultBoxSymbolWidth()
public int getBoxSymbolWidth()
public void setPlotType(int plotType)
STANDARD (default), EDA, GAUSSIAN or TENNINETY
.
plotType
- One of STANDARD (default), EDA, GAUSSIAN or TENNINETY
.public int getPlotType()
STANDARD (default), EDA, GAUSSIAN or TENNINETY
.
STANDARD, EDA, GAUSSIAN or
TENNINETY
. STANDARD
is returned by default.public void setPercentileN(int percentileN)
percentileN
- The percentile to use when in PERCENTN mode.public int getPercentileN()
public void setWhiskerType(int whiskerType)
BOX_WHISKER (default) or LINE_WHISKER
.
whiskerType
- One of BOX_WHISKER, LINE_WHISKER
public int getWhiskerType()
BOX_WHISKER (default) or LINE_WHISKER
.
BOX_WHISKER or LINE_WHISKER
. If
null
, BOX_WHISKER
is returned by default.public void setFencePosition(int fencePosition)
OVER (default) or UNDER
.
fencePosition
- One of OVER, UNDER
public int getFencePosition()
OVER (default) or UNDER
.
OVER or UNDER
. If
null
, OVER
is returned by default.public void setDrawFences(boolean drawFences)
drawFences
- true
to enable drawing fences on the chart,
false
to disable drawing fences.public boolean getDrawFences()
true
if fences will be drawn on the chart, false
if fences will not be drawn.public void setBoxFences(boolean boxFences)
boxFences
- true
to enable drawing the fences, false
false to disable.public boolean getBoxFences()
true
if the fences are enabled, false
otherwise.public void setNaturalDisplayOrder(boolean naturalDisplayOrder)
naturalDisplayOrder
- true
to show the data from left to
right, false
false otherwise.public boolean getNaturalDisplayOrder()
true
to show the data from left to
right, false
false otherwise. If null
,
false is returned
.public void setShowDataPoints(boolean showDataPoints)
showDataPoints
- true
to show the data points, false
false otherwise.public boolean getShowDataPoints()
true
to show the data points,
false
false otherwise. If null
,
false is returned
.public void setRelativeBoxSymbolWidth(int relativeBoxSymbolWidth)
relativeBoxSymbolWidth
- One of OFF, LINEAR or SQRT
.public int getRelativeBoxSymbolWidth()
OFF, LINEAR or SQRT
. If
null
, OFF
is returned by default.public void setDataPointJitter(boolean dataPointJitter)
dataPointJitter
- true
to enable the fences, false
false otherwise.public boolean getDataPointJitter()
true
if data point jitter is enabled, false
false otherwise. If null
, true is returned
.public void setMeanLine(int style, int thickness, java.awt.Color color)
style
- One of NFLine.NONE, NFLine.SOLID, NFLineDOTTED, NFLine.DASHED, NFLine.DOTDASH
.thickness
- Line thickness (in pixels)color
- Line colorpublic void setMeanLine(NFLine meanLine)
meanLine
- NFLine style.public NFLine getMeanLine()
public void addMeanActiveLabel(NFActiveLabel activeLabel)
activeLabel
- The activeLabel to add to the list of active labels.public void setMeanActiveLabels(NFVector meanActiveLabels)
If the vector contains elements that are not NFActiveLabel objects, an IllegalArgumentException will be thrown.
meanActiveLabels
- Vector of NFActiveLabelspublic NFVector getMeanActiveLabels()
public void setBoxLimitLineStyle(NFVector boxLimitLineStyles)
boxLimitLineStyles
- a NFVector containing a set of NFLine objects defining the styles.public NFVector getBoxLimitLineStyle()
public void setBoxLimitLines(NFVector boxLimitLines)
boxLimitLines
- a NFVector containing a set of NFVector objects defining the data values.public NFVector getBoxLimitLines()
public void addBoxLimitLineStyle(NFLine lineStyle)
lineStyle
- The line style definition to add.public int getType()
getType
in class NFGraph
netcharts.pro.charts.box.NFGraph.BAR
public void setBoxAnimationStyle(int style)
If the value passed is not a valid box animation style, BOX_ANIMATION_STYLE_NONE will be used.
style
- One of BOX_ANIMATION_STYLE_NONE (default), BOX_ANIMATION_STYLE_SCALE or BOX_ANIMATION_STYLE_FADE
public int getBoxAnimationStyle()
BOX_ANIMATION_STYLE_NONE (default), BOX_ANIMATION_STYLE_SCALE or BOX_ANIMATION_STYLE_FADE
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class NFDataChart
java.io.IOException
public void writeChart(java.lang.StringBuffer sb)
writeChart
in class NFDataChart
public void resetState()
resetState
in class NFDataChart
public void setDataLabels(NFVector dataLabels)
public NFVector getDataLabels()
public void setBoxActiveLabels(NFVector boxActiveLabels)
boxActiveLabels
- Vector of NFActiveLabelspublic NFVector getBoxActiveLabels()
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |