Package hec.gfx2d
Class G2dDialog
- All Implemented Interfaces:
RefreshListener,ActionListener,ComponentListener,ImageObserver,MenuContainer,Pageable,Printable,Serializable,EventListener,Accessible,RootPaneContainer,WindowConstants,Modifiable
- Direct Known Subclasses:
AbstractG2dDialog,AnimatedProfileG2dDialog,G2dDialogIndividualSelect,ScalarOutputDialog
public class G2dDialog
extends RmaJFrame
implements ActionListener, Pageable, Printable, RefreshListener
Simple dialog that holds a G2dPanel.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JMenuprotected JMenuprotected G2dPanelprotected PlotPropertiesDialogprotected Stringprotected TransferHandlerprotected static booleanprotected JMenuprotected JMenuItemprotected JMenuBarstatic final intstatic final intFields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface java.awt.print.Pageable
UNKNOWN_NUMBER_OF_PAGESFields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTSFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a non-modal dialog with no owner.Creates a non-modal dialog with specified owner.Creates a modal or non-modal dialog with specified owner.Creates non-modal dialog with specified title and owner.Creates a modal or non-modal dialog with specified title and owner.G2dDialog(Frame owner, String title, boolean modal, PlotLayout plotLayout) Creates a modal or non-modal dialog with specified title and owner and plots a vector of containers or of g2dobjects.Creates a modal or non-modal dialog with specified title and owner and plots a vector of containers or of g2dobjects.G2dDialog(Frame owner, String title, boolean modal, Vector containers, G2dPanelProp prop) Creates a modal or non-modal dialog with specified title and owner and plots a vector of containers or of g2dobjects.Creates a modal or non-modal dialog with specified title and owner and plots a vector of g2dobjects with specific colors. -
Method Summary
Modifier and TypeMethodDescriptionvoidMethod that handles action events generated by the menu itemsvoidaddData(DataContainer dc) Adds data (DataContainer) to the G2dDialog object.voidaddDataSet(G2dObject object) voidDeprecated.Use addData(DataContainer) instead.static voidvoidapplyTemplate(G2dPanelProp properties) voidapplyTemplate(String templateFile) apply the given template to this plotvoidclose()voidvoidvoidconfigurePlotLayout(PlotLayout plotLayout) voidvoidprotected G2dPanelReturns the default G2dPanel object.voidvoidEdit()voidAllows the user to save the properties of the plot to a disk.voidexportProperties(String templateName) return theG2dLinefor the path specified indataSetreturn theG2dLinefor the path specified indataSetfor the specified curve numbergetCurve(DataContainer dataContainer) return theG2dLinefor the path specified indataSetgetCurve(DataContainer dataContainer, int curveNumber) return theG2dLinefor the path specified indataSetfor the specified curve numberreturn theG2dLinefor the path specified indssPathreturn theG2dLinefor the path specified indssPathfor the specified curve numbergetFrame()Return theG2dGlyphspecified for the datasetgetGlyph(DataContainer dataContainer) Return theG2dGlyphspecified for the data containerReturn theG2dGlyphspecified for the data name (DSS pathname, CWMS identifier, etc...)Returns the LegendPanel object for this plot.Returns the G2dLabel of the legend item associated with the data container (display object).getLegendLabel(DataContainer dc, int curveNumber) Returns the G2dLabel of the specified curve number of the legend item associated with the data container (display object).intReturns the number of pages for this documentgetPageFormat(int pageNum) Returns the page format that is used for each page.get the Title for theG2dPanelget the text of the Title for theG2dPanelgetPrintable(int pageNum) Returns a reference to this dialog.getTabulateObject(Object obj, Class firstObjClass) protected Liststatic booleanReturns if "Use Line Styles" menu item is selectedgetViewport(int viewportIndex) get theViewportat index specified by viewportIndexgetViewport(HecMath dataSet) return theViewportthat contains the curve specified by dataSetreturn theViewportthat contains the curve specified by dcgetViewport(String dataSetPath) return theViewportthat contains the curve specified by dataSetPathstatic VectorReturns a list of open G2dDialogsvoidiconify()Minimizes (iconifies) the frame.voidprotected voidBuilds default gfx panel.protected voidinitDialog(Vector objvec) protected voidinitDialog(Vector objvec, Vector colorvec, G2dPanelProp prop) Builds default gfx panel.voidinitPlot()booleanget whether the Title for theG2dPanelis visiblevoidMakes the menu items that are used in the dialogvoidmaximize()Maximizes the frame.voidminimize()Minimizes (iconifies) the frame.voidOpen()voidvoidvoidplotTimeWindow(RunTimeWindow window, int offset, String windowName) Plots a time window.voidprint()intprint(Graphics g, PageFormat pageFormat, int pageIndex) print this plot This method is public as an implementation side effect.voidvoidvoidPrints using the printer defaults such as page format and printer.voidrefresh(RefreshEvent event) static voidvoidrestore()Restores the frame to normal size.voidsaveAs()voidvoidsaveToJpeg(File file) Save this plot to a jpeg file.voidsaveToJpeg(File file, int quality) Save this plot to a jpeg file, optionally specifying the quality of the output.voidsaveToJpeg(String fileName) Save this plot to a jpeg file.voidsaveToJpeg(String fileName, int quality) Save this plot to a jpeg file, specifying the quality of the output.voidsaveToMetafile(File file) Save this plot to a Meta filevoidsaveToMetafile(String fileName) Save this plot to a Meta filevoidvoidvoidsaveToPostscript(File file) save this plot to a post script filevoidsaveToPostscript(String fileName) save this plot to a post script filevoidsetBackground(String colorString) set the background for this plot to the color represented by colorStringvoidvoidSets the background (fill) color of the legend.voidsetLegendBackground(String colorString) Sets the background (fill) color of the legend.voidsetLegendItemVisible(HecMath dataSet, boolean isVisible) Sets the legend item visibility for the specified datasetvoidsetLegendItemVisible(DataContainer dataContainer, boolean isVisible) Sets the legend item visibility for the specified data containervoidsetLegendItemVisible(String dataName, boolean isVisible) Sets the legend item visibility for the specified datavoidsetLegendLabelText(DataContainer dc, int curveNumber, String text) Sets the label text for the specified curve number of the legend item associated with the specified data container (display object)voidsetLegendLabelText(DataContainer dc, String text) Sets the label text for the legend item associated with the specified data container (display object)voidsetLegendLabelTextFontSize(DataContainer dc, int size) Sets the label text font size for the legend item associated with the specified data container (display object)voidsetLegendLocation(String location) Sets the location of the legend for this plot.voidsetLocation(int x, int y) Sets the location of the dialog in screen coordinatesvoidvoidsetPlotpanel(G2dPanel panel) voidsetPlotTitleText(String text) set the text of the Title for theG2dPanelvoidsetPlotTitleVisible(boolean visible) set whether the Title for theG2dPanelis visiblevoidsetSize(int width, int height) sets the size of the dialog on the screen.voidsetTabulate(boolean enable) voidsetTimeWindow(String timewindow) Sets the time window for the plot.voidsetTransferHandler(TransferHandler transferHandler) static voidsetUseLineStyles(boolean useLineStyles) Set if line styles should be used by defaultvoidset the plot to not use line stylesvoidset the plot to use line stylesvoidsetVisible(boolean b) voidvoidvoidshowPlot()tabulate()tabulate this plot.tabulate(boolean showTable) tabulate this plottoString()voiduseLocalPageSettings(boolean set) voidwriteLocal(String path) Methods inherited from class rma.swing.RmaJFrame
clearForm, clearForm, clickButton, clickButton, clickCheckBox, clickRadioButton, componentHidden, componentMoved, componentResized, componentShown, createRootPane, enterKeyPressed, escapeKeyPressed, getDefaultIconImage, getOpenWindows, getTimeZone, getTopWindow, getUnitDisplaySystem, getUnitSystem, getWindow, invokeFormManagementMethod, isEditable, isIgnoringModifiedEvents, isModified, isSystemClosable, registerEnterKey, registerEscapeKey, setComponentsEditable, setComponentsEditable, setDefaultIconImage, setDefaultSize, setDisplayScale, setEditable, setIgnoreModifiedEvents, setLocation, setModified, setSystemClosable, setTimeZone, setUnitSystem, stayOpen, updateDisplayScale, updateTimeZone, updateTimeZone, updateUnitSystem, validateComponents, validateComponentsMethods inherited from class javax.swing.JFrame
addImpl, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setType, show, toBack, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Field Details
-
XSIZE
public static final int XSIZE- See Also:
-
YSIZE
public static final int YSIZE- See Also:
-
_gfxPanel
-
jmb
-
_useLineStyles
protected static boolean _useLineStyles -
_transferHandler
-
_fileMenu
-
_editMenu
-
_viewMenu
-
jConfigurePlotLayout
-
_timewindow
-
_plotPropsDlg
-
-
Constructor Details
-
G2dDialog
public G2dDialog()Creates a non-modal dialog with no owner. -
G2dDialog
Creates a non-modal dialog with specified owner. -
G2dDialog
Creates non-modal dialog with specified title and owner. -
G2dDialog
Creates a modal or non-modal dialog with specified owner. -
G2dDialog
Creates a modal or non-modal dialog with specified title and owner. -
G2dDialog
Creates a modal or non-modal dialog with specified title and owner and plots a vector of g2dobjects with specific colors. -
G2dDialog
Creates a modal or non-modal dialog with specified title and owner and plots a vector of containers or of g2dobjects. -
G2dDialog
Creates a modal or non-modal dialog with specified title and owner and plots a vector of containers or of g2dobjects.- Parameters:
owner-title-modal-plotLayout-
-
G2dDialog
Creates a modal or non-modal dialog with specified title and owner and plots a vector of containers or of g2dobjects.
-
-
Method Details
-
setVisible
public void setVisible(boolean b) - Overrides:
setVisiblein classRmaJFrame
-
setTransferHandler
- Overrides:
setTransferHandlerin classJFrame
-
addG2dDialogWindowListener
-
removeG2dDialogWindowListener
-
getVisibleDialogs
Returns a list of open G2dDialogs -
setLocation
public void setLocation(int x, int y) Sets the location of the dialog in screen coordinates- Overrides:
setLocationin classWindow- Parameters:
x- The x location coordinatey- The y-location coordinate
-
setSize
public void setSize(int width, int height) sets the size of the dialog on the screen. Makes sure the components inside the dialog are resized accordingly. -
initDialog
protected void initDialog()Builds default gfx panel. -
initDialog
-
initDialog
Builds default gfx panel.- Parameters:
objvec-colorvec- a list of G2dLineProperties to configure line styles. This will override any linestyles in the "prop" parameter. Pass in an empty list or null to use line sytles in the prop parameter.prop- defines a set of properties to build a plot including line styles. If no line styles are defined in "prop" or "colorvec" then default line styles will be used.
-
makeMenus
public void makeMenus()Makes the menu items that are used in the dialog -
actionPerformed
Method that handles action events generated by the menu items- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- The action event generated by a specific item
-
setUseLineStylesOn
public void setUseLineStylesOn()set the plot to use line styles -
getFileMenu
-
getEditMenu
-
getViewMenu
-
setUseLineStylesOff
public void setUseLineStylesOff()set the plot to not use line styles -
applyTemplate
-
applyTemplate
apply the given template to this plot- Parameters:
templateFile- the path to the template
-
importProperties
public void importProperties() -
writeLocal
-
exportProperties
public void exportProperties()Allows the user to save the properties of the plot to a disk. -
exportProperties
-
setUseLineStyles
public static void setUseLineStyles(boolean useLineStyles) Set if line styles should be used by default- Parameters:
useLineStyles- boolean indicating if it should be selected or not
-
getUseLineStyles
public static boolean getUseLineStyles()Returns if "Use Line Styles" menu item is selected- Returns:
- boolean if selected
-
close
public void close() -
printPreview
public void printPreview() -
getPageFormat
Returns the page format that is used for each page. The page format is the default page format generated by the print job and is the same for all pages.- Specified by:
getPageFormatin interfacePageable
-
getPrintable
Returns a reference to this dialog. This dialog controls which plots go on which page- Specified by:
getPrintablein interfacePageable
-
getNumberOfPages
public int getNumberOfPages()Returns the number of pages for this document- Specified by:
getNumberOfPagesin interfacePageable
-
printToDefault
public void printToDefault()Prints using the printer defaults such as page format and printer. This method does not display the printer dialog for user interaction. -
print
public void print() -
print
print this plot This method is public as an implementation side effect. do not call.- Specified by:
printin interfacePrintable- Throws:
PrinterException
-
useLocalPageSettings
public void useLocalPageSettings(boolean set) -
getPrintProperties
-
pageSetup
public void pageSetup() -
printMultiple
public void printMultiple() -
tabulate
tabulate this plot. Do not show the HecDataTableFrame- Returns:
- the HecDataTableFrame
-
tabulate
tabulate this plot- Parameters:
showTable- whether to set the HecDataTableFrame visible or not- Returns:
- the HecDataTableFrame
-
getTabulateObjects
-
Edit
public void Edit() -
Open
public void Open() -
saveAs
public void saveAs() -
saveToPng
-
saveToPng
-
saveToJpeg
Save this plot to a jpeg file.- Parameters:
fileName- The file to save this plot to.
-
saveToJpeg
Save this plot to a jpeg file, specifying the quality of the output.Quality and compression are inversely proportional.
- Parameters:
fileName- The file to save this plot to.quality- The quality to use (0 - 100). If no quality is specified, the underlying mechanism seems to use a value of 75.
-
saveToJpeg
Save this plot to a jpeg file.- Parameters:
file- The file to save this plot to.
-
saveToJpeg
Save this plot to a jpeg file, optionally specifying the quality of the output.Quality and compression are inversely proportional.
- Parameters:
file- The file to save this plot to.quality- The quality to use (0 - 100). If no quality is specified, the underlying mechanism seems to use a value of 75.
-
saveToPostscript
save this plot to a post script file- Parameters:
fileName- the name of the file to save this plot to
-
saveToPostscript
save this plot to a post script file- Parameters:
file- the file to save this plot to
-
saveToMetafile
Save this plot to a Meta file- Parameters:
fileName- the name of the file to save to
-
saveToMetafile
Save this plot to a Meta file- Parameters:
file- the file to save to
-
savePlotSpecification
public void savePlotSpecification() -
copyToClipboard
public void copyToClipboard() -
setXAxisColor
-
setYAxisColor
-
getXAxisColor
-
getYAxisColor
-
setPanel
-
getPlotpanel
-
setPlotpanel
-
setFrame
-
getFrame
-
getLegend
Returns the LegendPanel object for this plot.- Returns:
- The LegendPanel object
-
setLegendBackground
Sets the background (fill) color of the legend.- Parameters:
colorString- The specified color.
-
setLegendBackground
Sets the background (fill) color of the legend.- Parameters:
c- The specified color.
-
setLegendLocation
Sets the location of the legend for this plot.- Parameters:
location- The location of the legend. Valid locations are:- Right
- Bottom
-
getLegendLabel
Returns the G2dLabel of the legend item associated with the data container (display object).- Parameters:
dc- The data container (display object)- Returns:
- The G2dLabel of the matching legend item.
-
getLegendLabel
Returns the G2dLabel of the specified curve number of the legend item associated with the data container (display object).- Parameters:
dc- The data container (display object)curveNumber- The number of the curve to get- Returns:
- The G2dLabel of the matching legend item.
-
setLegendItemVisible
Sets the legend item visibility for the specified dataset- Parameters:
dataSet- the data to set the legend item visibility forisVisible- the new visibility state of the legend item
-
setLegendItemVisible
Sets the legend item visibility for the specified data container- Parameters:
dataContainer- the data to set the legend item visibility forisVisible- the new visibility state of the legend item
-
setLegendItemVisible
Sets the legend item visibility for the specified data- Parameters:
dataName- the name of the data to set the legend item visibility for (e.g. DSS pathname, CWMS identifier, etc...)isVisible- the new visibility state of the legend item
-
setLegendLabelText
Sets the label text for the legend item associated with the specified data container (display object)- Parameters:
dc- The data container (display object) for which to set the legend label text.text- The legend label text.
-
setLegendLabelText
Sets the label text for the specified curve number of the legend item associated with the specified data container (display object)- Parameters:
dc- The data container (display object) for which to set the legend label text.curveNumber- The number of the curve to settext- The legend label text.
-
setLegendLabelTextFontSize
Sets the label text font size for the legend item associated with the specified data container (display object)- Parameters:
dc- The data container (display object) for which to set the legend label text.size- The legend label text font size.
-
setTabulate
public void setTabulate(boolean enable) -
toString
-
setTimeWindow
Sets the time window for the plot. The time axis of the plot is bounded by the time window inserted here. Used for retrieving dss data sets. A sample time window is 11OCT2001 0200 20OCT2001 0200 -
plotTimeWindow
Plots a time window. The minimum time bounds is bounded to the time window and a marker marks off the start time. Throws an illegal arguement exception if the parameter value is null. The offsetFromGmt marks number of hours from GMT that this windows occurs in. Allows the display to plot the timewindow in various timezones correctly. -
plotProperties
public void plotProperties() -
defaultPlotProperties
public void defaultPlotProperties() -
configurePlotTypes
public void configurePlotTypes() -
configureLiveDisplay
public void configureLiveDisplay() -
configurePlotLayout
public void configurePlotLayout() -
configurePlotLayout
-
addDataSet
-
addDisplayObject
Deprecated.Use addData(DataContainer) instead.Adds data (DataContainer) to the G2dDialog object.- Parameters:
dc- The DataContainer to add to the object.
-
addData
Adds data (DataContainer) to the G2dDialog object.- Parameters:
dc- The DataContainer to add to the object.
-
getViewport
get theViewportat index specified by viewportIndex- Parameters:
viewportIndex-- Returns:
-
getViewports
-
initPlot
public void initPlot() -
showPlot
public void showPlot() -
getPlotTitle
get the Title for theG2dPanel- Returns:
- the plot title
-
setPlotTitleVisible
public void setPlotTitleVisible(boolean visible) set whether the Title for theG2dPanelis visible- Parameters:
visible- the visibility state
-
isPlotTitleVisible
public boolean isPlotTitleVisible()get whether the Title for theG2dPanelis visible- Returns:
- the plot title is visible
-
setPlotTitleText
set the text of the Title for theG2dPanel- Parameters:
text- the title text
-
getPlotTitleText
get the text of the Title for theG2dPanel- Returns:
- the plot title text
-
setBackground
set the background for this plot to the color represented by colorString- Parameters:
colorString-
-
getGlyph
Return theG2dGlyphspecified for the dataset- Parameters:
dataSet- The data to return the glyph for- Returns:
- The glyph for the specified data or null if not found
-
getGlyph
Return theG2dGlyphspecified for the data container- Parameters:
dataContainer- The data to return the glyph for- Returns:
- The glyph for the specified data or null if not found
-
getGlyph
Return theG2dGlyphspecified for the data name (DSS pathname, CWMS identifier, etc...)- Parameters:
dataName- The identifier of the data to return the glyph for- Returns:
- The glyph for the specified data or null if not found
-
getCurve
return theG2dLinefor the path specified indataSet- Parameters:
dataSet- the HecMath object of the curve to return- Returns:
- the G2dLine or null if not found
-
getCurve
return theG2dLinefor the path specified indataSetfor the specified curve number- Parameters:
dataSet- the HecMath object of the curve to returncurveNumber- the index of the curve to retrieve- Returns:
- the G2dLine or null if not found
-
getCurve
return theG2dLinefor the path specified indataSet- Parameters:
dataContainer- the DataContainer object of the curve to return- Returns:
- the G2dLine or null if not found
-
getCurve
return theG2dLinefor the path specified indataSetfor the specified curve number- Parameters:
dataContainer- the DataContainer object of the curve to returncurveNumber- the index of the curve to retrieve- Returns:
- the G2dLine or null if not found
-
getCurve
return theG2dLinefor the path specified indssPath- Parameters:
dssPath- the DSS path name of the curve to return- Returns:
- the G2dLine or null if not found
-
getCurve
return theG2dLinefor the path specified indssPathfor the specified curve number- Parameters:
dssPath- the DSS path name of the curve to returncurveNumber- the index of the curve to retrieve- Returns:
- the G2dLine or null if not found
-
getViewport
return theViewportthat contains the curve specified by dataSetPath- Parameters:
dataSetPath- the path for a curve- Returns:
- the enclosing Viewport
-
getViewport
return theViewportthat contains the curve specified by dc- Parameters:
dc- the DataContainer for a curve- Returns:
- the enclosing Viewport
-
getViewport
return theViewportthat contains the curve specified by dataSet- Parameters:
dataSet- the HecMath object for a curve- Returns:
- the enclosing Viewport
-
maximize
public void maximize()Maximizes the frame. -
minimize
public void minimize()Minimizes (iconifies) the frame. -
iconify
public void iconify()Minimizes (iconifies) the frame. -
restore
public void restore()Restores the frame to normal size. -
getTabulateObject
- Parameters:
obj-firstObjClass-- Returns:
-
refresh
- Specified by:
refreshin interfaceRefreshListener
-
createDefaultG2dPanel
Returns the default G2dPanel object. A subclass can override this method to return a different G2dPanel object.- Returns:
- the default G2dPanel object
- See Also:
-