Package overit.geocall.basic.ui.control
Class JFCSerie
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.ui.control.JFCSerie
- All Implemented Interfaces:
Serializable,Cloneable,org.jfree.chart.labels.CategoryItemLabelGenerator,org.jfree.chart.labels.CategoryToolTipGenerator,org.jfree.chart.urls.CategoryURLGenerator,overit.geocall.marks.MethodExposer,overit.geocall.marks.NameExposer,AjaxableComponent,Arrangeable,Badgeable,Identified,Tool,overit.geocall.ux.configurability.UIConfigurable,overit.geocall.ux.edm.ModelConfigurable
- Direct Known Subclasses:
overit.geocallapp.wfm.ui.control.JFCWFMSerie
@Component
public class JFCSerie
extends Container
implements Arrangeable, AjaxableComponent, org.jfree.chart.labels.CategoryItemLabelGenerator, org.jfree.chart.urls.CategoryURLGenerator, org.jfree.chart.labels.CategoryToolTipGenerator, Cloneable, Serializable
This class implements the serie chart object, using the JFreeChart library. With this object it is possible to
obtain a point chart, a line chart, a bar chart or an area chart.
- See Also:
- GCApi:
- component
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassclassclassclassNested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ArrayListprotected booleanprotected ArrayListprotected booleanprotected ArrayListprotected booleanprotected intprotected JFCStyleprotected booleanprotected overit.geocall.charts.ChartFontprotected booleanprotected ListAttributeprotected doubleprotected ListAttributeprotected overit.geocall.charts.ChartFontprotected ListAttributeprotected Stringprotected intprotected Stringprotected overit.geocall.charts.ChartFontprotected ListAttributeprotected ListAttributeprotected intprotected intprotected ConcreteGateprotected Paintprotected ListAttributeprotected Paintprotected overit.geocall.charts.ChartFontprotected ListAttributeprotected Stringprotected Stringprotected Stringprotected ListAttributeprotected intprotected ListAttributeprotected ListAttributeprotected overit.geocall.charts.ChartLegendBoxprotected overit.geocall.charts.ChartFontprotected ArrayListprotected doubleprotected ConcreteGateprotected ListAttributeprotected Rangerprotected doubleprotected doubleprotected doubleprotected booleanprotected ArrayListprotected booleanprotected booleanprotected overit.geocall.charts.ChartFontprotected ListAttributeprotected doubleprotected overit.geocall.charts.ChartFontprotected booleanprotected ListAttributeprotected overit.geocall.charts.ChartFontprotected ListAttributeprotected ListAttributeprotected ListAttributeprotected ListAttributeprotected doubleprotected doubleprotected Stringprotected doubleprotected Stringprotected overit.geocall.charts.ChartFontprotected booleanprotected longprotected booleanprotected intprotected intprotected intprotected intprotected intprotected intstatic final StringDefines the path that must be used byFactory.make(java.lang.String, java.lang.Object)protected ListAttributeprotected booleanstatic final charIdentifies the area chart typologystatic final charIdentifies the bar chart typologystatic final charIdentifies the line chart typologyFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields 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, safeInlineServiceFields inherited from interface overit.geocall.ui.AjaxableComponent
FRAME_ID_PREFIX, NOTRANSITION, TRANSITION_BODY_MORPH, TRANSITION_BODY_RESIZE, TRANSITION_BORDER_RESIZE, TRANSITION_DOWN, TRANSITION_UP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSerie(char type, overit.geocall.charts.Serie s) Adds aSerieof the specific type to the chartvoidSets the aria-description attribute.voidEvery component can add a script to the StringBuilder, script executed when the component is created.voidchanged(overit.geocall.ux.servlet.processor.Change change) Defines the morphing of the element that occurs when there is an Ajax interactionvoidEmpties the data series of the chartgenerateColumnLabel(org.jfree.data.category.CategoryDataset cd, int column) generateLabel(org.jfree.data.category.CategoryDataset cd, int row, int column) generateRowLabel(org.jfree.data.category.CategoryDataset cd, int row) generateToolTip(org.jfree.data.category.CategoryDataset cd, int row, int column) generateURL(org.jfree.data.category.CategoryDataset cd, int row, int column) org.jfree.chart.JFreeChartCreates the bar chartprotected Object[]getBaseFields(int s, int c) protected Stringorg.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 scriptsgetCopy()Clones the JFCSerie objectoverit.geocall.ux.servlet.processor.ChangeDefines the defaultChangeobject for the elementorg.apache.ecs.ElementgetDescriptionHtml(Object generationhandle, EntitySet es) Returns the html code that represents the component description i.e. the formatted label of the fieldorg.apache.ecs.ElementgetFrameHtml(overit.geocall.ux.servlet.processor.Change c, EntitySet es) Defines the html part of the element that changes when an Ajax interaction occursReturns the object to generate when the Arrangeable element is composed by more than one elementorg.apache.ecs.ElementgetHiddenHtml(Object generationhandle, EntitySet es) Returns the hidden but active html part of an hidden componentorg.apache.ecs.ElementReturns the html code of the Containerprotected ConcreteGateReturns the names of the events triggered when the user clicks on an element of the chartprotected ArrayListprotected JFCStyleReturns the labels used in the legend boxprotected ConcreteGateoverit.geocall.charts.SeriegetSerie(int pos) Returns the dataSeriein the desired positionprotected StringReturns the tooltip messages used for the elements of the legend boxprotected voidprotected static booleanbooleanShows theRangerthat manages the values of the domain (x) axisbooleanonLabel(HashGetter hg) Shows the label of the desired elementbooleanonMark(HashGetter hg) Shows the marker of the desired data seriebooleanChanges the visualization of the values of the chart, depending on the values selected in theRangerbooleanShows the label of the desired element and hides all the other labelsbooleanShows theRangerthat manages the values of the value (y) axisprotected voidprotected booleanvoidControls anti alias in chart renderingvoidDefines, only for the area charts, if the areas must be stacked or notvoidDefines, only for the bar charts, if the bars must be stacked or notvoidSets the width of the bars for the bar chartvoidDefines if the chart will have a three dimensional design or notvoidSets the font for the labels of the values on the domain (x) axisvoidSets if the grid lines of the domain (x) axis will be visible (default value) or notvoidsetDOMAINLABELS(String labels) Sets the labels of the elements of the domain (x) axis for each serievoidSets the margin between the values on the domain (x) axisvoidsetDOMAINMARKERCOLOR(String markers) Sets the colors of the markers for elements of the domain (x) axis for each serievoidsetDOMAINMARKERFONT(String font) Sets the font of the markers for the elements of the domain (x) axisvoidsetDOMAINMARKERLABEL(String labels) Sets the labels of the markers for the elements of the domain (x) axis for each serievoidsetDOMAINMARKERPOSITION(String position) Sets the position of the labels of the markers for the elements of the domain (x) axisvoidSets the degrees of the rotation for the labels of the values on the domain (x) axisvoidSets the label for the domain (x) axisvoidSets the font for the label of the domain (x) axisvoidsetDOMAINTOOLTIPS(String tooltips) Sets the tooltips of the elements of the domain (x) axis for each serievoidSets the name of the event triggered when the user clicks on an element of the legend boxvoidDefines the format of the image that will be createdvoidSets the height of the chartvoidSets theTextFormatused for the alternative text attributes that appears into the area element of the graph (it's used for accessibility).voidSets the background color of the data area of the chartvoidSets the names of the events triggered when the user clicks on an element of the chartvoidSets the background color of the data inset area of the chart (only if the chart has a three dimensional design)voidSets the font used for the label of the items of the chartvoidSets theTextFormatused for the labels of the elements of each serievoidSets the distance of the label with respect to the corresponding elementvoidSets the position of the labels of the elements of the serievoidSets the degrees of the rotation of the labels of the elements of the serievoidSets the param for the events triggered when the user clicks on an element of the chartvoidDefines the size of the items.voidSets theTextFormatused for the tooltip messages that appears when the user stay with the cursor on an element of each serievoidsetJFCStyle(JFCStyle cs) Sets theJFCStyleused to draw the chart elementsvoidSets the labels used in the legend boxvoidDefines the characteristics of the legend boxvoidSets the font used for the element of the legend boxvoidSets the lower margin for the value (y) axis.voidSets the param for the event triggered when the user clicks on an element of the legend boxvoidSets the maximum value for theRangerthat manages the values of the value (y) axisvoidSets the minimum value for theRangerthat manages the values of the value (y) axisvoidSets the step between the minimum and maximum values for theRangerthat manages the values of the value (y) axisvoidsetROUNDED(String s) Defines if the chart will have a rounded design or notprotected voidsetSeriesItemLabelPosition(int serie, org.jfree.chart.renderer.category.AbstractCategoryItemRenderer r) voidDefines if the chart will have a shadow or notvoidControls anti alias of texts in chart renderingvoidSets the font used for the title of the chartvoidSets the tooltip messages used for the elements of the legend box.protected voidsetup()Setup the ComponentvoidSets the upper margin for the value (y) axis.voidSets the font for the values of the value (y) axisvoidSets if the grid lines of the value (y) axis will be visible or not (default value)voidsetVALUESMARKERCOLOR(String markers) Sets the colors of the markers for elements of the value (y) axis for each serievoidsetVALUESMARKERFONT(String font) Sets the font of the markers for the elements of the value (y) axisvoidsetVALUESMARKERLABEL(String labels) Sets the labels of the markers for the elements of the value (y) axis for each serievoidsetVALUESMARKERPOSITION(String position) Sets the position of the labels of the markers for the elements of the value (y) axisvoidsetVALUESMARKERSIZE(String sizes) Sets the sizes of the markers for the elements of the value (y) axis for each serie.voidsetVALUESMARKERVALUE(String values) Sets the values of the markers for the elements of the value (y) axis for each serievoidSets the maximum value for the value (y) axis.voidSets the minimum value for the value (y) axis.voidDefines the format of the valuesvoidSets the step between the values for the value (y) axis.voidSets the label of the value (y) axisvoidSets the font for the label of the value (y) axisvoidDefines if the values of the value (y) axis must have a vertical orientation or not (default)voidDefines the chart orientation (vertical, that is the default value, or horizontal)voidSets the width of the chartvoidSets the maximum zoom value for the domain (x) axis, with reference to the steps that can be performed through theRangervoidSets the minimum zoom value for the domain (x) axis, with reference to the steps that can be performed through theRangervoidSets the maximum zoom value for the value (y) axis, with reference to the steps that can be performed through theRangervoidSets the minimum zoom value for the value (y) axis, with reference to the steps that can be performed through theRangerMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getRO, getROField, onClose, onOpen, onOpenChildContainer, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, 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, 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
-
Field Details
-
FACTORY_PATH
Defines the path that must be used byFactory.make(java.lang.String, java.lang.Object)- See Also:
-
TYPE_BAR
public static final char TYPE_BARIdentifies the bar chart typology- See Also:
-
TYPE_AREA
public static final char TYPE_AREAIdentifies the area chart typology- See Also:
-
TYPE_LINE
public static final char TYPE_LINEIdentifies the line chart typology- See Also:
-
_imageGate
-
_mapGate
-
_version
protected long _version -
_format
protected int _format -
_width
protected int _width -
_height
protected int _height -
_ddd
protected boolean _ddd -
_rounded
protected boolean _rounded -
_vertical
protected boolean _vertical -
_areastacked
protected boolean _areastacked -
_barstacked
protected boolean _barstacked -
_shadow
protected boolean _shadow -
_domainGridLine
protected boolean _domainGridLine -
_valuesGridLine
protected boolean _valuesGridLine -
_valuesmin
protected double _valuesmin -
_valuesmax
protected double _valuesmax -
_valuesstep
protected double _valuesstep -
_valuesvertical
protected boolean _valuesvertical -
_valuesnumberformat
-
_valuesFont
protected overit.geocall.charts.ChartFont _valuesFont -
_valuesTitle
-
_valuesTitleFont
protected overit.geocall.charts.ChartFont _valuesTitleFont -
_valuesMarkerValue
-
_valuesMarkerSize
-
_valuesMarkerColor
-
_valuesMarkerFont
protected overit.geocall.charts.ChartFont _valuesMarkerFont -
_valuesMarkerLabel
-
_valuesMarkerPosition
-
_itemLabelRotation
-
_itemLabelPosition
-
_itemLabelOffset
-
_itemLabelFont
protected overit.geocall.charts.ChartFont _itemLabelFont -
_itemBackgroundColor
-
_itemInsetBackgroundColor
-
_itemLabelFormat
-
_itemTooltipFormat
-
_itemEvent
-
_itemParam
-
itemAltFormat
-
removeAreaTooltip
protected boolean removeAreaTooltip -
_upperMargin
protected double _upperMargin -
_lowerMargin
protected double _lowerMargin -
_barwidth
protected int _barwidth -
_domainTitle
-
_domainTitleFont
protected overit.geocall.charts.ChartFont _domainTitleFont -
_domainrotation
protected int _domainrotation -
_domainmargin
protected double _domainmargin -
_domainLabels
-
_domainFont
protected overit.geocall.charts.ChartFont _domainFont -
_domainTooltips
-
_domainMarkerColor
-
_domainMarkerFont
protected overit.geocall.charts.ChartFont _domainMarkerFont -
_domainMarkerLabel
-
_domainMarkerPosition
-
_series
-
_barseries
-
_areaseries
-
_lineseries
-
_legendFont
protected overit.geocall.charts.ChartFont _legendFont -
_legendBox
protected overit.geocall.charts.ChartLegendBox _legendBox -
_itemSize
protected int _itemSize -
_titleFont
protected overit.geocall.charts.ChartFont _titleFont -
_alJFCMessages
-
_ranger
-
_rangerValuesMin
protected double _rangerValuesMin -
_rangerValuesMax
protected double _rangerValuesMax -
_rangerValuesStep
protected double _rangerValuesStep -
_zoomValuesStepNumber
protected int _zoomValuesStepNumber -
_zoomValuesMin
protected int _zoomValuesMin -
_zoomValuesMax
protected int _zoomValuesMax -
_zoomDomainMin
protected int _zoomDomainMin -
_zoomDomainMax
protected int _zoomDomainMax -
_antiAlias
protected boolean _antiAlias -
_textAntiAlias
protected boolean _textAntiAlias -
_serieIds
-
_cs
-
_labels
-
_tooltips
-
_event
-
_param
-
-
Constructor Details
-
JFCSerie
public JFCSerie()
-
-
Method Details
-
generateRowLabel
- Specified by:
generateRowLabelin interfaceorg.jfree.chart.labels.CategoryItemLabelGenerator
-
generateColumnLabel
- Specified by:
generateColumnLabelin interfaceorg.jfree.chart.labels.CategoryItemLabelGenerator
-
generateLabel
- Specified by:
generateLabelin interfaceorg.jfree.chart.labels.CategoryItemLabelGenerator
-
generateToolTip
- Specified by:
generateToolTipin interfaceorg.jfree.chart.labels.CategoryToolTipGenerator
-
generateURL
- Specified by:
generateURLin interfaceorg.jfree.chart.urls.CategoryURLGenerator
-
getBaseFields
-
invalidateCurrentRaw
protected void invalidateCurrentRaw() -
setFORMAT
Defines the format of the image that will be created- Parameters:
s-JFCRaw.PNGto create a PNG image,JFCRaw.JPEGto create a JPEG image. The default value isJFCRaw.PNG
-
setLABELS
Sets the labels used in the legend box- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the label that will appear in the legend box
-
getLabels
Returns the labels used in the legend box- Returns:
- The
ListAttributethat contains the labels used in the legend box
-
setTOOLTIPS
Sets the tooltip messages used for the elements of the legend box. The tooltip will appear when the user stay with the cursor on an element of the legend box- 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 legend box
-
getTooltips
Returns the tooltip messages used for the elements of the legend box- Returns:
- The
ListAttributethat contains the tooltip messages used for the elements 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- A string that represents the name of an event
-
setPARAM
Sets the param for the event triggered when the user clicks on an element of the legend box- Parameters:
s- A string that represents the param for the event
-
setBARWIDTH
Sets the width of the bars for the bar chart- Parameters:
s- A value between 0 and 100 that defines the width of the bars. If the value is out of the range it will be normalized.
-
setDOMAINTITLE
Sets the label for the domain (x) axis- Parameters:
s- The string that represents the label for the domain (x) axis
-
setDOMAINTITLEFONT
Sets the font for the label of the domain (x) axis- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
The possible values for the variation of the font are:i(italic) andb(bold). It is possible to use both the values, likeiborbito obtain the font both bold and italic.
The format for the color is described in theJFCStyleclass.
You can omit some values, in which case you fall back to the default ones. The default font setting is:Tahoma,plain,12,#000000
-
setDOMAINFONT
Sets the font for the labels of the values on the domain (x) axis- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color. SeesetDOMAINTITLEFONT(java.lang.String)
-
setDOMAINROTATION
Sets the degrees of the rotation for the labels of the values on the domain (x) axis- Parameters:
s- An integer value that defines the rotation
-
setDOMAINGRIDLINE
Sets if the grid lines of the domain (x) axis will be visible (default value) 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
-
setVALUESGRIDLINE
Sets if the grid lines of the value (y) axis will be visible or not (default value)- 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
-
setDOMAINMARGIN
Sets the margin between the values on the domain (x) axis- Parameters:
s- A double that defines the margin between the values on the domain (x) axis
-
setITEMBACKGROUNDCOLOR
Sets the background color of the data area of the chart- Parameters:
s- The background color. The format for the color is described in theJFCStyleclass.
-
setITEMINSETBACKGROUNDCOLOR
Sets the background color of the data inset area of the chart (only if the chart has a three dimensional design)- Parameters:
s- The background color. The format for the color is described in theJFCStyleclass.
-
setITEMLABELROTATION
Sets the degrees of the rotation of the labels of the elements of the serie- Parameters:
s- An integer value that defines the rotation
-
setITEMLABELPOSITION
Sets the position of the labels of the elements of the serie- Parameters:
s- A string that defines the position of the labels. The format that must be used is composed by two lowercase letters followed by two uppercase letters; the first ones defines the angle of rest of the element (that can be an element of the serie or a marker), the second ones the angle of rest of the label. The possible values (for both the lowercase and uppercase letters) are: (t)op, (m)iddle, (b)ottom for the height and (l)eft, (c)enter, (r)ight for the width. For example:mlTR.To allow a better management of the positioning of the labels of a bar chart, it is possible to indicate another letter, that is the letter
i. The introduction of this letter serves to indicate that the label will be inserted inside the elements rather than outside. If the letteriis indicated, the labels will appear only if they are entirely contained within the element.
-
setITEMLABELOFFSET
Sets the distance of the label with respect to the corresponding element- Parameters:
s- A numeric value that can be positive or negative. The direction of movement depends on the type of positioning of the label
-
setITEMLABELFONT
Sets the font used for the label of the items of the chart- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color. SeesetDOMAINTITLEFONT(java.lang.String)
-
setLEGENDFONT
Sets the font used for the element of the legend box- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color.
SeesetDOMAINTITLEFONT(java.lang.String)
-
setTITLEFONT
Sets the font used for the title of the chart- Parameters:
s- A string that defines the font, with the format:name,variant,dimension,color. SeesetDOMAINTITLEFONT(java.lang.String)
-
setLEGENDBOX
Defines the characteristics of the legend box- Parameters:
s- A string that defines the format.
It must be composed by a serie of strings, separated by the comma, with the following meaning:position,background color,border thickness,border color.
The possible values for the position are:t(top),b(bottom),l(left),r(right).
The format for the colors is described in theJFCStyleclass.
The thickness value must be a number.
You can omit some values, in which case you fall back to the default ones
-
setITEMSIZE
Defines the size of the items. For the bar and the area charts defines the size of the items of the legend box; for the point and the line charts defines the size of the items of the legend box and the size of the elements of the charts- Parameters:
s- s A double value that defines the size of the items. The default value is 6.
-
setVALUESNUMBERFORMAT
Defines the format of the values- Parameters:
s- A string that represents a decimal format. The default value is,##0.###
-
setITEMLABELFORMAT
Sets theTextFormatused 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
-
setITEMTOOLTIPFORMAT
Sets theTextFormatused for the tooltip messages that appears when the user stay with the cursor on an element of each serie- 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
-
setITEMALTFORMAT
Sets theTextFormatused for the alternative text attributes that appears into the area element of the graph (it's used for accessibility).- Parameters:
s- AListAttributein which every element, separated from the others by the | character, represents the format used for the alt attribute of the area elements of the graph.
-
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 event triggered when the user clicks on an element of the corrsponding data serie
-
setITEMPARAM
Sets the param 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 param for the event triggered when the user clicks on an element of the corrsponding data serie
-
getItemEvents
Returns the names of the events triggered when the user clicks on an element of the chart- Returns:
- A list with the names of the events triggered when the user clicks on an element of the chart
-
getCopy
Clones the JFCSerie object- Returns:
- A clone of the object
-
setWIDTH
Sets the width of the chart- Parameters:
s- The width of the chart, expressed in pixel. The default value is 400
-
setHEIGHT
Sets the height of the chart- Parameters:
s- The height of the chart, expressed in pixel. The default value is 300
-
setDDD
Defines if the chart will have a three dimensional design 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 value, that isfalse
-
setROUNDED
Defines if the chart will have a rounded design 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 value, that isfalse
-
setSHADOW
Defines if the chart will have a shadow 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
-
setVERTICAL
Defines the chart orientation (vertical, that is the default value, or horizontal)- 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
-
setAREASTACKED
Defines, only for the area charts, if the areas must be stacked 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 isfalse
-
setBARSTACKED
Defines, only for the bar charts, if the bars must be stacked 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 isfalse
-
setDOMAINLABELS
Sets the labels of the elements of the domain (x) axis for each serie- Parameters:
labels- AListAttributethat contains the labels
-
setDOMAINTOOLTIPS
Sets the tooltips of the elements of the domain (x) axis for each serie- Parameters:
tooltips- AListAttributethat contains the tooltips
-
setDOMAINMARKERCOLOR
Sets the colors of the markers for elements of the domain (x) axis for each serie- Parameters:
markers- AListAttributethat contains the colors. The format for the colors is described in theJFCStyleclass.
-
setDOMAINMARKERFONT
Sets the font of the markers for the elements of the domain (x) axis- Parameters:
font- A string that defines the font. For the font definition seesetDOMAINTITLEFONT(java.lang.String)
-
setDOMAINMARKERLABEL
Sets the labels of the markers for the elements of the domain (x) axis for each serie- Parameters:
labels- AListAttributethat contains the labels
-
setDOMAINMARKERPOSITION
Sets the position of the labels of the markers for the elements of the domain (x) axis- Parameters:
position- A string that defines the position. The possible values are: (t)op or (b)ottom
-
setVALUESMARKERVALUE
Sets the values of the markers for the elements of the value (y) axis for each serie- Parameters:
values- AListAttributethat defines the values of the markers for each serie
-
setVALUESMARKERSIZE
Sets the sizes of the markers for the elements of the value (y) axis for each serie. For the delta markers every values represents the range starting from the value and adding a quantity equal to the size- Parameters:
sizes- AListAttributethat defines the sizes of the markers for each serie
-
setVALUESMARKERCOLOR
Sets the colors of the markers for elements of the value (y) axis for each serie- Parameters:
markers- AListAttributethat contains the colors. The format for the colors is described in theJFCStyleclass.
-
setVALUESMARKERFONT
Sets the font of the markers for the elements of the value (y) axis- Parameters:
font- A string that defines the font. For the font definition seesetDOMAINTITLEFONT(java.lang.String)
-
setVALUESMARKERLABEL
Sets the labels of the markers for the elements of the value (y) axis for each serie- Parameters:
labels- AListAttributethat contains the labels
-
setVALUESMARKERPOSITION
Sets the position of the labels of the markers for the elements of the value (y) axis- Parameters:
position- A string that defines the position. For the format of the string that defines the position seesetITEMLABELPOSITION(java.lang.String)
-
setVALUESMIN
Sets the minimum value for the value (y) axis. It must always be used in conjunction with the methodsetVALUESMAX(java.lang.String)- Parameters:
s- A double value that represents the minimum value for the y axis
-
setVALUESMAX
Sets the maximum value for the value (y) axis. It must always be used in conjunction with the methodsetVALUESMIN(java.lang.String)- Parameters:
s- A double value that represents the maximum value for the y axis
-
setZOOMVALUESMIN
Sets the minimum zoom value for the value (y) axis, with reference to the steps that can be performed through theRanger- Parameters:
s- An integer that defines the minimum zoom value. The default is -1, that means no zoom value.
-
setZOOMVALUESMAX
Sets the maximum zoom value for the value (y) axis, with reference to the steps that can be performed through theRanger- Parameters:
s- An integer that defines the maximum zoom value. The default is -1, that means no zoom value.
-
setRANGERVALUESMIN
Sets the minimum value for theRangerthat manages the values of the value (y) axis- Parameters:
s- A double that corresponds to the minimum value for the ranger
-
setRANGERVALUESMAX
Sets the maximum value for theRangerthat manages the values of the value (y) axis- Parameters:
s- A double that corresponds to the maximum value for the ranger
-
setRANGERVALUESSTEP
Sets the step between the minimum and maximum values for theRangerthat manages the values of the value (y) axis- Parameters:
s- A double that corresponds to the step
-
setZOOMDOMAINMIN
Sets the minimum zoom value for the domain (x) axis, with reference to the steps that can be performed through theRanger- Parameters:
s- An integer that defines the minimum zoom value. The default is -1, that means no zoom value.
-
setZOOMDOMAINMAX
Sets the maximum zoom value for the domain (x) axis, with reference to the steps that can be performed through theRanger- Parameters:
s- An integer that defines the maximum zoom value. The default is -1, that means no zoom value.
-
setUPPERMARGIN
Sets the upper margin for the value (y) axis.- Parameters:
s- A double value that represents the upper margin for the y axis
-
setLOWERMARGIN
Sets the lower margin for the value (y) axis.- Parameters:
s- A double value that represents the lower margin for the y axis
-
setVALUESSTEP
Sets the step between the values for the value (y) axis.- Parameters:
s- A double value that represents the step between the values
-
setVALUESVERTICAL
Defines if the values of the value (y) axis must have a vertical orientation or not (default)- 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
-
setVALUESTITLEFONT
Sets the font for the label of the value (y) axis- Parameters:
s- A string that defines the font. For the font definition seesetDOMAINTITLEFONT(java.lang.String)
-
setVALUESFONT
Sets the font for the values of the value (y) axis- Parameters:
s- A string that defines the font. For the font definition seesetDOMAINTITLEFONT(java.lang.String)
-
setVALUESTITLE
Sets the label of the value (y) axis- Parameters:
s- A string that represents the label for the value (y) axis
-
setANTIALIAS
Controls anti alias in chart rendering- Parameters:
b- 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 value, that istrue
-
setTEXTANTIALIAS
Controls anti alias of texts in chart rendering- Parameters:
b- 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 value, that istrue
-
ARIADESCRIPTION
Sets the aria-description attribute.- Parameters:
s- the aria-description attribute to be set.
-
clearDataSeries
public void clearDataSeries()Empties the data series of the chart -
addSerie
public void addSerie(char type, overit.geocall.charts.Serie s) Adds aSerieof the specific type to the chart -
getSerie
public overit.geocall.charts.Serie getSerie(int pos) Returns the dataSeriein the desired position- Parameters:
pos- The index of the desired serie- Returns:
- The data
Seriein the desired position
-
setup
protected void setup()Description copied from class:ComponentSetup the Component -
seriesHasTooltip
protected boolean seriesHasTooltip() -
getHiddenHtml
Description copied from interface:ArrangeableReturns the hidden but active html part of an hidden component- Specified by:
getHiddenHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the hidden part of the component
-
getHtml
Description copied from class:ContainerReturns the html code of the Container -
getGenerationHandle
Description copied from interface:ArrangeableReturns the object to generate when the Arrangeable element is composed by more than one element- Specified by:
getGenerationHandlein interfaceArrangeable- Returns:
- The Object to generate
-
getDescriptionHtml
Description copied from interface:ArrangeableReturns the html code that represents the component description i.e. the formatted label of the field- Specified by:
getDescriptionHtmlin interfaceArrangeable- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the label of the field
-
getChartName
-
prepareGates
protected void prepareGates() -
getImageGate
-
getMapGate
-
getBarChart
public org.jfree.chart.JFreeChart getBarChart()Creates the bar chart- Returns:
- The
JFreeChartinstance of the bar chart
-
setSeriesItemLabelPosition
protected void setSeriesItemLabelPosition(int serie, org.jfree.chart.renderer.category.AbstractCategoryItemRenderer r) -
getFrameHtml
public org.apache.ecs.Element getFrameHtml(overit.geocall.ux.servlet.processor.Change c, EntitySet es) Description copied from interface:AjaxableComponentDefines the html part of the element that changes when an Ajax interaction occurs- Specified by:
getFrameHtmlin interfaceAjaxableComponent- Parameters:
c- TheChangeobject that defines the specific morphing type for the elementes- TheEntitySetto which the element belongs- Returns:
- The html part of the element that changes when an Ajax interaction occurs
-
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- Parameters:
generationhandle- the unique generatin handlees- the page entity set- Returns:
- The html code of the component
-
getSerieLabels
-
getJFCMessages
-
changed
public void changed(overit.geocall.ux.servlet.processor.Change change) Description copied from interface:AjaxableComponentDefines the morphing of the element that occurs when there is an Ajax interaction- Specified by:
changedin interfaceAjaxableComponent- Parameters:
change- TheChangeobject that defines the specific morphing type for the element
-
getDefaultChange
public overit.geocall.ux.servlet.processor.Change getDefaultChange()Description copied from interface:AjaxableComponentDefines the defaultChangeobject for the element- Specified by:
getDefaultChangein interfaceAjaxableComponent- Returns:
- The default
Changeobject that defines the default morphing type of the element
-
buildSetupScript
Description copied from class:ComponentEvery component can add a script to the StringBuilder, script executed when the component is created.- Overrides:
buildSetupScriptin classComponent- Parameters:
sb- The StringBuilder on which we want to add the script
-
getJFCStyle
-
setJFCStyle
Sets theJFCStyleused to draw the chart elements- Parameters:
cs- The style used to draw the elements of the chart
-
isValidNumberFormat
-
onLabel
Shows the label of the desired element- Parameters:
hg- TheHashGetterthat contains the references of the serie and element- Returns:
true
-
onSingleLabel
Shows the label of the desired element and hides all the other labels- Parameters:
hg- TheHashGetterthat contains the references of the serie and element- Returns:
true
-
onMark
Shows the marker of the desired data serie- Parameters:
hg- TheHashGetterthat contains the reference to the desired serie- Returns:
true
-
onValuesRanger
Shows theRangerthat manages the values of the value (y) axis- Parameters:
hg- Not used- Returns:
true
-
onDomainRanger
Shows theRangerthat manages the values of the domain (x) axis- Parameters:
hg- Not used- Returns:
true
-
onRangerClick
Changes the visualization of the values of the chart, depending on the values selected in theRanger- Parameters:
hg- TheHashGetterthat contains the references to the values selected- Returns:
true
-