Package overit.geocall.basic.ui.control
Class ChartSerie
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.control.ChartBase
overit.geocall.basic.ui.control.ChartSerie
- All Implemented Interfaces:
Serializable,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,Arrangeable,Badgeable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
This class extends
ChartBase and implements a serie chart.- See Also:
- GCApi:
- component
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
Fields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineService -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreates a new instance of ChartSerieprotectedChartSerie(Holder<ChartScriptBuilder> chartScriptBuilderHolder, Holder<ChartSerieConfigurationBuilder> chartSerieConfigurationBuilderHolder) Creates a new instance of ChartSerie -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEventHandlers(ChartScriptBuilder scriptBuilder) voidaddSerie(ChartSerieType type, overit.geocall.charts.Serie serie) Adds a serie to the chart.protected StringvoidClears all the series of the chart.protected Holder<ChartSerieConfigurationBuilder> org.apache.ecs.ElementgetContentHtml(Object generationHandle, EntitySet es) Returns the html code that represents the active part of the component, i.e. the field and the validation scriptsoverit.geocall.charts.ChartFontReturns the font for the values on the domain (x) axis.Returns the labels of the elements of the domain (x) axis for each serieintReturns the rotation for the values on the domain (x) axis.Returns the title for the domain (x) axis.overit.geocall.charts.ChartFontReturns the font for the values on the values (y) axis.getEvent()Returns the names of the events triggered when the user clicks on an element of the legend box.Returns the names of the events triggered when the user clicks on an element of the chart.overit.geocall.charts.ChartFontReturns the format used for the labels of the elements of each serie.Returns the parameters for the events triggered when the user clicks on an element of the chart.Returns the format used for the tooltip messages.Returns the labels of the elements of each serie.protected ListAttributegetParam()Returns the parameters for the events triggered when the user clicks on an element of the legend box.overit.geocall.charts.SeriegetSerie(int pos) Returns the serie in the desired position.Returns the series of the chart.protected ListAttributeprotected ListAttributeoverit.geocall.charts.ChartFontReturns the font for the values on the domain (x) axis.Returns the maximum value for the value (y) axis.Returns the minimum value for the value (y) axis.Returns the step for the values (y) axis.Returns the title for the values (y) axis.overit.geocall.charts.ChartFontReturns the font for the title of the values (y) axis.booleanReturns whether the domain grid line should be shown.booleanReturns whether the series should be stacked.booleanReturns whether the values grid line should be shown.booleanReturns whether the chart should be vertical or not.booleanisZoom()Returns whether the chart should be zoomable or not.voidsetDomainFont(overit.geocall.charts.ChartFont domainFont) Sets the font for the values on the domain (x) axis.voidSets the font for the values on the domain (x) axis.voidsetDomainGridLine(boolean domainGridLine) Sets whether the domain grid line should be shown.voidSets whether the domain grid line should be shown.voidsetDomainLabels(ListAttribute domainLabels) Sets the labels of the elements of the domain (x) axis for each serievoidsetDOMAINLABELS(String labels) Sets the labels of the elements of the domain (x) axis for each serievoidsetDomainRotation(int domainRotation) Sets the rotation for the values on the domain (x) axis.voidSets the rotation for the values on the domain (x) axis.voidsetDomainTitle(String domainTitle) Sets the title for the domain (x) axis.voidSets the title for the domain (x) axis.voidsetDomainTitleFont(overit.geocall.charts.ChartFont domainTitleFont) Sets the font for the title of the domain (x) axis.voidSets the font for the title of the domain (x) axis.voidsetEvent(ListAttribute event) Sets the names of the events triggered when the user clicks on an element of the legend box.voidSets the names of the events triggered when the user clicks on an element of the legend box.voidsetItemEvent(ListAttribute itemEvent) Sets the names of the events triggered when the user clicks on an element of the chart.voidSets the names of the events triggered when the user clicks on an element of the chart.voidsetItemLabelFont(overit.geocall.charts.ChartFont itemLabelFont) voidSets the font used for the labels of the elements of each serie.voidsetItemLabelFormat(ListAttribute itemLabelFormat) Sets the format used for the labels of the elements of each serie.voidSets the format used for the labels of the elements of each serie.voidsetItemParam(ListAttribute itemParam) Sets the parameters for the events triggered when the user clicks on an element of the chart.voidSets the parameters for the events triggered when the user clicks on an element of the chart.voidsetItemTooltipFormat(ListAttribute itemTooltipFormat) Sets the format used for the tooltip messages.voidSets the format used for the tooltip messages.voidsetLabels(ListAttribute labels) Sets the labels of the elements of each serie.voidSets the labels of the elements of each serie.voidsetParam(ListAttribute param) Sets the parameters for the events triggered when the user clicks on an element of the legend box.voidSets the parameters for the events triggered when the user clicks on an element of the legend box.voidsetStacked(boolean stacked) Sets whether the series should be stacked.voidsetSTACKED(String s) Sets whether the series should be stacked.protected voidsetup()Setup the ComponentvoidsetValuesFont(overit.geocall.charts.ChartFont valuesFont) Sets the font for the values on the values (y) axis.voidSets the font for the values on the values (y) axis.voidsetValuesGridLine(boolean valuesGridLine) Sets whether the values grid line should be shown.voidSets whether the values grid line should be shown.voidsetValuesMax(Double valuesMax) Sets the maximum value for the value (y) axis.voidSets the maximum value for the value (y) axis.voidsetValuesMin(Double valuesMin) Sets the minimum value for the value (y) axis.voidSets the minimum value for the value (y) axis.voidsetValuesStep(Double valuesStep) Sets the step for the values (y) axis.voidSets the step for the values (y) axis.voidsetValuesTitle(String valuesTitle) Sets the title for the values (y) axis.voidSets the title for the values (y) axis.voidsetValuesTitleFont(overit.geocall.charts.ChartFont valuesTitleFont) Sets the font for the title of the values (y) axis.voidSets the font for the title of the values (y) axis.voidsetVertical(boolean vertical) Sets whether the chart should be vertical or not.voidSets whether the chart should be vertical or not.voidsetZoom(boolean zoom) Sets whether the chart should be zoomable or not.voidSets whether the chart should be zoomable or not.Methods inherited from class overit.geocall.basic.ui.control.ChartBase
buildSetupScript, chartChanged, getChartScriptBuilderHolder, getChartStyle, getDescriptionHtml, getGenerationHandle, getHeight, getHiddenHtml, getHtml, getItemSize, getLegendBox, getLegendFont, getMessages, getMessages, getWidth, hasFixedSize, isLegend, setChartStyle, setHeight, setHEIGHT, setItemSize, setITEMSIZE, setLegend, setLEGEND, setLegendBox, setLEGENDBOX, setLegendFont, setLEGENDFONT, setWidth, setWIDTHMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getBLANK, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getRO, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBASIC, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Constructor Details
-
ChartSerie
public ChartSerie()Creates a new instance of ChartSerie -
ChartSerie
protected ChartSerie(Holder<ChartScriptBuilder> chartScriptBuilderHolder, Holder<ChartSerieConfigurationBuilder> chartSerieConfigurationBuilderHolder) Creates a new instance of ChartSerie- Parameters:
chartScriptBuilderHolder- The holder for the chart script builder, it must create a new instance each time it is called.chartSerieConfigurationBuilderHolder- The holder for the chart serie configuration builder, it must create a new instance each time it is called.
-
-
Method Details
-
getDomainLabels
Returns the labels of the elements of the domain (x) axis for each serie- Returns:
- The labels of the elements of the domain (x) axis for each serie
-
setDomainLabels
Sets the labels of the elements of the domain (x) axis for each serie- Parameters:
domainLabels- The labels of the elements of the domain (x) axis for each serie
-
setDOMAINLABELS
Sets the labels of the elements of the domain (x) axis for each serie- Parameters:
labels- AListAttributein which every element, separated from the others by the | character, represents the label of an element of the domain (x) axis for each serie
-
getValuesMin
Returns the minimum value for the value (y) axis.- Returns:
- The minimum value for the value (y) axis
-
setValuesMin
Sets the minimum value for the value (y) axis.- Parameters:
valuesMin- The minimum value for the value (y) axis
-
setVALUESMIN
Sets the minimum value for the value (y) axis.- Parameters:
s- The minimum value for the value (y) axis
-
getValuesMax
Returns the maximum value for the value (y) axis.- Returns:
- The maximum value for the value (y) axis
-
setValuesMax
Sets the maximum value for the value (y) axis.- Parameters:
valuesMax- The maximum value for the value (y) axis
-
setVALUESMAX
Sets the maximum value for the value (y) axis.- Parameters:
s- The maximum value for the value (y) axis
-
isDomainGridLine
public boolean isDomainGridLine()Returns whether the domain grid line should be shown.- Returns:
- Whether the domain grid line should be shown.
-
setDomainGridLine
public void setDomainGridLine(boolean domainGridLine) Sets whether the domain grid line should be shown.- Parameters:
domainGridLine- Whether the domain grid line should be shown.
-
setDOMAINGRIDLINE
Sets whether the domain grid line should be shown.- Parameters:
s- Whether the domain grid line should be shown.
-
isValuesGridLine
public boolean isValuesGridLine()Returns whether the values grid line should be shown.- Returns:
- Whether the values grid line should be shown.
-
setValuesGridLine
public void setValuesGridLine(boolean valuesGridLine) Sets whether the values grid line should be shown.- Parameters:
valuesGridLine- Whether the values grid line should be shown.
-
setVALUESGRIDLINE
Sets whether the values grid line should be shown.- Parameters:
s- Whether the values grid line should be shown.
-
getEvent
Returns the names of the events triggered when the user clicks on an element of the legend box.- Returns:
- The names of the events triggered when the user clicks on an element of the legend box
-
setEvent
Sets the names of the events triggered when the user clicks on an element of the legend box.- Parameters:
event- The names of the events triggered when the user clicks on an element of the legend box
-
setEVENT
Sets the names of the events triggered when the user clicks on an element of the legend box.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the name of an event triggered when the user clicks on an element of the legend box
-
getParam
Returns the parameters for the events triggered when the user clicks on an element of the legend box.- Returns:
- The parameters for the events triggered when the user clicks on an element of the legend box
-
setParam
Sets the parameters for the events triggered when the user clicks on an element of the legend box.- Parameters:
param- The parameters for the events triggered when the user clicks on an element of the legend box
-
setPARAM
Sets the parameters for the events triggered when the user clicks on an element of the legend box.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the parameter for the event triggered when the user clicks on an element of the legend box
-
getItemEvent
Returns the names of the events triggered when the user clicks on an element of the chart.- Returns:
- The names of the events triggered when the user clicks on an element of the chart
-
setItemEvent
Sets the names of the events triggered when the user clicks on an element of the chart.- Parameters:
itemEvent- The names of the events triggered when the user clicks on an element of the chart
-
setITEMEVENT
Sets the names of the events triggered when the user clicks on an element of the chart.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the name of an event triggered when the user clicks on an element of the chart
-
getItemParam
Returns the parameters for the events triggered when the user clicks on an element of the chart.- Returns:
- The parameters for the events triggered when the user clicks on an element of the chart
-
setItemParam
Sets the parameters for the events triggered when the user clicks on an element of the chart.- Parameters:
itemParam- The parameters for the events triggered when the user clicks on an element of the chart
-
setITEMPARAM
Sets the parameters for the events triggered when the user clicks on an element of the chart.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the parameter for the event triggered when the user clicks on an element of the chart
-
getValuesStep
Returns the step for the values (y) axis.- Returns:
- The step for the values (y) axis
-
setValuesStep
Sets the step for the values (y) axis.- Parameters:
valuesStep- The step for the values (y) axis
-
setVALUESSTEP
Sets the step for the values (y) axis.- Parameters:
s- The step for the values (y) axis
-
getValuesTitle
Returns the title for the values (y) axis.- Returns:
- The title for the values (y) axis
-
setValuesTitle
Sets the title for the values (y) axis.- Parameters:
valuesTitle- The title for the values (y) axis
-
setVALUESTITLE
Sets the title for the values (y) axis.- Parameters:
s- The title for the values (y) axis
-
getValuesTitleFont
public overit.geocall.charts.ChartFont getValuesTitleFont()Returns the font for the title of the values (y) axis.- Returns:
- The font for the title of the values (y) axis
-
setValuesTitleFont
public void setValuesTitleFont(overit.geocall.charts.ChartFont valuesTitleFont) Sets the font for the title of the values (y) axis.- Parameters:
valuesTitleFont- The font for the title of the values (y) axis
-
setVALUESTITLEFONT
Sets the font for the title of the values (y) axis.- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
-
getDomainTitleFont
public overit.geocall.charts.ChartFont getDomainTitleFont()Returns the font for the values on the values (y) axis.- Returns:
- The font for the values on the values (y) axis
-
setDomainTitleFont
public void setDomainTitleFont(overit.geocall.charts.ChartFont domainTitleFont) Sets the font for the title of the domain (x) axis.- Parameters:
domainTitleFont- The font for the title of the domain (x) axis
-
setDOMAINTITLEFONT
Sets the font for the title of the domain (x) axis.- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
-
getDomainTitle
Returns the title for the domain (x) axis.- Returns:
- The title for the domain (x) axis
-
setDomainTitle
Sets the title for the domain (x) axis.- Parameters:
domainTitle- The title for the domain (x) axis
-
setDOMAINTITLE
Sets the title for the domain (x) axis.- Parameters:
s- The title for the domain (x) axis
-
getValuesFont
public overit.geocall.charts.ChartFont getValuesFont()Returns the font for the values on the domain (x) axis.- Returns:
- The font for the values on the domain (x) axis
-
setValuesFont
public void setValuesFont(overit.geocall.charts.ChartFont valuesFont) Sets the font for the values on the values (y) axis.- Parameters:
valuesFont- The font for the values on the values (y) axis
-
setVALUESFONT
Sets the font for the values on the values (y) axis.- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
-
getDomainFont
public overit.geocall.charts.ChartFont getDomainFont()Returns the font for the values on the domain (x) axis.- Returns:
- The font for the values on the domain (x) axis
-
setDomainFont
public void setDomainFont(overit.geocall.charts.ChartFont domainFont) Sets the font for the values on the domain (x) axis.- Parameters:
domainFont- The font for the values on the domain (x) axis
-
setDOMAINFONT
Sets the font for the values on the domain (x) axis.- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
-
getDomainRotation
public int getDomainRotation()Returns the rotation for the values on the domain (x) axis.- Returns:
- The rotation for the values on the domain (x) axis
-
setDomainRotation
public void setDomainRotation(int domainRotation) Sets the rotation for the values on the domain (x) axis.- Parameters:
domainRotation- The rotation for the values on the domain (x) axis
-
setDOMAINROTATION
Sets the rotation for the values on the domain (x) axis.- Parameters:
s- The rotation for the values on the domain (x) axis
-
isStacked
public boolean isStacked()Returns whether the series should be stacked.- Returns:
- Whether the series should be stacked
-
setStacked
public void setStacked(boolean stacked) Sets whether the series should be stacked.- Parameters:
stacked- Whether the series should be stacked
-
setSTACKED
Sets whether the series should be stacked.- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default one, that isfalse
-
getItemTooltipFormat
Returns the format used for the tooltip messages.- Returns:
- The format used for the tooltip messages
-
setItemTooltipFormat
Sets the format used for the tooltip messages.- Parameters:
itemTooltipFormat- The format used for the tooltip messages
-
setITEMTOOLTIPFORMAT
Sets the format used for the tooltip messages.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the format used for the tooltip messages of the elements of the corresponding serie
-
getLabels
Returns the labels of the elements of each serie.- Returns:
- The labels of the elements of each serie
-
setLabels
Sets the labels of the elements of each serie.- Parameters:
labels- The labels of the elements of each serie
-
setLABELS
Sets the labels of the elements of each serie.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents one label of the elements of each serie
-
isVertical
public boolean isVertical()Returns whether the chart should be vertical or not.- Returns:
- Whether the chart should be vertical or not
-
setVertical
public void setVertical(boolean vertical) Sets whether the chart should be vertical or not.- Parameters:
vertical- Whether the chart should be vertical or not
-
setVERTICAL
Sets whether the chart should be vertical or not.- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default one, that istrue
-
isZoom
public boolean isZoom()Returns whether the chart should be zoomable or not.- Returns:
- Whether the chart should be zoomable or not
-
setZoom
public void setZoom(boolean zoom) Sets whether the chart should be zoomable or not.- Parameters:
zoom- Whether the chart should be zoomable or not
-
setZOOM
Sets whether the chart should be zoomable or not.- Parameters:
s- A string that represents a boolean value ("true" or "1", "false" or "0").
If the string is not recognized as a boolean value, it will be used the default one, that istrue
-
getItemLabelFormat
Returns the format used for the labels of the elements of each serie.- Returns:
- The format used for the labels of the elements of each serie
-
setItemLabelFormat
Sets the format used for the labels of the elements of each serie.- Parameters:
itemLabelFormat- The format used for the labels of the elements of each serie
-
setITEMLABELFORMAT
Sets the format used for the labels of the elements of each serie.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the format used for the labels of the elements of the corresponding serie
-
getItemLabelFont
public overit.geocall.charts.ChartFont getItemLabelFont() -
setItemLabelFont
public void setItemLabelFont(overit.geocall.charts.ChartFont itemLabelFont) -
setITEMLABELFONT
Sets the font used for the labels of the elements of each serie.- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
-
getSeries
Returns the series of the chart.- Returns:
- The series of the chart
-
getSerie
public overit.geocall.charts.Serie getSerie(int pos) Returns the serie in the desired position.- Parameters:
pos- The index of the desired serie- Returns:
- The serie in the desired position
-
addSerie
Adds a serie to the chart.- Parameters:
type- The type of the serieserie- The serie to add
-
clearSeries
public void clearSeries()Clears all the series of the chart. -
getPaints
-
getStrokes
-
getShapes
-
setup
protected void setup()Description copied from class:ComponentSetup the Component -
getChartSerieConfigurationBuilderHolder
-
getContentHtml
Description copied from interface:ArrangeableReturns the html code that represents the active part of the component, i.e. the field and the validation scripts- Specified by:
getContentHtmlin interfaceArrangeable- Overrides:
getContentHtmlin classChartBase- Parameters:
generationHandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the component
-
buildJsonChartConfig
- Specified by:
buildJsonChartConfigin classChartBase
-
addEventHandlers
- Overrides:
addEventHandlersin classChartBase
-