All Implemented Interfaces:
HasAlign<AxisLabel>, HasBorder<AxisLabel>, HasShadow<AxisLabel>, HasText<AxisLabel>, HasPadding<AxisLabel>, Serializable

Options component related to axis label.
See Also:
  • Field Details

    • show

      protected Boolean show
    • interval

      protected Integer interval
    • intervalFunction

      protected JsFunction intervalFunction
    • inside

      protected Boolean inside
    • rotate

      protected Integer rotate
    • margin

      protected Integer margin
    • formatter

      protected String formatter
    • formatterFunction

      protected JsFunction formatterFunction
    • colorFunction

      protected JsFunction colorFunction
    • showMinLabel

      protected Boolean showMinLabel
    • showMaxLabel

      protected Boolean showMaxLabel
    • hideOverlap

      protected Boolean hideOverlap
    • align

      protected Align align
    • verticalAlign

      protected VerticalAlign verticalAlign
    • backgroundColor

      protected Color backgroundColor
    • borderColor

      protected Color borderColor
    • borderWidth

      protected Integer borderWidth
    • borderType

      protected String borderType
    • borderDashOffset

      protected Integer borderDashOffset
    • borderRadius

      protected Integer borderRadius
    • padding

      protected Padding padding
    • shadowColor

      protected Color shadowColor
    • shadowBlur

      protected Integer shadowBlur
    • shadowOffsetX

      protected Integer shadowOffsetX
    • shadowOffsetY

      protected Integer shadowOffsetY
  • Constructor Details

    • AxisLabel

      public AxisLabel()
  • Method Details

    • getShow

      public Boolean getShow()
    • setShow

      public void setShow(Boolean show)
    • getInterval

      public Integer getInterval()
    • setInterval

      public void setInterval(Integer interval)
    • getIntervalFunction

      public JsFunction getIntervalFunction()
    • setIntervalFunction

      public void setIntervalFunction(JsFunction intervalFunction)
    • setIntervalFunction

      public void setIntervalFunction(String intervalFunction)
    • getInside

      public Boolean getInside()
    • setInside

      public void setInside(Boolean inside)
    • getRotate

      public Integer getRotate()
    • setRotate

      public void setRotate(Integer rotate)
    • getMargin

      public Integer getMargin()
    • setMargin

      public void setMargin(Integer margin)
    • getFormatter

      public String getFormatter()
    • setFormatter

      public void setFormatter(String formatter)
    • getFormatterFunction

      public JsFunction getFormatterFunction()
    • setFormatterFunction

      public void setFormatterFunction(JsFunction formatterFunction)
    • setFormatterFunction

      public void setFormatterFunction(String formatterFunction)
    • getColorFunction

      public JsFunction getColorFunction()
    • setColorFunction

      public void setColorFunction(JsFunction colorFunction)
    • setColorFunction

      public void setColorFunction(String colorFunction)
    • getShowMinLabel

      public Boolean getShowMinLabel()
    • setShowMinLabel

      public void setShowMinLabel(Boolean showMinLabel)
    • getShowMaxLabel

      public Boolean getShowMaxLabel()
    • setShowMaxLabel

      public void setShowMaxLabel(Boolean showMaxLabel)
    • getHideOverlap

      public Boolean getHideOverlap()
    • setHideOverlap

      public void setHideOverlap(Boolean hideOverlap)
    • getAlign

      public Align getAlign()
      Specified by:
      getAlign in interface HasAlign<AxisLabel>
      Returns:
      horizontal alignment of component
    • setAlign

      public void setAlign(Align align)
      Description copied from interface: HasAlign
      Sets horizontal alignment of component or replaces an existing one.
      Specified by:
      setAlign in interface HasAlign<AxisLabel>
      Parameters:
      align - alignment to set
    • getVerticalAlign

      public VerticalAlign getVerticalAlign()
      Specified by:
      getVerticalAlign in interface HasAlign<AxisLabel>
      Returns:
      vertical alignment of component
    • setVerticalAlign

      public void setVerticalAlign(VerticalAlign verticalAlign)
      Description copied from interface: HasAlign
      Sets vertical alignment of component or replaces an existing one.
      Specified by:
      setVerticalAlign in interface HasAlign<AxisLabel>
      Parameters:
      verticalAlign - alignment to set
    • getBackgroundColor

      public Color getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(Color backgroundColor)
    • getBorderColor

      public Color getBorderColor()
      Specified by:
      getBorderColor in interface HasBorder<AxisLabel>
      Returns:
      border color
    • setBorderColor

      public void setBorderColor(Color borderColor)
      Description copied from interface: HasBorder
      Sets a border color or replaces an existing one.
      Specified by:
      setBorderColor in interface HasBorder<AxisLabel>
      Parameters:
      borderColor - color to set
    • getBorderWidth

      public Integer getBorderWidth()
      Specified by:
      getBorderWidth in interface HasBorder<AxisLabel>
      Returns:
      border width in pixels
    • setBorderWidth

      public void setBorderWidth(Integer borderWidth)
      Description copied from interface: HasBorder
      Sets a border width or replaces an existing one.
      Specified by:
      setBorderWidth in interface HasBorder<AxisLabel>
      Parameters:
      borderWidth - border width in pixels
    • getBorderType

      public String getBorderType()
    • setBorderType

      public void setBorderType(String borderType)
    • getBorderDashOffset

      public Integer getBorderDashOffset()
    • setBorderDashOffset

      public void setBorderDashOffset(Integer borderDashOffset)
    • getBorderRadius

      public Integer getBorderRadius()
      Specified by:
      getBorderRadius in interface HasBorder<AxisLabel>
      Returns:
      border radius of the text fragment
    • setBorderRadius

      public void setBorderRadius(Integer borderRadius)
      Description copied from interface: HasBorder
      Sets a border radius of the text fragment or replaces an existing one.
      Specified by:
      setBorderRadius in interface HasBorder<AxisLabel>
      Parameters:
      borderRadius - border radius to set in pixels
    • getPadding

      public Padding getPadding()
      Specified by:
      getPadding in interface HasPadding<AxisLabel>
      Returns:
      space around content
    • setPadding

      public void setPadding(Integer padding)
      Description copied from interface: HasPadding
      Sets padding on each of the four sides or replaces an existing one. The unit is px.
      Specified by:
      setPadding in interface HasPadding<AxisLabel>
      Parameters:
      padding - padding to set
    • setPadding

      public void setPadding(Integer vertical, Integer horizontal)
      Description copied from interface: HasPadding
      Sets the top/bottom and left/right paddings or replaces an existing one. The unit is px.
      Specified by:
      setPadding in interface HasPadding<AxisLabel>
      Parameters:
      vertical - top and bottom padding to set
      horizontal - left and right padding to set
    • setPadding

      public void setPadding(Integer top, Integer right, Integer bottom, Integer left)
      Description copied from interface: HasPadding
      Sets each of the four paddings separately. The unit is px.
      Specified by:
      setPadding in interface HasPadding<AxisLabel>
      Parameters:
      top - top padding to set
      right - right padding to set
      bottom - bottom padding to set
      left - left padding to set
    • getShadowColor

      public Color getShadowColor()
      Specified by:
      getShadowColor in interface HasShadow<AxisLabel>
      Returns:
      shadow color
    • setShadowColor

      public void setShadowColor(Color shadowColor)
      Description copied from interface: HasShadow
      Sets a color for shadow or replaces an existing one.
      Specified by:
      setShadowColor in interface HasShadow<AxisLabel>
      Parameters:
      shadowColor - color to set
    • getShadowBlur

      public Integer getShadowBlur()
      Specified by:
      getShadowBlur in interface HasShadow<AxisLabel>
      Returns:
      depth of shadow blur
    • setShadowBlur

      public void setShadowBlur(Integer shadowBlur)
      Description copied from interface: HasShadow
      Sets depth of shadow blur or replaces an existing one.
      Specified by:
      setShadowBlur in interface HasShadow<AxisLabel>
      Parameters:
      shadowBlur - depth of shadow blur
    • getShadowOffsetX

      public Integer getShadowOffsetX()
      Specified by:
      getShadowOffsetX in interface HasShadow<AxisLabel>
      Returns:
      horizontal offset for shadow in pixels
    • setShadowOffsetX

      public void setShadowOffsetX(Integer shadowOffsetX)
      Description copied from interface: HasShadow
      Sets horizontal offset for shadow or replaces an existing one.
      Specified by:
      setShadowOffsetX in interface HasShadow<AxisLabel>
      Parameters:
      shadowOffsetX - offset to set in pixels
    • getShadowOffsetY

      public Integer getShadowOffsetY()
      Specified by:
      getShadowOffsetY in interface HasShadow<AxisLabel>
      Returns:
      vertical offset for shadow in pixels
    • setShadowOffsetY

      public void setShadowOffsetY(Integer shadowOffsetY)
      Description copied from interface: HasShadow
      Sets vertical offset for shadow or replaces an existing one.
      Specified by:
      setShadowOffsetY in interface HasShadow<AxisLabel>
      Parameters:
      shadowOffsetY - offset to set in pixels
    • withShow

      public AxisLabel withShow(Boolean show)
    • withInterval

      public AxisLabel withInterval(Integer interval)
    • withIntervalFunction

      public AxisLabel withIntervalFunction(JsFunction intervalFunction)
    • withIntervalFunction

      public AxisLabel withIntervalFunction(String intervalFunction)
    • withInside

      public AxisLabel withInside(Boolean inside)
    • withRotate

      public AxisLabel withRotate(Integer rotate)
    • withMargin

      public AxisLabel withMargin(Integer margin)
    • withFormatter

      public AxisLabel withFormatter(String formatter)
    • withFormatterFunction

      public AxisLabel withFormatterFunction(JsFunction formatterFunction)
    • withFormatterFunction

      public AxisLabel withFormatterFunction(String formatterFunctionCode)
    • withColorFunction

      public AxisLabel withColorFunction(JsFunction colorFunction)
    • withColorFunction

      public AxisLabel withColorFunction(String colorFunction)
    • withShowMinLabel

      public AxisLabel withShowMinLabel(Boolean showMinLabel)
    • withShowMaxLabel

      public AxisLabel withShowMaxLabel(Boolean showMaxLabel)
    • withHideOverlap

      public AxisLabel withHideOverlap(Boolean hideOverlap)
    • withBackgroundColor

      public AxisLabel withBackgroundColor(Color backgroundColor)
    • withBorderType

      public AxisLabel withBorderType(String borderType)
    • withBorderDashOffset

      public AxisLabel withBorderDashOffset(Integer borderDashOffset)