Class 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
  • Field Details

    • FACTORY_PATH

      public static final String FACTORY_PATH
      Defines the path that must be used by Factory.make(java.lang.String, java.lang.Object)
      See Also:
    • TYPE_BAR

      public static final char TYPE_BAR
      Identifies the bar chart typology
      See Also:
    • TYPE_AREA

      public static final char TYPE_AREA
      Identifies the area chart typology
      See Also:
    • TYPE_LINE

      public static final char TYPE_LINE
      Identifies the line chart typology
      See Also:
    • _imageGate

      protected ConcreteGate _imageGate
    • _mapGate

      protected ConcreteGate _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

      protected String _valuesnumberformat
    • _valuesFont

      protected overit.geocall.charts.ChartFont _valuesFont
    • _valuesTitle

      protected String _valuesTitle
    • _valuesTitleFont

      protected overit.geocall.charts.ChartFont _valuesTitleFont
    • _valuesMarkerValue

      protected ListAttribute _valuesMarkerValue
    • _valuesMarkerSize

      protected ListAttribute _valuesMarkerSize
    • _valuesMarkerColor

      protected ListAttribute _valuesMarkerColor
    • _valuesMarkerFont

      protected overit.geocall.charts.ChartFont _valuesMarkerFont
    • _valuesMarkerLabel

      protected ListAttribute _valuesMarkerLabel
    • _valuesMarkerPosition

      protected ListAttribute _valuesMarkerPosition
    • _itemLabelRotation

      protected String _itemLabelRotation
    • _itemLabelPosition

      protected String _itemLabelPosition
    • _itemLabelOffset

      protected String _itemLabelOffset
    • _itemLabelFont

      protected overit.geocall.charts.ChartFont _itemLabelFont
    • _itemBackgroundColor

      protected Paint _itemBackgroundColor
    • _itemInsetBackgroundColor

      protected Paint _itemInsetBackgroundColor
    • _itemLabelFormat

      protected ListAttribute _itemLabelFormat
    • _itemTooltipFormat

      protected ListAttribute _itemTooltipFormat
    • _itemEvent

      protected ListAttribute _itemEvent
    • _itemParam

      protected ListAttribute _itemParam
    • itemAltFormat

      protected ListAttribute itemAltFormat
    • removeAreaTooltip

      protected boolean removeAreaTooltip
    • _upperMargin

      protected double _upperMargin
    • _lowerMargin

      protected double _lowerMargin
    • _barwidth

      protected int _barwidth
    • _domainTitle

      protected String _domainTitle
    • _domainTitleFont

      protected overit.geocall.charts.ChartFont _domainTitleFont
    • _domainrotation

      protected int _domainrotation
    • _domainmargin

      protected double _domainmargin
    • _domainLabels

      protected ListAttribute _domainLabels
    • _domainFont

      protected overit.geocall.charts.ChartFont _domainFont
    • _domainTooltips

      protected ListAttribute _domainTooltips
    • _domainMarkerColor

      protected ListAttribute _domainMarkerColor
    • _domainMarkerFont

      protected overit.geocall.charts.ChartFont _domainMarkerFont
    • _domainMarkerLabel

      protected ListAttribute _domainMarkerLabel
    • _domainMarkerPosition

      protected String _domainMarkerPosition
    • _series

      protected ArrayList _series
    • _barseries

      protected ArrayList _barseries
    • _areaseries

      protected ArrayList _areaseries
    • _lineseries

      protected ArrayList _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

      protected ArrayList _alJFCMessages
    • _ranger

      protected Ranger _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

      protected HashMap<overit.geocall.charts.Serie,Integer> _serieIds
    • _cs

      protected JFCStyle _cs
    • _labels

      protected ListAttribute _labels
    • _tooltips

      protected ListAttribute _tooltips
    • _event

      protected ListAttribute _event
    • _param

      protected ListAttribute _param
  • Constructor Details

    • JFCSerie

      public JFCSerie()
  • Method Details

    • generateRowLabel

      public String generateRowLabel(org.jfree.data.category.CategoryDataset cd, int row)
      Specified by:
      generateRowLabel in interface org.jfree.chart.labels.CategoryItemLabelGenerator
    • generateColumnLabel

      public String generateColumnLabel(org.jfree.data.category.CategoryDataset cd, int column)
      Specified by:
      generateColumnLabel in interface org.jfree.chart.labels.CategoryItemLabelGenerator
    • generateLabel

      public String generateLabel(org.jfree.data.category.CategoryDataset cd, int row, int column)
      Specified by:
      generateLabel in interface org.jfree.chart.labels.CategoryItemLabelGenerator
    • generateToolTip

      public String generateToolTip(org.jfree.data.category.CategoryDataset cd, int row, int column)
      Specified by:
      generateToolTip in interface org.jfree.chart.labels.CategoryToolTipGenerator
    • generateURL

      public String generateURL(org.jfree.data.category.CategoryDataset cd, int row, int column)
      Specified by:
      generateURL in interface org.jfree.chart.urls.CategoryURLGenerator
    • getBaseFields

      protected Object[] getBaseFields(int s, int c)
    • invalidateCurrentRaw

      protected void invalidateCurrentRaw()
    • setFORMAT

      public void setFORMAT(String s)
      Defines the format of the image that will be created
      Parameters:
      s - JFCRaw.PNG to create a PNG image, JFCRaw.JPEG to create a JPEG image. The default value is JFCRaw.PNG
    • setLABELS

      public void setLABELS(String s)
      Sets the labels used in the legend box
      Parameters:
      s - A ListAttribute in which every element, separated from the others by the | character, represents the label that will appear in the legend box
    • getLabels

      public ListAttribute getLabels()
      Returns the labels used in the legend box
      Returns:
      The ListAttribute that contains the labels used in the legend box
    • setTOOLTIPS

      public void setTOOLTIPS(String s)
      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 - A ListAttribute in 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

      public ListAttribute getTooltips()
      Returns the tooltip messages used for the elements of the legend box
      Returns:
      The ListAttribute that contains the tooltip messages used for the elements of the legend box
    • setEVENT

      public void setEVENT(String s)
      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

      public void setPARAM(String s)
      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

      public void setBARWIDTH(String s)
      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

      public void setDOMAINTITLE(String s)
      Sets the label for the domain (x) axis
      Parameters:
      s - The string that represents the label for the domain (x) axis
    • setDOMAINTITLEFONT

      public void setDOMAINTITLEFONT(String s)
      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) and b (bold). It is possible to use both the values, like ib or bi to obtain the font both bold and italic.
      The format for the color is described in the JFCStyle class.
      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

      public void setDOMAINFONT(String s)
      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. See setDOMAINTITLEFONT(java.lang.String)
    • setDOMAINROTATION

      public void setDOMAINROTATION(String s)
      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

      public void setDOMAINGRIDLINE(String s)
      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 is true
    • setVALUESGRIDLINE

      public void setVALUESGRIDLINE(String s)
      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 is false
    • setDOMAINMARGIN

      public void setDOMAINMARGIN(String s)
      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

      public void setITEMBACKGROUNDCOLOR(String s)
      Sets the background color of the data area of the chart
      Parameters:
      s - The background color. The format for the color is described in the JFCStyle class.
    • setITEMINSETBACKGROUNDCOLOR

      public void setITEMINSETBACKGROUNDCOLOR(String s)
      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 the JFCStyle class.
    • setITEMLABELROTATION

      public void setITEMLABELROTATION(String s)
      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

      public void setITEMLABELPOSITION(String s)
      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 letter i is indicated, the labels will appear only if they are entirely contained within the element.

    • setITEMLABELOFFSET

      public void setITEMLABELOFFSET(String s)
      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

      public void setITEMLABELFONT(String s)
      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. See setDOMAINTITLEFONT(java.lang.String)
    • setLEGENDFONT

      public void setLEGENDFONT(String s)
      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.
      See setDOMAINTITLEFONT(java.lang.String)
    • setTITLEFONT

      public void setTITLEFONT(String s)
      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. See setDOMAINTITLEFONT(java.lang.String)
    • setLEGENDBOX

      public void setLEGENDBOX(String s)
      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 the JFCStyle class.
      The thickness value must be a number.
      You can omit some values, in which case you fall back to the default ones
    • setITEMSIZE

      public void setITEMSIZE(String s)
      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

      public void setVALUESNUMBERFORMAT(String s)
      Defines the format of the values
      Parameters:
      s - A string that represents a decimal format. The default value is ,##0.###
    • setITEMLABELFORMAT

      public void setITEMLABELFORMAT(String s)
      Sets the TextFormat used for the labels of the elements of each serie
      Parameters:
      s - A ListAttribute in 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

      public void setITEMTOOLTIPFORMAT(String s)
      Sets the TextFormat used for the tooltip messages that appears when the user stay with the cursor on an element of each serie
      Parameters:
      s - A ListAttribute in 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

      public void setITEMALTFORMAT(String s)
      Sets the TextFormat used for the alternative text attributes that appears into the area element of the graph (it's used for accessibility).
      Parameters:
      s - A ListAttribute in 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

      public void setITEMEVENT(String s)
      Sets the names of the events triggered when the user clicks on an element of the chart
      Parameters:
      s - A ListAttribute in 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

      public void setITEMPARAM(String s)
      Sets the param for the events triggered when the user clicks on an element of the chart
      Parameters:
      s - A ListAttribute in 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

      public ListAttribute 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

      public JFCSerie getCopy()
      Clones the JFCSerie object
      Returns:
      A clone of the object
    • setWIDTH

      public void setWIDTH(String s)
      Sets the width of the chart
      Parameters:
      s - The width of the chart, expressed in pixel. The default value is 400
    • setHEIGHT

      public void setHEIGHT(String s)
      Sets the height of the chart
      Parameters:
      s - The height of the chart, expressed in pixel. The default value is 300
    • setDDD

      public void setDDD(String s)
      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 is false
    • setROUNDED

      public void setROUNDED(String s)
      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 is false
    • setSHADOW

      public void setSHADOW(String s)
      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 is true
    • setVERTICAL

      public void setVERTICAL(String s)
      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 is true
    • setAREASTACKED

      public void setAREASTACKED(String s)
      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 is false
    • setBARSTACKED

      public void setBARSTACKED(String s)
      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 is false
    • setDOMAINLABELS

      public void setDOMAINLABELS(String labels)
      Sets the labels of the elements of the domain (x) axis for each serie
      Parameters:
      labels - A ListAttribute that contains the labels
    • setDOMAINTOOLTIPS

      public void setDOMAINTOOLTIPS(String tooltips)
      Sets the tooltips of the elements of the domain (x) axis for each serie
      Parameters:
      tooltips - A ListAttribute that contains the tooltips
    • setDOMAINMARKERCOLOR

      public void setDOMAINMARKERCOLOR(String markers)
      Sets the colors of the markers for elements of the domain (x) axis for each serie
      Parameters:
      markers - A ListAttribute that contains the colors. The format for the colors is described in the JFCStyle class.
    • setDOMAINMARKERFONT

      public void setDOMAINMARKERFONT(String font)
      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 see setDOMAINTITLEFONT(java.lang.String)
    • setDOMAINMARKERLABEL

      public void setDOMAINMARKERLABEL(String labels)
      Sets the labels of the markers for the elements of the domain (x) axis for each serie
      Parameters:
      labels - A ListAttribute that contains the labels
    • setDOMAINMARKERPOSITION

      public void setDOMAINMARKERPOSITION(String position)
      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

      public void setVALUESMARKERVALUE(String values)
      Sets the values of the markers for the elements of the value (y) axis for each serie
      Parameters:
      values - A ListAttribute that defines the values of the markers for each serie
    • setVALUESMARKERSIZE

      public void setVALUESMARKERSIZE(String sizes)
      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 - A ListAttribute that defines the sizes of the markers for each serie
    • setVALUESMARKERCOLOR

      public void setVALUESMARKERCOLOR(String markers)
      Sets the colors of the markers for elements of the value (y) axis for each serie
      Parameters:
      markers - A ListAttribute that contains the colors. The format for the colors is described in the JFCStyle class.
    • setVALUESMARKERFONT

      public void setVALUESMARKERFONT(String font)
      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 see setDOMAINTITLEFONT(java.lang.String)
    • setVALUESMARKERLABEL

      public void setVALUESMARKERLABEL(String labels)
      Sets the labels of the markers for the elements of the value (y) axis for each serie
      Parameters:
      labels - A ListAttribute that contains the labels
    • setVALUESMARKERPOSITION

      public void setVALUESMARKERPOSITION(String position)
      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 see setITEMLABELPOSITION(java.lang.String)
    • setVALUESMIN

      public void setVALUESMIN(String s)
      Sets the minimum value for the value (y) axis. It must always be used in conjunction with the method setVALUESMAX(java.lang.String)
      Parameters:
      s - A double value that represents the minimum value for the y axis
    • setVALUESMAX

      public void setVALUESMAX(String s)
      Sets the maximum value for the value (y) axis. It must always be used in conjunction with the method setVALUESMIN(java.lang.String)
      Parameters:
      s - A double value that represents the maximum value for the y axis
    • setZOOMVALUESMIN

      public void setZOOMVALUESMIN(String s)
      Sets the minimum zoom value for the value (y) axis, with reference to the steps that can be performed through the Ranger
      Parameters:
      s - An integer that defines the minimum zoom value. The default is -1, that means no zoom value.
    • setZOOMVALUESMAX

      public void setZOOMVALUESMAX(String s)
      Sets the maximum zoom value for the value (y) axis, with reference to the steps that can be performed through the Ranger
      Parameters:
      s - An integer that defines the maximum zoom value. The default is -1, that means no zoom value.
    • setRANGERVALUESMIN

      public void setRANGERVALUESMIN(String s)
      Sets the minimum value for the Ranger that manages the values of the value (y) axis
      Parameters:
      s - A double that corresponds to the minimum value for the ranger
    • setRANGERVALUESMAX

      public void setRANGERVALUESMAX(String s)
      Sets the maximum value for the Ranger that manages the values of the value (y) axis
      Parameters:
      s - A double that corresponds to the maximum value for the ranger
    • setRANGERVALUESSTEP

      public void setRANGERVALUESSTEP(String s)
      Sets the step between the minimum and maximum values for the Ranger that manages the values of the value (y) axis
      Parameters:
      s - A double that corresponds to the step
    • setZOOMDOMAINMIN

      public void setZOOMDOMAINMIN(String s)
      Sets the minimum zoom value for the domain (x) axis, with reference to the steps that can be performed through the Ranger
      Parameters:
      s - An integer that defines the minimum zoom value. The default is -1, that means no zoom value.
    • setZOOMDOMAINMAX

      public void setZOOMDOMAINMAX(String s)
      Sets the maximum zoom value for the domain (x) axis, with reference to the steps that can be performed through the Ranger
      Parameters:
      s - An integer that defines the maximum zoom value. The default is -1, that means no zoom value.
    • setUPPERMARGIN

      public void setUPPERMARGIN(String s)
      Sets the upper margin for the value (y) axis.
      Parameters:
      s - A double value that represents the upper margin for the y axis
    • setLOWERMARGIN

      public void setLOWERMARGIN(String s)
      Sets the lower margin for the value (y) axis.
      Parameters:
      s - A double value that represents the lower margin for the y axis
    • setVALUESSTEP

      public void setVALUESSTEP(String s)
      Sets the step between the values for the value (y) axis.
      Parameters:
      s - A double value that represents the step between the values
    • setVALUESVERTICAL

      public void setVALUESVERTICAL(String s)
      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 is false
    • setVALUESTITLEFONT

      public void setVALUESTITLEFONT(String s)
      Sets the font for the label of the value (y) axis
      Parameters:
      s - A string that defines the font. For the font definition see setDOMAINTITLEFONT(java.lang.String)
    • setVALUESFONT

      public void setVALUESFONT(String s)
      Sets the font for the values of the value (y) axis
      Parameters:
      s - A string that defines the font. For the font definition see setDOMAINTITLEFONT(java.lang.String)
    • setVALUESTITLE

      public void setVALUESTITLE(String s)
      Sets the label of the value (y) axis
      Parameters:
      s - A string that represents the label for the value (y) axis
    • setANTIALIAS

      public void setANTIALIAS(String b)
      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 is true
    • setTEXTANTIALIAS

      public void setTEXTANTIALIAS(String b)
      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 is true
    • ARIADESCRIPTION

      public void ARIADESCRIPTION(String s)
      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 a Serie of the specific type to the chart
      Parameters:
      type - One of TYPE_BAR, TYPE_AREA or TYPE_LINE
      s - The data serie to add
    • getSerie

      public overit.geocall.charts.Serie getSerie(int pos)
      Returns the data Serie in the desired position
      Parameters:
      pos - The index of the desired serie
      Returns:
      The data Serie in the desired position
    • setup

      protected void setup()
      Description copied from class: Component
      Setup the Component
      Overrides:
      setup in class Component
    • seriesHasTooltip

      protected boolean seriesHasTooltip()
    • getHiddenHtml

      public org.apache.ecs.Element getHiddenHtml(Object generationhandle, EntitySet es)
      Description copied from interface: Arrangeable
      Returns the hidden but active html part of an hidden component
      Specified by:
      getHiddenHtml in interface Arrangeable
      Parameters:
      generationhandle - the unique generatin handle
      es - the page entity set
      Returns:
      The html code of the hidden part of the component
    • getHtml

      public org.apache.ecs.Element getHtml(EntitySet es)
      Description copied from class: Container
      Returns the html code of the Container
      Overrides:
      getHtml in class Container
      Parameters:
      es - The EntitySet to which the element belong
      Returns:
      The html code of the Container
    • getGenerationHandle

      public Object getGenerationHandle()
      Description copied from interface: Arrangeable
      Returns the object to generate when the Arrangeable element is composed by more than one element
      Specified by:
      getGenerationHandle in interface Arrangeable
      Returns:
      The Object to generate
    • getDescriptionHtml

      public org.apache.ecs.Element getDescriptionHtml(Object generationhandle, EntitySet es)
      Description copied from interface: Arrangeable
      Returns the html code that represents the component description i.e. the formatted label of the field
      Specified by:
      getDescriptionHtml in interface Arrangeable
      Parameters:
      generationhandle - the unique generatin handle
      es - the page entity set
      Returns:
      The html code of the label of the field
    • getChartName

      protected String getChartName()
    • prepareGates

      protected void prepareGates()
    • getImageGate

      protected ConcreteGate getImageGate()
    • getMapGate

      protected ConcreteGate getMapGate()
    • getBarChart

      public org.jfree.chart.JFreeChart getBarChart()
      Creates the bar chart
      Returns:
      The JFreeChart instance 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: AjaxableComponent
      Defines the html part of the element that changes when an Ajax interaction occurs
      Specified by:
      getFrameHtml in interface AjaxableComponent
      Parameters:
      c - The Change object that defines the specific morphing type for the element
      es - The EntitySet to which the element belongs
      Returns:
      The html part of the element that changes when an Ajax interaction occurs
    • getContentHtml

      public org.apache.ecs.Element getContentHtml(Object generationhandle, EntitySet es)
      Description copied from interface: Arrangeable
      Returns the html code that represents the active part of the component, i.e. the field and the validation scripts
      Specified by:
      getContentHtml in interface Arrangeable
      Parameters:
      generationhandle - the unique generatin handle
      es - the page entity set
      Returns:
      The html code of the component
    • getSerieLabels

      protected String getSerieLabels()
    • getJFCMessages

      protected ArrayList getJFCMessages()
    • changed

      public void changed(overit.geocall.ux.servlet.processor.Change change)
      Description copied from interface: AjaxableComponent
      Defines the morphing of the element that occurs when there is an Ajax interaction
      Specified by:
      changed in interface AjaxableComponent
      Parameters:
      change - The Change object that defines the specific morphing type for the element
    • getDefaultChange

      public overit.geocall.ux.servlet.processor.Change getDefaultChange()
      Description copied from interface: AjaxableComponent
      Defines the default Change object for the element
      Specified by:
      getDefaultChange in interface AjaxableComponent
      Returns:
      The default Change object that defines the default morphing type of the element
    • buildSetupScript

      public void buildSetupScript(StringBuilder sb)
      Description copied from class: Component
      Every component can add a script to the StringBuilder, script executed when the component is created.
      Overrides:
      buildSetupScript in class Component
      Parameters:
      sb - The StringBuilder on which we want to add the script
    • getJFCStyle

      protected JFCStyle getJFCStyle()
    • setJFCStyle

      public void setJFCStyle(JFCStyle cs)
      Sets the JFCStyle used to draw the chart elements
      Parameters:
      cs - The style used to draw the elements of the chart
    • isValidNumberFormat

      protected static boolean isValidNumberFormat(String s)
    • onLabel

      public boolean onLabel(HashGetter hg)
      Shows the label of the desired element
      Parameters:
      hg - The HashGetter that contains the references of the serie and element
      Returns:
      true
    • onSingleLabel

      public boolean onSingleLabel(HashGetter hg)
      Shows the label of the desired element and hides all the other labels
      Parameters:
      hg - The HashGetter that contains the references of the serie and element
      Returns:
      true
    • onMark

      public boolean onMark(HashGetter hg)
      Shows the marker of the desired data serie
      Parameters:
      hg - The HashGetter that contains the reference to the desired serie
      Returns:
      true
    • onValuesRanger

      public boolean onValuesRanger(HashGetter hg)
      Shows the Ranger that manages the values of the value (y) axis
      Parameters:
      hg - Not used
      Returns:
      true
    • onDomainRanger

      public boolean onDomainRanger(HashGetter hg)
      Shows the Ranger that manages the values of the domain (x) axis
      Parameters:
      hg - Not used
      Returns:
      true
    • onRangerClick

      public boolean onRangerClick(HashGetter hg)
      Changes the visualization of the values of the chart, depending on the values selected in the Ranger
      Parameters:
      hg - The HashGetter that contains the references to the values selected
      Returns:
      true