Package hec.gfx2d.swing.charts.data
Interface ChartModel
- All Known Implementing Classes:
DefaultChartModel
public interface ChartModel
Copyright (C) 2017 Hydrologic Engineering Center,
United States Army Corps of Engineers, All Rights Reserved
HEC-Java NEXGEN
-
Method Summary
Modifier and TypeMethodDescriptiongetClosestDate
(Date date) getId()
Returns a list of all item ids in the chart, sorted by the comparator provided in setComparator or by default comparison (alphabetically by id name) if no comparator has been provideddouble
getMaxValue
(RmaDataId itemId, Date timeIndex) double
getMinValue
(RmaDataId itemId, Date timeIndex) int
getQuality
(RmaDataId itemId, Date timeIndex) double
void
setComparator
(Comparator<RmaDataId> idComparator)
-
Method Details
-
getId
RmaDataId getId()- Returns:
- the id for this chart or item item
-
getValue
- Parameters:
itemId
- the item to retrieve the value fromtimeIndex
- the corresponding time for the value retrieved- Returns:
- the operational value of a item
-
getMinValue
- Parameters:
itemId
- the item to retrieve the minimum value fromtimeIndex
- the corresponding time for the value retrieved- Returns:
- the minimum value of a item
-
getMaxValue
- Parameters:
itemId
- the item to retrieve the maximum value fromtimeIndex
- the corresponding time for the value retrieved- Returns:
- the maximum value of a item
-
getQuality
- Parameters:
itemId
- the item to retrieve the quality fromtimeIndex
- the corresponding time for the value retrieved- Returns:
- the quality of the item data
-
getUnits
- Parameters:
itemId
- the item to retrieve units for- Returns:
- the units of the item identified
-
getEarliestDate
Date getEarliestDate()- Returns:
- the java.util.Date corresponding to the earliest recorded value item
-
getLatestDate
Date getLatestDate()- Returns:
- the java.util.Date corresponding to the latest recorded value item
-
getClosestDate
- Parameters:
date
- the java.util.Date in question, attempting to find a closest match existing in value mappings- Returns:
- the date in values mapping that is the closest to the given date
-
setComparator
- Parameters:
idComparator
- the comparator to use when sorting the item ids in the getItemIds() method
-
getItemIds
Returns a list of all item ids in the chart, sorted by the comparator provided in setComparator or by default comparison (alphabetically by id name) if no comparator has been provided- Returns:
- the list of all item ids in the chart
- See Also:
-