|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcspy.vis.plugins.histogram.HistogramConfig
class HistogramConfig
Wrapped up settings for the histogram graph
Constructor Summary | |
---|---|
HistogramConfig(int streamID,
TileManagerColors tmColors)
A new histogram configuration |
Method Summary | |
---|---|
(package private) int |
calcTileForPoint(int imageX,
int imageY)
Calculate the tile corresponding to a position on the chart |
(package private) int |
calcWidth(int tileNum)
Get/calculate the width of the canvas |
(package private) java.awt.Color |
getBGColor()
Get the background colour |
(package private) int |
getBottomFreeBorder()
Get the size of the chart's bottom border in pixels |
(package private) int |
getCanvasHeight()
Get the height of the canvas |
(package private) int |
getCanvasWidth()
Get the width of the canvas |
(package private) java.awt.Color |
getChartAxisColor()
Get the colour of the axis |
(package private) java.awt.Font |
getChartFont()
Get the chart's font |
(package private) java.awt.Color |
getChartFontColor()
Get the font colour |
(package private) java.awt.Color |
getChartLineColor()
Get the colour of the line |
(package private) java.awt.Color |
getColorForTile(int index)
Get the colour of a tile |
(package private) int |
getColumnDrawablePercent()
Get the maximum fraction of the column height that we are prepared to draw |
(package private) int |
getColumnMaxHeight()
Get the maximum height of a column in pixels |
(package private) int |
getLeftFreeBorder()
Get the size of the chart's left border in pixels |
(package private) java.awt.Color |
getMarkColor()
Get the zero colour |
(package private) int |
getOverflowTopGap()
Get the overflow gap |
(package private) int |
getOverflowTopRectHeight()
Get the overflow height |
(package private) int |
getRightFreeBorder()
Get the size of the chart's right border in pixels |
int |
getStream()
Get selected stream |
(package private) int |
getTileWidth()
Get the width of a tile (column) in pixels |
(package private) int |
getTopFreeBorder()
Get the size of the chart's top border in pixels |
(package private) int |
getXZero()
Get the x-coordinate of the chart's origin |
(package private) int |
getYZero()
Get the yx-coordinate of the chart's origin |
(package private) java.awt.Color |
getZeroColor()
Get the zero colour |
(package private) void |
setColorForTile(int index,
java.awt.Color color)
Set the colour of a tile |
void |
setStream(int stream)
Set selected stream |
void |
setStreamColor(java.awt.Color color)
Set the stream color for the histogram image |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
HistogramConfig(int streamID, TileManagerColors tmColors)
streamID
- The stream to graphtmColors
- the tile color configurationMethod Detail |
---|
int calcWidth(int tileNum)
tileNum
- Current number of tiles
int getCanvasWidth()
int getCanvasHeight()
int getXZero()
int getYZero()
int getTopFreeBorder()
int getRightFreeBorder()
int getBottomFreeBorder()
int getLeftFreeBorder()
int getTileWidth()
int getColumnMaxHeight()
int getColumnDrawablePercent()
int getOverflowTopRectHeight()
int getOverflowTopGap()
int calcTileForPoint(int imageX, int imageY)
imageX
- The x-coordinateimageY
- The y-coordinate
java.awt.Color getChartAxisColor()
java.awt.Color getChartLineColor()
java.awt.Color getBGColor()
java.awt.Color getZeroColor()
java.awt.Color getColorForTile(int index)
index
- the tile's index
java.awt.Color getChartFontColor()
java.awt.Color getMarkColor()
java.awt.Font getChartFont()
void setColorForTile(int index, java.awt.Color color)
index
- the tile's indexcolor
- the tile's colourpublic void setStream(int stream)
stream
- Stream's indexpublic int getStream()
public void setStreamColor(java.awt.Color color)
color
- The Stream's base color
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |