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 TypeMethodDescriptionvoid
boolean
getBars()
Returns the extents of the object in world coordinatesint
Returns the number of curves that this object contains.int
int
getName()
Returns the name of the objectReturns the name of the x axisint
Returns the name of the x axisReturns the name of the y axisint
Returns the name of the y axisdouble[]
getYValues
(int curveNum) Returns a double[] for the curve specified by the curve number.int
hashCode()
void
load()
Causes the object to load its data into memoryvoid
void
void
setGroupCount
(int numGroups) void
setGroupIndex
(int index) void
setGroupName
(String groupName) void
setLineProperties
(G2dLineProperties oldProps, G2dLineProperties newProps) void
setShowLabel
(boolean _showLabel) boolean
void
unload()
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, useDisplayUnits
Methods inherited from class java.util.Observable
clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:G2dData
Returns the name of the object -
getGroupName
-
setGroupName
-
setBars
-
getCurveCount
public int getCurveCount()Description copied from class:G2dData
Returns the number of curves that this object contains.- Specified by:
getCurveCount
in interfaceG2dObject
- Overrides:
getCurveCount
in classG2dData
-
getYValues
public double[] getYValues(int curveNum) Description copied from class:G2dData
Returns a double[] for the curve specified by the curve number.- Specified by:
getYValues
in interfaceG2dObject
- Overrides:
getYValues
in classG2dData
-
getXAxisName
Description copied from interface:G2dObject
Returns the name of the x axis -
getYAxisName
Description copied from interface:G2dObject
Returns the name of the y axis -
getXAxisType
public int getXAxisType()Description copied from interface:G2dObject
Returns the name of the x axis -
getYAxisType
public int getYAxisType()Description copied from interface:G2dObject
Returns the name of the y axis -
load
public void load()Description copied from interface:G2dObject
Causes the object to load its data into memory -
unload
public void unload()Description copied from interface:G2dObject
Causes the object to unload its data from memory -
getBounds
Description copied from class:G2dData
Returns 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
-