|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rioproject.watch.DefaultCalculableView
public class DefaultCalculableView
Default attributes for viewing a collection of Calculables
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.rioproject.watch.CalculableViewable |
|---|
CalculableViewable.PlottedCalculable |
| Field Summary | |
|---|---|
protected Accumulator |
accum
|
protected static Color |
avgColor
|
protected static int |
BOTTOM_AXIS_MARGIN
|
protected static int |
BOTTOM_GRAPH_MARGIN
|
protected double |
bottomLineValue
|
protected CalculableDisplayAttributes |
calcDisplayAttrs
|
protected int |
currentSize
|
protected Calculable[] |
data
|
protected static CalculableDisplayAttributes |
defaultDisplayAttributes
|
static Font |
defaultFont
|
static DecimalFormat |
defaultFormater
|
protected static Color |
devColor
|
protected double |
drawHeight
|
protected double |
drawWidth
|
protected double |
highThreshold
|
protected static int |
HORIZONTAL__MIN_GRID_WIDTH
|
protected static int |
LEFT_AXIS_MARGIN
|
protected static int |
LEFT_GRAPH_MARGIN
|
protected double |
lowThreshold
|
protected double |
max
|
protected double |
maxY
|
protected double |
mean
|
protected double |
min
|
protected double |
minY
|
protected double |
nbrHGrids
|
protected double |
rangeSize
|
protected static int |
RIGHT_AXIS_MARGIN
|
protected static int |
RIGHT_GRAPH_MARGIN
|
protected double |
startValue
|
protected double |
stdDev
|
protected double |
stopValue
|
protected String |
title
|
protected Font |
titleFont
|
protected static int |
TOP_AXIS_MARGIN
|
protected static int |
TOP_GRAPH_MARGIN
|
protected double |
topLineValue
|
protected static int |
TOTAL_H_GRAPH_MARGIN
|
protected static int |
TOTAL_V_GRAPH_MARGIN
|
protected double |
valuesRange
|
protected static int |
VERTICAL__MIN_GRID_HEIGHT
|
protected static int |
VERTICAL_GRAPH_OFFSET
|
protected double |
vStep
|
protected double |
vStepMultiplier
|
protected WatchDataSource |
watchDataSource
|
protected NumberFormat |
xFormat
|
protected String |
xLegend
|
protected Font |
xLegendFont
|
protected double |
xScale
|
protected NumberFormat |
yFormat
|
protected String |
yLegend
|
protected Font |
yLegendFont
|
protected double |
yScale
|
| Constructor Summary | |
|---|---|
DefaultCalculableView()
Creates new DefaultCalculableView |
|
DefaultCalculableView(CalculableDisplayAttributes calcDisplayAttrs)
Creates new DefaultCalculableView |
|
| Method Summary | |
|---|---|
protected double |
getBottomLineValue()
|
CalculableViewable.PlottedCalculable |
getCalcForPoint(Point point)
Get the Calculable value for a corresponding point |
protected int |
getLength()
|
protected double |
getTopLineValue()
|
protected void |
initValues()
Initialize the graph values from the WatchDataSource |
void |
paint(Graphics g,
Dimension size)
Paints the view to the graphics context |
protected void |
resetValues()
Reset the graph values to default values |
void |
setCalculableDisplayAttributes(CalculableDisplayAttributes calcDisplayAttrs)
Sets the Calculable Display Attributes used to format the graph |
void |
setWatchDataSource(WatchDataSource watchDataSource)
Sets the watch data source for this view |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int TOP_AXIS_MARGIN
protected static final int BOTTOM_AXIS_MARGIN
protected static final int LEFT_AXIS_MARGIN
protected static final int RIGHT_AXIS_MARGIN
protected static final int TOP_GRAPH_MARGIN
protected static final int BOTTOM_GRAPH_MARGIN
protected static final int LEFT_GRAPH_MARGIN
protected static final int RIGHT_GRAPH_MARGIN
protected static final int VERTICAL_GRAPH_OFFSET
protected static final int TOTAL_H_GRAPH_MARGIN
protected static final int TOTAL_V_GRAPH_MARGIN
protected static final int VERTICAL__MIN_GRID_HEIGHT
protected static final int HORIZONTAL__MIN_GRID_WIDTH
protected static final Color devColor
protected static final Color avgColor
public static final DecimalFormat defaultFormater
public static final Font defaultFont
protected static final CalculableDisplayAttributes defaultDisplayAttributes
protected WatchDataSource watchDataSource
protected Accumulator accum
protected Calculable[] data
protected double highThreshold
protected double lowThreshold
protected double startValue
protected double stopValue
protected double min
protected double max
protected double mean
protected double stdDev
protected String yLegend
protected Font yLegendFont
protected double yScale
protected NumberFormat yFormat
protected String xLegend
protected Font xLegendFont
protected double xScale
protected NumberFormat xFormat
protected String title
protected Font titleFont
protected CalculableDisplayAttributes calcDisplayAttrs
protected int currentSize
protected double drawWidth
protected double rangeSize
protected double drawHeight
protected double topLineValue
protected double bottomLineValue
protected double valuesRange
protected double vStep
protected double vStepMultiplier
protected double nbrHGrids
protected double maxY
protected double minY
| Constructor Detail |
|---|
public DefaultCalculableView()
public DefaultCalculableView(CalculableDisplayAttributes calcDisplayAttrs)
calcDisplayAttrs - The Calculable Display Attributes used to
format the graph| Method Detail |
|---|
public void setCalculableDisplayAttributes(CalculableDisplayAttributes calcDisplayAttrs)
calcDisplayAttrs - The Calculable Display Attributes used to
format the graphpublic void setWatchDataSource(WatchDataSource watchDataSource)
setWatchDataSource in interface CalculableViewablewatchDataSource - The WatchDataSourceprotected void resetValues()
protected void initValues()
public void paint(Graphics g,
Dimension size)
paint in interface CalculableViewableg - The Graphics contextsize - The Dimension to paintpublic CalculableViewable.PlottedCalculable getCalcForPoint(Point point)
CalculableViewable
getCalcForPoint in interface CalculableViewablepoint - The point
protected int getLength()
protected double getTopLineValue()
protected double getBottomLineValue()
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||