Class ChartOptions

java.lang.Object
org.apache.syncope.client.console.chartjs.ChartOptions
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BarChartOptions, LineChartOptions, PieChartOptions

public abstract class ChartOptions extends Object implements Serializable
Provides some basic options, that are available for all kinds of charts.
See Also:
  • Constructor Details Link icon

    • ChartOptions Link icon

      public ChartOptions()
  • Method Details Link icon

    • getCustomTooltips Link icon

      public String getCustomTooltips()
    • setCustomTooltips Link icon

      public void setCustomTooltips(String customTooltips)
    • getAnimation Link icon

      public Boolean getAnimation()
      Gets the animation.
      Returns:
      the animation
    • setAnimation Link icon

      public void setAnimation(Boolean animation)
      Sets the animation.
      Parameters:
      animation - decides whether to animate the chart (default is true)
    • getAnimationSteps Link icon

      public Integer getAnimationSteps()
      Gets the animation steps.
      Returns:
      the animation steps
    • setAnimationSteps Link icon

      public void setAnimationSteps(Integer animationSteps)
      Sets the animation steps.
      Parameters:
      animationSteps - the number of animation steps (default is 60)
    • getAnimationEasing Link icon

      public String getAnimationEasing()
      Gets the animation easing.
      Returns:
      the animation easing
    • setAnimationEasing Link icon

      public void setAnimationEasing(String animationEasing)
      Sets the animation easing.
      Parameters:
      animationEasing - the animation easing effect (default is "easeOutQuart")
    • getOnAnimationComplete Link icon

      public String getOnAnimationComplete()
      Gets the javascript function that fires on animation complete.
      Returns:
      the onAnimationComplete javascript function
    • setOnAnimationComplete Link icon

      public void setOnAnimationComplete(String onAnimationComplete)
      Sets the onAnimationComplete javascript function.
      Parameters:
      onAnimationComplete - a function, that fires when the animation is complete
    • getResponsive Link icon

      public Boolean getResponsive()
    • setResponsive Link icon

      public void setResponsive(Boolean responsive)
    • getMaintainAspectRatio Link icon

      public Boolean getMaintainAspectRatio()
    • setMaintainAspectRatio Link icon

      public void setMaintainAspectRatio(Boolean maintainAspectRatio)
    • getShowTooltips Link icon

      public Boolean getShowTooltips()
    • setShowTooltips Link icon

      public void setShowTooltips(Boolean showTooltips)
    • getTooltipEvents Link icon

      public String[] getTooltipEvents()
    • setTooltipEvents Link icon

      public void setTooltipEvents(String[] tooltipEvents)
    • getTooltipFillColor Link icon

      public String getTooltipFillColor()
    • setTooltipFillColor Link icon

      public void setTooltipFillColor(String tooltipFillColor)
    • getTooltipFontFamily Link icon

      public String getTooltipFontFamily()
    • setTooltipFontFamily Link icon

      public void setTooltipFontFamily(String tooltipFontFamily)
    • getTooltipFontSize Link icon

      public Integer getTooltipFontSize()
    • setTooltipFontSize Link icon

      public void setTooltipFontSize(Integer tooltipFontSize)
    • getTooltipFontStyle Link icon

      public String getTooltipFontStyle()
    • setTooltipFontStyle Link icon

      public void setTooltipFontStyle(String tooltipFontStyle)
    • getTooltipFontColor Link icon

      public String getTooltipFontColor()
    • setTooltipFontColor Link icon

      public void setTooltipFontColor(String tooltipFontColor)
    • getTooltipTitleFontFamily Link icon

      public String getTooltipTitleFontFamily()
    • setTooltipTitleFontFamily Link icon

      public void setTooltipTitleFontFamily(String tooltipTitleFontFamily)
    • getTooltipTitleFontSize Link icon

      public Integer getTooltipTitleFontSize()
    • setTooltipTitleFontSize Link icon

      public void setTooltipTitleFontSize(Integer tooltipTitleFontSize)
    • getTooltipTitleFontStyle Link icon

      public String getTooltipTitleFontStyle()
    • setTooltipTitleFontStyle Link icon

      public void setTooltipTitleFontStyle(String tooltipTitleFontStyle)
    • getTooltipTitleFontColor Link icon

      public String getTooltipTitleFontColor()
    • setTooltipTitleFontColor Link icon

      public void setTooltipTitleFontColor(String tooltipTitleFontColor)
    • getTooltipYPadding Link icon

      public Integer getTooltipYPadding()
    • setTooltipYPadding Link icon

      public void setTooltipYPadding(Integer tooltipYPadding)
    • getTooltipXPadding Link icon

      public Integer getTooltipXPadding()
    • setTooltipXPadding Link icon

      public void setTooltipXPadding(Integer tooltipXPadding)
    • getTooltipCaretSize Link icon

      public Integer getTooltipCaretSize()
    • setTooltipCaretSize Link icon

      public void setTooltipCaretSize(Integer tooltipCaretSize)
    • getTooltipCornerRadius Link icon

      public Integer getTooltipCornerRadius()
    • setTooltipCornerRadius Link icon

      public void setTooltipCornerRadius(Integer tooltipCornerRadius)
    • getTooltipXOffset Link icon

      public Integer getTooltipXOffset()
    • setTooltipXOffset Link icon

      public void setTooltipXOffset(Integer tooltipXOffset)
    • getTooltipTemplate Link icon

      public String getTooltipTemplate()
    • setTooltipTemplate Link icon

      public void setTooltipTemplate(String tooltipTemplate)
    • getMultiTooltipTemplate Link icon

      public String getMultiTooltipTemplate()
    • setMultiTooltipTemplate Link icon

      public void setMultiTooltipTemplate(String multiTooltipTemplate)
    • getOnAnimationProgress Link icon

      public String getOnAnimationProgress()
    • setOnAnimationProgress Link icon

      public void setOnAnimationProgress(String onAnimationProgress)
    • isResponsive Link icon

      public boolean isResponsive()
      Tests whether this chart is responsive or not.
      Returns:
      true if its responsive, false otherwise.
    • setResponsive Link icon

      public void setResponsive(boolean responsive)
      Sets the responsive option for this chart.
      Parameters:
      responsive - the responsive option value.
    • getScales Link icon

      public ChartOptions.Scales getScales()
    • setScales Link icon

      public void setScales(ChartOptions.Scales scales)