Package hec.gfx2d.swing.charts.bar
Class G2dBarPlot
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
hec.gfx2d.G2dPanel
hec.gfx2d.swing.charts.bar.G2dBarPlot
- All Implemented Interfaces:
G2dPointerComponent
,G2dToolbarListener
,ObjectSelectionListener
,ImageObserver
,MenuContainer
,Printable
,Serializable
,EventListener
,Accessible
,TimeZoneComponent
,UnitsComponent
Copyright (C) 2017 Hydrologic Engineering Center,
United States Army Corps of Engineers, All Rights Reserved
HEC-Java NEXGEN
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Fields inherited from class hec.gfx2d.G2dPanel
_transferHandler, ACCESSORY_PANEL_CONTAINER, HORIZONTAL_LEGEND_CONTAINER, LEGEND_CONTAINER_GRIDBAGCONSTRAINTS, m_popupPlotCreator, MAX_COMPONENT_COLUMN, MAX_COMPONENT_ROW, VERTICAL_LEGEND_CONTAINER, X1, X2, Y1, Y2
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildComponents
(List objects) Creates a two pane 2D drawing area to display a set of G2dObjects with default colorsvoid
buildComponents
(List objects, boolean addToolbar, boolean addLegend) void
buildComponents
(List objects, List objectProperties) void
buildComponents
(List objects, List objectProperties, boolean addToolbar, boolean addLegend) Creates a two pane 2D drawing area to display a set of G2dObjectsvoid
Creates a two pane 2D drawing area with axis tics and labels, scrollbars, title, and legend.static void
Methods inherited from class hec.gfx2d.G2dPanel
addFocusListener, addLegendContainers, addLegendToPosition, addObjectSelectionListener, addPlotObject, addPlotObject, addPopupWindow, addScaleToTable, addThumbnailMenuItems, addTool, applyToAll, buildComponents, buildPlotComponents, buildPlotComponents, clearPanel, configurePanel, createAxis, createDefaultMapTools, createDefaultMouseAdapter, createDefaultToolbarProperties, createPopupPlot, createScale, createThumbnailPopupMenu, createViewport, fireObjectSelectionChanged, getAccessoryPanel, getAllLinePropertyObjects, getAxisLabel, getAxisTics, getComponents, getDeviceResoultion, getDisplayUnitsString, getFillColors, getFontScl, getHorizontalViewportSpacing, getLegendLocation, getLegendPanel, getLineColors, getLinePropertyObjects, getMouseAdapter, getPlotLayout, getPlotObjects, getPopupPlotCreator, getProperties, getScales, getSelectedToolbarButton, getTimeZone, getTitle, getTitlePanel, getViewportAxis, getViewportAxisLabel, getViewportAxisLabelSpacer, getViewportAxisTics, getViewportAxisTicsSpacer, getViewports, getViewportToolbar, getViewportVector, hasStatistics, ignorePopupPlotEvent, isFocusTraversable, isLegendVisible, isPaintEnabled, isShowingStatistics, mouseDragged, moveLegendToPosition, objectPopupMenu, objectSelect, objectSelectionChanged, paintGfx, paintGfx, plotTimeWindow, pointerOver, print, print, printStatus, registerPopupPlotCreator, removeFocusListener, removeGlyph, removeObjectSelectionListener, resetAllDataLimits, resetFontScl, resetProperties, setBounds, setBounds, setDeviceResolution, setDirty, setDisplayScaleFactor, setDisplayUnitsSystem, setHorizontalViewportSpacing, setIgnorePopupPlotEvents, setLabelFontSizes, setLegendPanel, setLegendVisible, setMouseAdapter, setMouseAdapter, setPaintEnabled, setPlotObjects, setPlotObjects, setPropertiesFactoryName, setSelectedToolbarButton, setSize, setSize, setTicFontSizes, setTimeZone, setTitle, setTransferHandler, setViewportAxisLink, showPopupPlot, showStatistics, showThumbnailPopupMenu, useLineStyles, zoomToAll
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
G2dBarPlot
public G2dBarPlot()
-
-
Method Details
-
buildComponents
Description copied from class:G2dPanel
Creates a two pane 2D drawing area to display a set of G2dObjects with default colors- Overrides:
buildComponents
in classG2dPanel
-
buildComponents
- Overrides:
buildComponents
in classG2dPanel
-
buildComponents
- Overrides:
buildComponents
in classG2dPanel
-
buildDefaultComponents
public void buildDefaultComponents()Description copied from class:G2dPanel
Creates a two pane 2D drawing area with axis tics and labels, scrollbars, title, and legend.- Overrides:
buildDefaultComponents
in classG2dPanel
-
buildComponents
public void buildComponents(List objects, List objectProperties, boolean addToolbar, boolean addLegend) Description copied from class:G2dPanel
Creates a two pane 2D drawing area to display a set of G2dObjects- Overrides:
buildComponents
in classG2dPanel
-
main
-