|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcspy.vis.plugins.history.HistoryConfig
class HistoryConfig
Wrapped up settings for the history graphs
Constructor Summary | |
---|---|
HistoryConfig(java.awt.Component component,
int cols,
int rows,
int tileSize,
int stream,
boolean horSep,
int horSepEvent,
boolean verSep,
int verSepPeriod,
boolean verSepLegend,
int verSepLegendPeriod,
java.lang.String verSepLegendStringPost,
boolean spaceSep,
java.awt.Color spaceSepColor,
java.awt.Color unusedColor,
java.awt.Color zeroColor,
java.awt.Color lowColor,
java.awt.Color hiColor,
java.awt.Color horSepColor,
java.awt.Color verSepColor,
java.awt.Color bgColor,
boolean title,
java.lang.String titlePre,
java.awt.Color titleColor,
int borderSize,
java.awt.Color borderColor,
int fontSize)
A new history configuration |
|
HistoryConfig(java.awt.Component component,
int cols,
int streamID,
TileManagerColors tmColors)
A new history configuration |
Method Summary | |
---|---|
(package private) int |
calcHeight()
Get the height of the configuration frame |
(package private) int |
calcWidth()
Get the width of the configuration frame |
(package private) static int |
checkBorderSize(int borderSize)
Check the border size |
(package private) static int |
checkCols(int cols)
Check the number of columns |
(package private) static int |
checkFontSize(int fontSize)
Check the font size |
(package private) static int |
checkRows(int rows)
Check the number of rows |
(package private) static int |
checkTileSize(int tileSize)
Check the tile size |
(package private) static int |
checkVerSepLegendPeriod(int verSepLegendPeriod)
Check the period for vertical separators for the legend |
(package private) static int |
checkVerSepPeriod(int verSepPeriod)
Check the period for vertical separators |
(package private) java.awt.Color |
getBGColor()
Get the colour for background |
(package private) java.awt.Color |
getBorderColor()
Get the border colour |
(package private) int |
getBorderSize()
Get the border size |
(package private) int |
getBottomBorderSize()
get the bottom border size |
(package private) int |
getCols()
Get the number of columns |
(package private) java.awt.Font |
getFont()
Get the font to use |
(package private) int |
getFontSize()
Get the font size |
(package private) java.awt.Color |
getHiColor()
Get the colour for high valued tiles |
(package private) int |
getHorBorderSize()
Get the horizontal border size |
(package private) java.awt.Color |
getHorSepColor()
Get the colour for horizontal separators |
(package private) int |
getHorSepEvent()
Get the ID of the event marked by horizontal separators |
(package private) java.awt.Color |
getLowColor()
Get the colour for low valued tiles |
(package private) int |
getRows()
Get the number of rows |
(package private) boolean |
getSpaceSep()
Are there space separators |
(package private) java.awt.Color |
getSpaceSepColor()
Get the colour for space separators |
(package private) int |
getStream()
Get the ID od the stream being graphed |
(package private) int |
getTextGap()
get the text gap |
(package private) int |
getTextWidth(java.lang.String text)
Measure the width of a string |
(package private) int |
getTileSize()
Get the tile size |
(package private) boolean |
getTitle()
Is a title wanted |
(package private) java.awt.Color |
getTitleColor()
Get the colour for the title |
(package private) java.lang.String |
getTitlePre()
Get a prefix for the title |
(package private) int |
getTopBorderSize()
get the top border size |
(package private) java.awt.Color |
getUnusedColor()
Get the colour wanted for unused tiles |
(package private) java.awt.Color |
getVerSepColor()
Get the colour for vertical separators |
(package private) boolean |
getVerSepLegend()
Is there a legend for vertical separators |
(package private) int |
getVerSepLegendPeriod()
Get the period for vertical separators for the legend |
(package private) java.lang.String |
getVerSepLegendStringPost()
Return the suffix for the veritcal separation legend |
(package private) int |
getVerSepPeriod()
Get the period for vertical separators |
(package private) int |
getVerSepStart()
Get the vertical separation before the start |
(package private) java.awt.Color |
getZeroColor()
Get the colour for zero tiles |
(package private) boolean |
horSep()
Is a horizontal separator needed |
(package private) static int |
parseBorderSize(java.lang.String text)
Parse a string to get sizse for the border |
(package private) static int |
parseFontSize(java.lang.String text)
Parse a string to get a font size |
(package private) static int |
parseRows(java.lang.String text)
Parse a string to give the number of rows |
(package private) static int |
parseTileSize(java.lang.String text)
Parse a string to give a tile size |
(package private) static int |
parseVerSepLegendPeriod(java.lang.String text)
Parse a string to get the vertical separation for the legend |
(package private) static int |
parseVerSepPeriod(java.lang.String text)
Parse a string to give a vertical separator period |
(package private) void |
revertToDefaults(java.awt.Component component,
TileManagerColors tmColors)
Revert a component to its default colours |
(package private) void |
setCols(int cols)
Set the number of columns |
(package private) boolean |
verSep()
Is a vertical separator wanted? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
HistoryConfig(java.awt.Component component, int cols, int rows, int tileSize, int stream, boolean horSep, int horSepEvent, boolean verSep, int verSepPeriod, boolean verSepLegend, int verSepLegendPeriod, java.lang.String verSepLegendStringPost, boolean spaceSep, java.awt.Color spaceSepColor, java.awt.Color unusedColor, java.awt.Color zeroColor, java.awt.Color lowColor, java.awt.Color hiColor, java.awt.Color horSepColor, java.awt.Color verSepColor, java.awt.Color bgColor, boolean title, java.lang.String titlePre, java.awt.Color titleColor, int borderSize, java.awt.Color borderColor, int fontSize)
component
- The configuration dialogcols
- The number of columns to userows
- The number of rows to usetileSize
- The tilesize to usestream
- The stream to graphhorSep
- Is a horizontal separator needed?horSepEvent
- The ID of the event shown by horiozontal separatorsverSep
- Are vertical separators wanted?verSepPeriod
- The period for vertical separatorsverSepLegend
- The legend for vertical separatorsverSepLegendPeriod
- The period for vertical separators for the legendverSepLegendStringPost
- The suffix for vertical separators in the legendspaceSep
- Are space separators wanted?spaceSepColor
- The space separator colourunusedColor
- The colour for unused tileszeroColor
- The colour for zero-valued tileslowColor
- The colour for low-valued tileshiColor
- The colour for high-valued tileshorSepColor
- The colour for horizontal separatorsverSepColor
- The colour for vertical separatorsbgColor
- The background colourtitle
- The titletitlePre
- A prefix for the titletitleColor
- The colour of the titleborderSize
- The border sizeborderColor
- The border colourfontSize
- The font sizeHistoryConfig(java.awt.Component component, int cols, int streamID, TileManagerColors tmColors)
component
- The configuration dialogcols
- The number of columns to usestreamID
- The stream to graphtmColors
- the tile colopur configurationMethod Detail |
---|
int calcWidth()
int calcHeight()
static int checkCols(int cols)
cols
- the number of columns given
int getCols()
void setCols(int cols)
cols
- The number of columnsstatic int checkRows(int rows)
rows
- the given number of rows
static int parseRows(java.lang.String text)
text
- The input string
int getRows()
int getTileSize()
static int checkTileSize(int tileSize)
tileSize
- the given tile size
static int parseTileSize(java.lang.String text)
text
- the string to parse
int getStream()
boolean horSep()
int getHorSepEvent()
boolean verSep()
int getVerSepPeriod()
int getVerSepStart()
static int checkVerSepPeriod(int verSepPeriod)
verSepPeriod
- The period given
static int parseVerSepPeriod(java.lang.String text)
text
- The string to parse
boolean getVerSepLegend()
int getVerSepLegendPeriod()
static int checkVerSepLegendPeriod(int verSepLegendPeriod)
verSepLegendPeriod
- The period give
static int parseVerSepLegendPeriod(java.lang.String text)
text
- the text to parse
java.lang.String getVerSepLegendStringPost()
boolean getSpaceSep()
java.awt.Color getSpaceSepColor()
java.awt.Color getBGColor()
java.awt.Color getUnusedColor()
java.awt.Color getZeroColor()
java.awt.Color getLowColor()
java.awt.Color getHiColor()
java.awt.Color getHorSepColor()
java.awt.Color getVerSepColor()
java.awt.Color getTitleColor()
java.lang.String getTitlePre()
boolean getTitle()
static int checkFontSize(int fontSize)
fontSize
- a given size for fonts
static int parseFontSize(java.lang.String text)
text
- the string to parse
int getFontSize()
static int checkBorderSize(int borderSize)
borderSize
- A size given for the border
static int parseBorderSize(java.lang.String text)
text
- the string to parse
int getBorderSize()
java.awt.Color getBorderColor()
int getHorBorderSize()
int getTopBorderSize()
int getBottomBorderSize()
int getTextGap()
java.awt.Font getFont()
int getTextWidth(java.lang.String text)
text
- the string to measure
void revertToDefaults(java.awt.Component component, TileManagerColors tmColors)
component
- The componenttmColors
- The colour configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |