|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | 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 FormInner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
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, LEFT, MIDDLE, RIGHT, SPECIFIED_LOCATION, 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)
Adds a VetoableChangeListener to the listener list. |
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)
Removes a VetoableChangeListener from the listener list. |
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, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getNextFocusableComponent, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getUIClassID, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeContainerListener, setLayout, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, contains, createImage, createImage, dispatchEvent, enable, enableInputMethods, getBackground, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, 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, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, show, show, size, transferFocus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 class JPane
id
- layout identifierpublic java.lang.String getId()
getId
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.DISTANCE
public 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 addedpublic 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.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.data
- SGTLine objectdir
- directionSoTRange
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 directionSoTRange
objectpublic SoTRange findSoTRange(SGTGrid data, GridAttribute attr, int dir)
SGTGrid
object in the
specified direction.data
- the data gridattr
- the grid attributedir
- the directionSoTRange
objectpublic 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 attributedir
- the directionpublic 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.public Domain getRange()
Domain
public Domain getZoomBoundsU()
public Collection getData()
Collection
public void setEditClasses(boolean b)
sgt
object property editingpublic 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)
javax.swing.JComponent
addVetoableChangeListener
in class javax.swing.JComponent
javax.swing.JComponent
listener
- the VetoableChangeListener to be addedpublic void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
javax.swing.JComponent
removeVetoableChangeListener
in class javax.swing.JComponent
javax.swing.JComponent
listener
- the VetoableChangeListener to be removedpublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
AbstractPane
Pane
and JPane
include
"objectSelected" and "zoomRectangle".addPropertyChangeListener
in class JPane
javax.swing.JComponent
listener
- the PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
AbstractPane
removePropertyChangeListener
in class JPane
javax.swing.JComponent
listener
- the PropertyChangeListener to be removed
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |