Class DefaultChartItemModel

java.lang.Object
hec.gfx2d.swing.charts.data.DefaultChartItemModel
All Implemented Interfaces:
ChartItemModel

public final class DefaultChartItemModel extends Object implements ChartItemModel
Copyright (C) 2017 Hydrologic Engineering Center, United States Army Corps of Engineers, All Rights Reserved

HEC-Java NEXGEN

  • Constructor Details

    • DefaultChartItemModel

      public DefaultChartItemModel(RmaDataId id, double value, double minValue, double maxValue, int quality, String units)
  • Method Details

    • getId

      public RmaDataId getId()
      Specified by:
      getId in interface ChartItemModel
      Returns:
      the id of this item's data
    • getValue

      public double getValue()
      Specified by:
      getValue in interface ChartItemModel
      Returns:
      the value of the item at this snapshot
    • getMinValue

      public double getMinValue()
      Specified by:
      getMinValue in interface ChartItemModel
      Returns:
      the minimum value of the item at this snapshot
    • getMaxValue

      public double getMaxValue()
      Specified by:
      getMaxValue in interface ChartItemModel
      Returns:
      the maximum value of the item at this snapshot
    • getQuality

      public int getQuality()
      Specified by:
      getQuality in interface ChartItemModel
      Returns:
      the quality of this item's values at this snapshot
    • getUnits

      public String getUnits()
      Specified by:
      getUnits in interface ChartItemModel
      Returns:
      the units of the item's values at this snapshot note that units "should" be the same across each item's snapshots, but not necessarily between different items on the same chart