Package overit.geocall.basic.ui.control
Class ChartPie
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.ChartPie
- 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 pie chart.- See Also:
- GCApi:
- component
-
Nested Class Summary
Nested 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
ConstructorsModifierConstructorDescriptionChartPie()Creates a new instance of ChartPieprotectedChartPie(Holder<ChartScriptBuilder> chartScriptBuilderHolder, Holder<ChartPieConfigurationBuilder> chartPieConfigurationBuilderHolder) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEventHandlers(ChartScriptBuilder scriptBuilder) protected Stringprotected Holder<ChartPieConfigurationBuilder> 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 scriptsgetEvent()Returns the name of the event triggered when the user clicks on an element of the legend box.Returns the name of the event triggered when the user clicks on an element of the chart.overit.geocall.charts.ChartLabelBoxReturns the label box used for the labels of the elements of the chart.overit.geocall.charts.ChartFontReturns the font used for the labels of the elements of the chart.Returns the format used for the labels of the elements of the chart.Returns the labels of the elements of the chart.Returns the parameter for the event triggered when the user clicks on an element of the chart.Returns the format used for the tooltip messages.Returns the tooltip messages used for the elements of the chart.Returns the labels of the elements of the chart.getParam()Returns the parameter for the event triggered when the user clicks on an element of the legend box.doublegetRing()Returns the size of the ring's section.overit.geocall.charts.SeriegetSerie()Returns the data serie of the chart.booleanReturns true if the chart has item labels, false otherwise.voidSets the name of the event triggered when the user clicks on an element of the legend box.voidSets the name of the event triggered when the user clicks on an element of the chart.voidsetItemLabelBox(overit.geocall.charts.ChartLabelBox itemLabelBox) Sets the label box used for the labels of the elements of the chart.voidSets the label box used for the labels of the elements of the chart. ink parameters aren't supportedvoidsetItemLabelFont(overit.geocall.charts.ChartFont itemLabelFont) Sets the font used for the labels of the elements of the chart.voidSets the font used for the labels of the elements of the chart.voidsetITEMLABELFORMAT(String itemLabelFormat) Sets the format used for the labels of the elements of the chart.voidsetItemLabels(ListAttribute itemLabels) Sets the labels of the elements of the chart.voidSets the labels of the elements of the chart.voidSets the parameter for the event triggered when the user clicks on an element of the chart.voidsetItemTooltipFormat(String itemTooltipFormat) Sets the format used for the tooltip messages.voidSets the format used for the tooltip messages.voidsetItemTooltips(ListAttribute itemTooltips) Sets the tooltip messages used for the elements of the chart.voidSets the tooltip messages used for the elements of the chart.voidsetLabels(ListAttribute labels) Sets the labels of the elements of the chart.voidSets the labels of the elements of the chart.voidSets the parameter for the event triggered when the user clicks on an element of the legend box.voidsetRing(double ring) Sets the size of the ring's section, if greater than 0, the chart will be a doughnut chart.voidSets the size of the ring's section, if greater than 0, the chart will be a doughnut chart.voidsetSerie(overit.geocall.charts.Serie serie) Sets the data serie of the chart.voidSets the values of the data serie of the chart.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, setup, 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
-
ChartPie
public ChartPie()Creates a new instance of ChartPie -
ChartPie
protected ChartPie(Holder<ChartScriptBuilder> chartScriptBuilderHolder, Holder<ChartPieConfigurationBuilder> chartPieConfigurationBuilderHolder)
-
-
Method Details
-
getRing
public double getRing()Returns the size of the ring's section.- Returns:
- The size of the ring's section
-
setRing
public void setRing(double ring) Sets the size of the ring's section, if greater than 0, the chart will be a doughnut chart.- Parameters:
ring- The size of the ring's section
-
setRING
Sets the size of the ring's section, if greater than 0, the chart will be a doughnut chart.- Parameters:
s- The size of the ring's section
-
getSerie
public overit.geocall.charts.Serie getSerie()Returns the data serie of the chart.- Returns:
- The data serie of the chart
-
setSerie
public void setSerie(overit.geocall.charts.Serie serie) Sets the data serie of the chart.- Parameters:
serie- The data serie of the chart
-
setVALUES
Sets the values of the data serie of the chart.- Parameters:
vals- AListAttributein which every element, separated from the others by the | character, represents one value of the data serie
-
getLabels
Returns the labels of the elements of the chart.- Returns:
- The labels of the elements of the chart
-
setLabels
Sets the labels of the elements of the chart.- Parameters:
labels- The labels of the elements of the chart
-
setLABELS
Sets the labels of the elements of the chart.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents one label of the elements of the chart
-
getItemEvent
Returns the name of the event triggered when the user clicks on an element of the chart.- Returns:
- The name of the event triggered when the user clicks on an element of the chart
-
setITEMEVENT
Sets the name of the event triggered when the user clicks on an element of the chart.- Parameters:
s- The name of the event triggered when the user clicks on an element of the chart
-
getItemParam
Returns the parameter for the event triggered when the user clicks on an element of the chart.- Returns:
- The parameter for the event triggered when the user clicks on an element of the chart
-
setITEMPARAM
Sets the parameter for the event triggered when the user clicks on an element of the chart.- Parameters:
s- The parameter for the event triggered when the user clicks on an element of the chart
-
getEvent
Returns the name of the event triggered when the user clicks on an element of the legend box.- Returns:
- The name of the event triggered when the user clicks on an element of the legend box
-
setEVENT
Sets the name of the event triggered when the user clicks on an element of the legend box.- Parameters:
s- The name of the event triggered when the user clicks on an element of the legend box
-
getParam
Returns the parameter for the event triggered when the user clicks on an element of the legend box.- Returns:
- The parameter for the event triggered when the user clicks on an element of the legend box
-
setPARAM
Sets the parameter for the event triggered when the user clicks on an element of the legend box.- Parameters:
s- The parameter for the event triggered when the user clicks on an element of the legend box
-
getItemTooltips
Returns the tooltip messages used for the elements of the chart.- Returns:
- The tooltip messages used for the elements of the chart
-
setItemTooltips
Sets the tooltip messages used for the elements of the chart.- Parameters:
itemTooltips- The tooltip messages used for the elements of the chart
-
setITEMTOOLTIPS
Sets the tooltip messages used for the elements of the chart.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the message that will appear as a tooltip for the element of the data serie
-
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- The format used for the tooltip messages
-
hasItemLabels
public boolean hasItemLabels()Returns true if the chart has item labels, false otherwise.- Returns:
- True if the chart has item labels, false otherwise
-
getItemLabelFormat
Returns the format used for the labels of the elements of the chart.- Returns:
- The format used for the labels of the elements of the chart
-
setITEMLABELFORMAT
Sets the format used for the labels of the elements of the chart.- Parameters:
itemLabelFormat- The format used for the labels of the elements of the chart
-
getItemLabels
Returns the labels of the elements of the chart.- Returns:
- The labels of the elements of the chart
-
setItemLabels
Sets the labels of the elements of the chart.- Parameters:
itemLabels- The labels of the elements of the chart
-
setITEMLABELS
Sets the labels of the elements of the chart.- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the label of the corresponding element of the chart
-
getItemLabelFont
public overit.geocall.charts.ChartFont getItemLabelFont()Returns the font used for the labels of the elements of the chart.- Returns:
- The font used for the labels of the elements of the chart
-
setItemLabelFont
public void setItemLabelFont(overit.geocall.charts.ChartFont itemLabelFont) Sets the font used for the labels of the elements of the chart.- Parameters:
itemLabelFont- The font used for the labels of the elements of the chart
-
setITEMLABELFONT
Sets the font used for the labels of the elements of the chart.- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
-
getItemLabelBox
public overit.geocall.charts.ChartLabelBox getItemLabelBox()Returns the label box used for the labels of the elements of the chart.- Returns:
- The label box used for the labels of the elements of the chart
-
setItemLabelBox
public void setItemLabelBox(overit.geocall.charts.ChartLabelBox itemLabelBox) Sets the label box used for the labels of the elements of the chart.- Parameters:
itemLabelBox- The label box used for the labels of the elements of the chart
-
setITEMLABELBOX
Sets the label box used for the labels of the elements of the chart. ink parameters aren't supported- Parameters:
s- A string in the format:background-color,,border thickness,,.
-
getChartPieConfigurationBuilderHolder
-
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
-