Package hec.gfx2d.swing.charts.bar
Class BarGroupData
java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.swing.charts.bar.BarGroupData
- All Implemented Interfaces:
G2dObject,Serializable
Copyright (C) 2017 Hydrologic Engineering Center,
United States Army Corps of Engineers, All Rights Reserved
HEC-Java NEXGEN
- See Also:
-
Field Summary
FieldsFields inherited from interface hec.gfx2d.G2dObject
RESET_DATA, UPDATE_DATA -
Constructor Summary
ConstructorsConstructorDescriptionBarGroupData(List<BarData> bars, int groupCount, int groupIndex, String groupName, boolean showLabel, NumberFormat format) Default Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleangetBars()Returns the extents of the object in world coordinatesintReturns the number of curves that this object contains.intintgetName()Returns the name of the objectReturns the name of the x axisintReturns the name of the x axisReturns the name of the y axisintReturns the name of the y axisdouble[]getYValues(int curveNum) Returns a double[] for the curve specified by the curve number.inthashCode()voidload()Causes the object to load its data into memoryvoidvoidvoidsetGroupCount(int numGroups) voidsetGroupIndex(int index) voidsetGroupName(String groupName) voidsetLineProperties(G2dLineProperties oldProps, G2dLineProperties newProps) voidsetShowLabel(boolean _showLabel) booleanvoidunload()Causes the object to unload its data from memoryMethods inherited from class hec.gfx2d.G2dData
addObserver, canSwapXYValues, getDefaultMaxYValue, getDefaultMinYValue, getGmtOffset, getLineStyleName, getLookup, getUnitSystem, getXParameterId, getXValues, getYParameterId, hasDefaultMaxYValue, hasDefaultMinYValue, setDefaultMaxYValue, setDefaultMinYValue, setGmtOffset, setName, setSwapXYValues, setUnitSystem, setUseDisplayUnits, setXParameterId, setYParameterId, swapXYValues, toString, useDisplayUnitsMethods inherited from class java.util.Observable
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hec.gfx2d.G2dObject
getDataZoneId
-
Field Details
-
LINE_PROPERTIES_CHANGED
- See Also:
-
-
Constructor Details
-
BarGroupData
public BarGroupData() -
BarGroupData
public BarGroupData(List<BarData> bars, int groupCount, int groupIndex, String groupName, boolean showLabel, NumberFormat format) Default Constructor- Parameters:
bars- the bars to include in this grouping, done by legend representation (value type)groupCount- the number of groups like this one across the entire chartgroupIndex- the ordering of this group against other groups in the chartgroupName-showLabel-
-
-
Method Details
-
getBars
-
getGroupIndex
public int getGroupIndex() -
setGroupIndex
public void setGroupIndex(int index) -
getGroupCount
public int getGroupCount() -
setGroupCount
public void setGroupCount(int numGroups) -
getName
Description copied from class:G2dDataReturns the name of the object -
getGroupName
-
setGroupName
-
setBars
-
getCurveCount
public int getCurveCount()Description copied from class:G2dDataReturns the number of curves that this object contains.- Specified by:
getCurveCountin interfaceG2dObject- Overrides:
getCurveCountin classG2dData
-
getYValues
public double[] getYValues(int curveNum) Description copied from class:G2dDataReturns a double[] for the curve specified by the curve number.- Specified by:
getYValuesin interfaceG2dObject- Overrides:
getYValuesin classG2dData
-
getXAxisName
Description copied from interface:G2dObjectReturns the name of the x axis -
getYAxisName
Description copied from interface:G2dObjectReturns the name of the y axis -
getXAxisType
public int getXAxisType()Description copied from interface:G2dObjectReturns the name of the x axis -
getYAxisType
public int getYAxisType()Description copied from interface:G2dObjectReturns the name of the y axis -
load
public void load()Description copied from interface:G2dObjectCauses the object to load its data into memory -
unload
public void unload()Description copied from interface:G2dObjectCauses the object to unload its data from memory -
getBounds
Description copied from class:G2dDataReturns the extents of the object in world coordinates -
hashCode
public int hashCode() -
equals
-
addPropertyChangeListener
-
removePropertyChangeListener
-
setLineProperties
-
showLabel
public boolean showLabel() -
setShowLabel
public void setShowLabel(boolean _showLabel) -
getValueFormatter
-