Class ChartItemRenderControls

java.lang.Object
hec.gfx2d.swing.charts.data.ChartItemRenderControls
All Implemented Interfaces:
PropertyFireable
Direct Known Subclasses:
PieSliceRenderControls

public abstract class ChartItemRenderControls extends Object implements PropertyFireable
Copyright (C) 2017 Hydrologic Engineering Center, United States Army Corps of Engineers, All Rights Reserved

HEC-Java NEXGEN

  • Field Details

  • Constructor Details

    • ChartItemRenderControls

      public ChartItemRenderControls()
  • Method Details

    • copy

      public void copy(ChartItemRenderControls copy)
    • getParentControls

      public ChartRenderControls getParentControls()
      gets the chart parent controls for the item render controls
      Returns:
      the set of parent controls for this item
    • setParentControls

      public void setParentControls(ChartRenderControls parent)
      sets the chart parent controls for the item render controls
      Parameters:
      parent - the chart controls to establish as "owning" this set of item controls
    • isVisible

      public boolean isVisible()
      Returns:
      the visibility state of the item
    • setVisible

      public void setVisible(boolean visible)
      Parameters:
      visible - the new visibility state to set
    • getLabelFont

      public Font getLabelFont()
      Returns:
      the font for the label
    • setLabelFont

      public void setLabelFont(Font labelFont)
      Parameters:
      labelFont - the font to set for the label
    • getLabelFormat

      public String getLabelFormat()
      Returns:
      the format string of the label
    • setLabelFormat

      public void setLabelFormat(String labelFormat)
      Parameters:
      labelFormat - the new format string for the label
    • getLabelColor

      public Color getLabelColor()
      Returns:
      the color of the label text
    • setLabelColor

      public void setLabelColor(Color labelColor)
      Parameters:
      labelColor - the new color for the label text
    • isShowLabel

      public boolean isShowLabel()
      Returns:
      the visibility state of this item's label
    • setShowLabel

      public void setShowLabel(boolean showLabel)
      Parameters:
      showLabel - the new visibility state for this item's label
    • isShowValue

      public boolean isShowValue()
      Returns:
      the visibility state for this item's exact value display
    • setShowValue

      public void setShowValue(boolean showValue)
      Parameters:
      showValue - the visibility state to set for this item's exact value display
    • isShowThresholds

      public boolean isShowThresholds()
      Returns:
      the visibility state for this item's thresholds as a whole
    • setShowThresholds

      public void setShowThresholds(boolean showThresholds)
      Parameters:
      showThresholds - the new visibility state for this item's thresholds
    • getThresholds

      public List<Threshold> getThresholds()
      Returns:
      the list of thresholds associated with this item
    • setThresholds

      public void setThresholds(List<Threshold> thresholds)
      Parameters:
      thresholds - the new list of thresholds to link to this item
    • fireUpdate

      public void fireUpdate(String propertyName, Object oldVal, Object newVal)
      Description copied from interface: PropertyFireable
      triggers to fire the given update
      Specified by:
      fireUpdate in interface PropertyFireable
      Parameters:
      propertyName - the name of the property
      oldVal - the value of the object before the change
      newVal - the value of the object after the change
    • fireUpdate

      public void fireUpdate()
      Description copied from interface: PropertyFireable
      triggers the parent controls to fire the default update
      Specified by:
      fireUpdate in interface PropertyFireable