public class ChartConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
area |
protected boolean |
autoRefresh |
protected boolean |
autoScale |
protected ChartDciConfig[] |
dciList |
protected boolean |
extendedLegend |
protected int |
legendPosition |
protected int |
lineWidth |
protected boolean |
logScale |
protected int |
maxYScaleValue |
protected int |
minYScaleValue |
protected int |
refreshRate |
protected boolean |
showGrid |
protected boolean |
showHostNames |
protected boolean |
showLegend |
protected boolean |
showTitle |
protected boolean |
stacked |
protected int |
timeFrameType |
protected Date |
timeFrom |
protected int |
timeRange |
protected Date |
timeTo |
protected int |
timeUnits |
protected String |
title |
protected boolean |
translucent |
| Constructor and Description |
|---|
ChartConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(GraphSettingsChangeListener listener)
Add change listener
|
static ChartConfig |
createFromXml(String xml)
Create chart settings object from XML document
|
String |
createXml()
Create XML from configuration.
|
void |
fireChangeNotification()
Fire change notification
|
ChartDciConfig[] |
getDciList() |
int |
getLegendPosition() |
int |
getLineWidth() |
int |
getMaxYScaleValue() |
int |
getMinYScaleValue() |
int |
getRefreshRate() |
int |
getTimeFrameType() |
Date |
getTimeFrom() |
int |
getTimeRange() |
long |
getTimeRangeMillis()
Get time range covered by graph in milliseconds
|
Date |
getTimeTo() |
int |
getTimeUnits() |
String |
getTitle() |
boolean |
isArea() |
boolean |
isAutoRefresh() |
boolean |
isAutoScale() |
boolean |
isExtendedLegend() |
boolean |
isLogScale() |
boolean |
isShowGrid() |
boolean |
isShowHostNames() |
boolean |
isShowLegend() |
boolean |
isShowTitle() |
boolean |
isStacked() |
boolean |
isTranslucent() |
void |
removeChangeListener(GraphSettingsChangeListener listener)
Remove change listener
|
void |
setArea(boolean area) |
void |
setAutoRefresh(boolean autoRefresh) |
void |
setAutoScale(boolean autoScale) |
void |
setConfig(ChartConfig config) |
void |
setDciList(ChartDciConfig[] dciList) |
void |
setExtendedLegend(boolean extendedLegend) |
void |
setLegendPosition(int legendPosition) |
void |
setLineWidth(int lineWidth) |
void |
setLogScale(boolean logScale) |
void |
setMaxYScaleValue(int maxYScaleValue) |
void |
setMinYScaleValue(int minYScaleValue) |
void |
setRefreshRate(int refreshRate) |
void |
setShowGrid(boolean showGrid) |
void |
setShowHostNames(boolean showHostNames) |
void |
setShowLegend(boolean showLegend) |
void |
setShowTitle(boolean showTitle) |
void |
setStacked(boolean stacked) |
void |
setTimeFrameType(int timeFrameType) |
void |
setTimeFrom(Date timeFrom) |
void |
setTimePeriod(TimePeriod tp) |
void |
setTimeRange(int timeRange) |
void |
setTimeTo(Date timeTo) |
void |
setTimeUnits(int timeUnits) |
void |
setTitle(String title) |
void |
setTranslucent(boolean translucent) |
TimePeriod |
timePeriod() |
protected ChartDciConfig[] dciList
protected String title
protected int legendPosition
protected boolean showLegend
protected boolean extendedLegend
protected boolean showTitle
protected boolean showGrid
protected boolean showHostNames
protected boolean autoRefresh
protected boolean logScale
protected boolean stacked
protected boolean translucent
protected boolean area
protected int lineWidth
protected boolean autoScale
protected int minYScaleValue
protected int maxYScaleValue
protected int refreshRate
protected int timeUnits
protected int timeRange
protected int timeFrameType
protected Date timeFrom
protected Date timeTo
public static ChartConfig createFromXml(String xml) throws Exception
xml - XML documentException - if the object cannot be fully deserializedpublic String createXml() throws Exception
Exception - if the schema for the object is not validpublic long getTimeRangeMillis()
public String getTitle()
public void setTitle(String title)
title - the title to setpublic ChartDciConfig[] getDciList()
public void setDciList(ChartDciConfig[] dciList)
dciList - the dciList to setpublic int getLegendPosition()
public void setLegendPosition(int legendPosition)
legendPosition - the legendPosition to setpublic boolean isShowLegend()
public void setShowLegend(boolean showLegend)
showLegend - the showLegend to setpublic int getRefreshRate()
public void setRefreshRate(int refreshRate)
refreshRate - the refreshRate to setpublic boolean isShowTitle()
public void setShowTitle(boolean showTitle)
showTitle - the showTitle to setpublic int getTimeUnits()
public void setTimeUnits(int timeUnits)
timeUnits - the timeUnits to setpublic int getTimeRange()
public void setTimeRange(int timeRange)
timeRange - the timeRange to setpublic boolean isShowHostNames()
public void setShowHostNames(boolean showHostNames)
showHostNames - the showHostNames to setpublic boolean isAutoRefresh()
public void setAutoRefresh(boolean autoRefresh)
autoRefresh - the autoRefresh to setpublic boolean isLogScale()
public void setLogScale(boolean logScale)
logScale - the logScale to setpublic int getTimeFrameType()
public void setTimeFrameType(int timeFrameType)
timeFrameType - the timeFrameType to setpublic Date getTimeFrom()
public void setTimeFrom(Date timeFrom)
timeFrom - the timeFrom to setpublic Date getTimeTo()
public void setTimeTo(Date timeTo)
timeTo - the timeTo to setpublic boolean isShowGrid()
public void setShowGrid(boolean showGrid)
showGrid - the showGrid to setpublic boolean isStacked()
public void setStacked(boolean stacked)
stacked - the stacked to setpublic boolean isTranslucent()
public void setTranslucent(boolean translucent)
translucent - the translucent to setpublic boolean isExtendedLegend()
public void setExtendedLegend(boolean extendedLegend)
extendedLegend - the extendedLegend to setpublic int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth - the lineWidth to setpublic boolean isAutoScale()
public void setAutoScale(boolean autoScale)
autoScale - public boolean isArea()
public void setArea(boolean area)
area - the area to setpublic int getMinYScaleValue()
public void setMinYScaleValue(int minYScaleValue)
minYScaleValue - public int getMaxYScaleValue()
public void setMaxYScaleValue(int maxYScaleValue)
maxYScaleValue - public TimePeriod timePeriod()
public void setTimePeriod(TimePeriod tp)
tp - public void addChangeListener(GraphSettingsChangeListener listener)
listener - change listenerpublic void removeChangeListener(GraphSettingsChangeListener listener)
listener - change listener to removepublic void fireChangeNotification()
public void setConfig(ChartConfig config)
Copyright © 2017. All rights reserved.