Class BarGroupData

java.lang.Object
java.util.Observable
hec.gfx2d.G2dData
hec.gfx2d.swing.charts.bar.BarGroupData
All Implemented Interfaces:
G2dObject, Serializable

public class BarGroupData extends G2dData
Copyright (C) 2017 Hydrologic Engineering Center, United States Army Corps of Engineers, All Rights Reserved

HEC-Java NEXGEN

See Also:
  • Field Details

  • 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 chart
      groupIndex - the ordering of this group against other groups in the chart
      groupName -
      showLabel -
  • Method Details

    • getBars

      public List<BarData> getBars()
    • getGroupIndex

      public int getGroupIndex()
    • setGroupIndex

      public void setGroupIndex(int index)
    • getGroupCount

      public int getGroupCount()
    • setGroupCount

      public void setGroupCount(int numGroups)
    • getName

      public String getName()
      Description copied from class: G2dData
      Returns the name of the object
      Specified by:
      getName in interface G2dObject
      Overrides:
      getName in class G2dData
    • getGroupName

      public String getGroupName()
    • setGroupName

      public void setGroupName(String groupName)
    • setBars

      public void setBars(List<BarData> bars)
    • getCurveCount

      public int getCurveCount()
      Description copied from class: G2dData
      Returns the number of curves that this object contains.
      Specified by:
      getCurveCount in interface G2dObject
      Overrides:
      getCurveCount in class G2dData
    • 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 interface G2dObject
      Overrides:
      getYValues in class G2dData
    • getXAxisName

      public String getXAxisName()
      Description copied from interface: G2dObject
      Returns the name of the x axis
    • getYAxisName

      public String 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

      public WorldRect getBounds()
      Description copied from class: G2dData
      Returns the extents of the object in world coordinates
      Specified by:
      getBounds in interface G2dObject
      Specified by:
      getBounds in class G2dData
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
    • setLineProperties

      public void setLineProperties(G2dLineProperties oldProps, G2dLineProperties newProps)
    • showLabel

      public boolean showLabel()
    • setShowLabel

      public void setShowLabel(boolean _showLabel)
    • getValueFormatter

      public NumberFormat getValueFormatter()