|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JLayeredPane
|
+--gov.noaa.pmel.sgt.JPane
|
+--gov.noaa.pmel.sgt.swing.JGraphicLayout
JGraphicLayout is a abstract class that provides
the basis for pre-defined layouts using the
CartesianGraph class. JGraphicLayout
extends JPane.
CartesianGraph,
JPlotLayout,
Serialized Form| Field Summary | |
static int |
X_AXIS
Use X array from SGTData. |
static int |
Y_AXIS
Use Y array from SGTData. |
static int |
Z_AXIS
Use Z array from SGTData. |
| Fields inherited from class javax.swing.JLayeredPane |
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER |
| Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface gov.noaa.pmel.sgt.AbstractPane |
BOTTOM, CENTER, DEFAULT_SCALE, LEFT, MIDDLE, RIGHT, SHRINK_TO_FIT, SPECIFIED_LOCATION, TO_FIT, TOP |
| Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JGraphicLayout()
Default constructor |
|
JGraphicLayout(java.lang.String id,
java.awt.Image img)
JGraphicLayout constructor. |
|
JGraphicLayout(java.lang.String id,
java.awt.Image img,
java.awt.Dimension size)
JGraphicLayout constructor. |
|
| Method Summary | |
void |
addAttribute(SGTData data,
Attribute attr)
Associate SGTData with an
Attribute. |
void |
addData(SGTData data)
Add data to the layout. |
abstract void |
addData(SGTData data,
java.lang.String label)
Add data to the plot |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener to the list. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
|
Attribute |
findAttribute(java.lang.String id)
Find an Attribute given an id. |
Range2D |
findRange(SGTGrid data,
GridAttribute attr,
int dir)
Find the range of the SGTGrid object in the
specified direction. |
Range2D |
findRange(SGTLine data,
int dir)
Find the range of the SGTLine object in the specific
direction. |
SoTRange |
findSoTRange(SGTGrid data,
GridAttribute attr,
int dir)
Find the range of the SGTGrid object in the
specified direction. |
SoTRange |
findSoTRange(SGTLine line,
int dir)
Find the range of the SGTLine object in the specific
direction. |
SoTRange |
findSoTRange(SGTVector data,
int dir)
Find the range of the SGTVector object in the
specified direction. |
TimeRange |
findTimeRange(SGTGrid data,
GridAttribute attr)
Find the TimeRange of the SGTGrid object. |
TimeRange |
findTimeRange(SGTLine data)
Find the time range of the SGTLine object. |
Attribute |
getAttribute(SGTData data)
Find an Attribute given a SGTData
object. |
int |
getBaseUnit()
Get the base units |
Collection |
getData()
Return data associated with the plot. |
java.awt.Image |
getIconImage()
Get icon image |
java.lang.String |
getId()
Get the identifier |
abstract Rectangle2D.Double |
getKeyBoundsP()
Get the bounds for the line or color key. |
Dimension2D |
getKeyLayerSizeP()
Get the size of the key layer in physical coordinates. |
JPane |
getKeyPane()
Get KeyPane object |
abstract java.lang.String |
getLocationSummary(SGTData grid)
Construct a string that summarizes the location of the data. |
Domain |
getRange()
Get the current Domain |
Domain |
getZoomBoundsU()
Get the zoom bounds in user units |
boolean |
isClipping()
Returns true if clipping is on. |
boolean |
isEditClasses()
Are sgt objects editable? |
boolean |
isKeyPane()
Is there a key pane? |
boolean |
isOverlayed()
Layer overlay flag. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove the PropertyChangeListener from the list. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
|
abstract void |
resetZoom()
Set the axes to the range of the SGTData objects. |
void |
setBaseUnit(int base)
Set the base units. |
void |
setClipping(boolean clip)
Set clipping on or off. |
void |
setEditClasses(boolean b)
Enable sgt object property editing |
void |
setId(java.lang.String id)
Set the identifier |
abstract void |
setKeyBoundsP(Rectangle2D.Double r)
Set the bounds for the line or color key. |
void |
setKeyLayerSizeP(Dimension2D d)
Set the size of the key layer in physical coordinates. |
void |
setOverlayed(boolean over)
Set flag to overlay the layers. |
abstract void |
setRange(Domain domain)
Set the axes to to range specified by the Domain
object. |
void |
setTitles(java.lang.String title,
java.lang.String title2,
java.lang.String title3)
Set the plot titles. |
| Methods inherited from class javax.swing.JLayeredPane |
getAccessibleContext, getComponentCountInLayer, getComponentsInLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getPosition, highestLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, remove, setLayer, setLayer, setPosition |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, show, show, size, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface gov.noaa.pmel.sgt.AbstractPane |
getBounds |
| Field Detail |
public static final int X_AXIS
SGTData.
public static final int Y_AXIS
SGTData.
public static final int Z_AXIS
SGTData.
| Constructor Detail |
public JGraphicLayout()
public JGraphicLayout(java.lang.String id,
java.awt.Image img)
JGraphicLayout constructor.
id - identifierimg - icon imageJPlotLayout
public JGraphicLayout(java.lang.String id,
java.awt.Image img,
java.awt.Dimension size)
JGraphicLayout constructor.
id - identifierimg - icon imagesize - graph size in device unitsJPlotLayout| Method Detail |
public void setId(java.lang.String id)
setId in interface AbstractPanesetId in class JPaneid - layout identifierpublic java.lang.String getId()
getId in interface AbstractPanegetId in class JPane
public void setTitles(java.lang.String title,
java.lang.String title2,
java.lang.String title3)
title - main plot titletitle2 - secondary plot titletitle3 - tertiary plot titlepublic void setBaseUnit(int base)
SGTData added to the list. Other
SGTData objects added
thereafter will be converted to the standard display units for each
base unit type. (TEMPERATURE, default units are "degC"; VELOCITY,
default units are "m/s"; DISTANCE, default unis are "m"). NOTE: Presently
the units supported are very limited.
Units.NONE,
Units.TEMPERATURE,
Units.VELOCITY,
Units.DISTANCEpublic int getBaseUnit()
public void setOverlayed(boolean over)
over - if true overlay layers if false stackpublic boolean isOverlayed()
public java.awt.Image getIconImage()
public JPane getKeyPane()
public boolean isKeyPane()
public void addData(SGTData data)
data - data to be added
public void addAttribute(SGTData data,
Attribute attr)
SGTData with an
Attribute. The associations are managed by a
Hashtable object.
public Attribute getAttribute(SGTData data)
throws DataNotFoundException
Attribute given a SGTData
object.
DataNotFoundExceptionpublic Attribute findAttribute(java.lang.String id)
Attribute given an id.
public abstract void addData(SGTData data,
java.lang.String label)
public abstract java.lang.String getLocationSummary(SGTData grid)
public Range2D findRange(SGTLine data,
int dir)
SGTLine object in the specific
direction.
data - SGTLine objectdir - directionCartesianGraph
public SoTRange findSoTRange(SGTLine line,
int dir)
SGTLine object in the specific
direction.
dir - direction
SoTRange objectCartesianGraph
public SoTRange findSoTRange(SGTVector data,
int dir)
SGTVector object in the
specified direction. Uses the U component to find X, Y ranges.
data - the data vectordir - the direction
SoTRange object
public SoTRange findSoTRange(SGTGrid data,
GridAttribute attr,
int dir)
SGTGrid object in the
specified direction.
data - the data gridattr - the grid attributedir - the direction
SoTRange object
public Range2D findRange(SGTGrid data,
GridAttribute attr,
int dir)
SGTGrid object in the
specified direction.
data - the data gridattr - the grid attributedir - the directionpublic TimeRange findTimeRange(SGTLine data)
SGTLine object.
data - SGTLine objectCartesianGraph
public TimeRange findTimeRange(SGTGrid data,
GridAttribute attr)
TimeRange of the SGTGrid object.
data - the data gridattr - the grid attributepublic void setClipping(boolean clip)
clip - true if clipping is onpublic boolean isClipping()
public abstract void resetZoom()
SGTData objects.
public abstract void setRange(Domain domain)
throws java.beans.PropertyVetoException
Domain
object.
java.beans.PropertyVetoExceptionpublic Domain getRange()
Domain
public Domain getZoomBoundsU()
public Collection getData()
Collectionpublic void setEditClasses(boolean b)
sgt object property editing
public boolean isEditClasses()
sgt objects editable?
public abstract Rectangle2D.Double getKeyBoundsP()
public abstract void setKeyBoundsP(Rectangle2D.Double r)
public Dimension2D getKeyLayerSizeP()
public void setKeyLayerSizeP(Dimension2D d)
public void addVetoableChangeListener(java.beans.VetoableChangeListener l)
addVetoableChangeListener in class javax.swing.JComponentpublic void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
removeVetoableChangeListener in class javax.swing.JComponentpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
AbstractPanePane and JPane include
"objectSelected" and "zoomRectangle".
addPropertyChangeListener in interface AbstractPaneaddPropertyChangeListener in class JPanepublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
AbstractPane
removePropertyChangeListener in interface AbstractPaneremovePropertyChangeListener in class JPane
|
SGT Home | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||