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, _propertiesFields 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[]voidDescription of the Methodprotected voidCreates the default popup menu for this linevoidThis method draws a line to the specified graphics context.static voidvoidsetInterpolateMissing(boolean interpolate) voidSets the properties that this line uses to drawvoidsetRawTimeSeriesData(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.voidsetRawTimeSeriesData(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, toWorldGeometryMethods 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, useRecursiveModifiedTestMethods 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:G2dLineCreates the default popup menu for this line- Overrides:
createPopupMenuin classG2dLine
-
setInterpolateMissing
public void setInterpolateMissing(boolean interpolate) -
setProperties
Description copied from class:G2dLineSets the properties that this line uses to draw- Overrides:
setPropertiesin 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:G2dLineDescription of the Method- Overrides:
clearLineDatain classG2dLine
-
drawLine
Description copied from class:G2dLineThis method draws a line to the specified graphics context. The line is clipped so it fits within the clipping rectangle -
buildPropertiesPanel
- Overrides:
buildPropertiesPanelin classG2dLine
-
main
-