Package hec.gfx2d

Class G2dTimeSeriesLine

All Implemented Interfaces:
AsciiSerializable, FieldAccessor, ActionListener, Serializable, Cloneable, Comparable, EventListener, Observer, Modifiable

public class G2dTimeSeriesLine extends G2dLine

Title: CWMS Development

Description:

Copyright: Copyright (c) 2002

Company: Resource Management Associates

See Also:
  • Constructor Details

    • G2dTimeSeriesLine

      public G2dTimeSeriesLine()
  • Method Details

    • createPopupMenu

      protected void createPopupMenu()
      Description copied from class: G2dLine
      Creates the default popup menu for this line
      Overrides:
      createPopupMenu in class G2dLine
    • setInterpolateMissing

      public void setInterpolateMissing(boolean interpolate)
    • setProperties

      public void setProperties(G2dLineProperties prop)
      Description copied from class: G2dLine
      Sets the properties that this line uses to draw
      Overrides:
      setProperties in class G2dLine
      Parameters:
      prop - The new Properties value
    • setRawTimeSeriesData

      public void setRawTimeSeriesData(int[] xdata, double[] ydata, int[] qualityFlags)
      The x/y values are treated as raw values and the missing data (data that has a time value but no y value) is drawn if specified by the properties. The difference between this an the standard setData(), is that setData() does not take the precaution of filtering out bad/undefined data.
      Parameters:
      xdata - The list of time data.
      ydata - The list of time data.
      qualityFlags - list of qualityFlags, can by null if there are not quailityFlags.
    • setRawTimeSeriesData

      public void setRawTimeSeriesData(long[] xdata, double[] ydata, int[] qualityFlags)
    • clearLineData

      public void clearLineData()
      Description copied from class: G2dLine
      Description of the Method
      Overrides:
      clearLineData in class G2dLine
    • drawLine

      public void drawLine(Graphics g, Rectangle clipRect)
      Description copied from class: G2dLine
      This method draws a line to the specified graphics context. The line is clipped so it fits within the clipping rectangle
      Overrides:
      drawLine in class G2dLine
      Parameters:
      g - - the graphics context to clip to
      clipRect - - the rectangle that bounds the viewable region. This describes how the line is clipped. The clipping units are in world coordinates
    • buildPropertiesPanel

      protected DefaultJPanel[] buildPropertiesPanel()
      Overrides:
      buildPropertiesPanel in class G2dLine
    • main

      public static void main(String[] args)