Package hec.gfx2d
Class G2dTimeSeriesLine
java.lang.Object
java.util.Observable
hec.lang.NamedType
hec.gfx2d.G2dLine
hec.gfx2d.G2dTimeSeriesLine
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,ActionListener
,Serializable
,Cloneable
,Comparable
,EventListener
,Observer
,Modifiable
Title: CWMS Development
Description:
Copyright: Copyright (c) 2002
Company: Resource Management Associates
- See Also:
-
Field Summary
Fields inherited from class hec.gfx2d.G2dLine
_clipToBounds, _nameMenuItem, _popupMenu, _properties
Fields inherited from class hec.lang.NamedType
_description, _ignoreModifiedEvents, _index, _isValid, _modified, _name, defaultDescription, defaultName, DESCRIPTION_CHANGED, NAME_CHANGED, RENAME_EVENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DefaultJPanel[]
void
Description of the Methodprotected void
Creates the default popup menu for this linevoid
This method draws a line to the specified graphics context.static void
void
setInterpolateMissing
(boolean interpolate) void
Sets the properties that this line uses to drawvoid
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.void
setRawTimeSeriesData
(long[] xdata, double[] ydata, int[] qualityFlags) Methods inherited from class hec.gfx2d.G2dLine
actionPerformed, addCallout, addLineData, addLineSegment, areSymbolsAutoInterval, areSymbolsDrawn, areSymbolsVisible, clearCallouts, clone, contains, copyCurveProperties, drawCallouts, editLineProperties, editLineProperties, finalize, getAutoSkipSymbols, getFieldObject, getFillColor, getFillColorString, getFillPattern, getFillPatternString, getFillType, getFillTypeString, getFirstSymbolOffset, getLabel, getLabelAlignment, getLabelAlignmentString, getLabelColor, getLabelColorString, getLabelFont, getLabelFontString, getLabelPosition, getLabelPositionString, getLineColor, getLineColorString, getLineLabel, getLineSegmentAt, getLineStepStyle, getLineStepStyleString, getLineStyle, getLineStyleString, getLineWidth, getNearestDataPt, getNearestDataPt, getNearestDataPt, getNearestDataPt, getNearestLocation, getNumLineSegments, getNumPoints, getOKListeners, getProperties, getScale, getStepInterval, getSymbolFillColor, getSymbolFillColorString, getSymbolInterval, getSymbolLineColor, getSymbolLineColorString, getSymbolOffset, getSymbolSize, getSymbolSkipCount, getSymbolSkipInterval, getSymbolType, getSymbolTypeString, isCalloutsVisible, isLabelVisible, isLineDrawn, isLineLabelVisible, isLineVisible, isVisible, scale, scale, setAutoSkipSymbolsOff, setAutoSkipSymbolsOn, setCalloutsVisible, setClipLineToBounds, setDrawLineOff, setDrawLineOn, setDrawSymbolsOff, setDrawSymbolsOn, setFieldObject, setFillColor, setFillColor, setFillPattern, setFillType, setFirstSymbolOffset, setGlyph, setLabel, setLabelAlignment, setLabelAlignment, setLabelColor, setLabelColor, setLabelFont, setLabelFont, setLabelPosition, setLabelPosition, setLabelVisible, setLineColor, setLineColor, setLineData, setLineLabel, setLineLabelVisible, setLineStepStyle, setLineStyle, setLineVisible, setLineWidth, setPeriodStepStyle, setScale, setSelectedPoints, setStepInterval, setSymbolFillColor, setSymbolInterval, setSymbolLineColor, setSymbolOffset, setSymbolsAutoInterval, setSymbolSize, setSymbolSkipCount, setSymbolsSkipInterval, setSymbolsVisible, setSymbolType, setSymbolType, setVisible, showPopup, toLocalGeometry, toString, toWorldGeometry
Methods inherited from class hec.lang.NamedType
addModifiableListener, compareTo, fireModifiedStateChanged, getDescription, getDisplayName, getIgnoreModifiedEvents, getIndex, getName, isModified, isValid, readResolve, removeModifiableListener, rename, set, setDescription, setIgnoreModifiedEvents, setIndex, setModified, setName, setValid, update, useRecursiveModifiedTest
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
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 classG2dLine
-
setInterpolateMissing
public void setInterpolateMissing(boolean interpolate) -
setProperties
Description copied from class:G2dLine
Sets the properties that this line uses to draw- Overrides:
setProperties
in classG2dLine
- 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 classG2dLine
-
drawLine
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 -
buildPropertiesPanel
- Overrides:
buildPropertiesPanel
in classG2dLine
-
main
-