Package Map.gridbaselayer
Class GridOverlayDraw
java.lang.Object
PamView.PanelOverlayDraw
Map.gridbaselayer.GridOverlayDraw
Deprecated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canDraw
(GeneralProjector.ParameterType[] parameterTypes, GeneralProjector.ParameterUnits[] parameterUnits) Deprecated.createKeyItem
(GeneralProjector generalProjector, int keyType) Deprecated.provide a graphics component (probably a JPanel) that can be incorporated into a key panel for maps, and anything else that uses overlay graphics.drawDataUnit
(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Deprecated.getHoverText
(GeneralProjector generalProjector, PamDataUnit dataUnit, int iSide) Deprecated.Provides text for popup hover windows on displays.Methods inherited from class PamView.PanelOverlayDraw
canDraw, getDefaultSymbol, getPamSymbol, hasOptionsDialog, preDrawAnything, setDefaultSymbol, showOptions
-
Constructor Details
-
GridOverlayDraw
Deprecated.
-
-
Method Details
-
drawDataUnit
public Rectangle drawDataUnit(Graphics g, PamDataUnit pamDataUnit, GeneralProjector generalProjector) Deprecated.- Specified by:
drawDataUnit
in classPanelOverlayDraw
- Parameters:
g
- Graphics handle to draw onpamDataUnit
- PamDataUnit to drawgeneralProjector
- Projector to use when drawing.- Returns:
- A rectangle surrouding whatever has just been drawn.
-
canDraw
public boolean canDraw(GeneralProjector.ParameterType[] parameterTypes, GeneralProjector.ParameterUnits[] parameterUnits) Deprecated.- Specified by:
canDraw
in classPanelOverlayDraw
- Returns:
- Returns whether or not the object can be drawn using the given projector. The implementation of CanDraw should examine the parameter types in GeneralProjector and check that it will know how to prvide those parameters before returning true, or false otherwise.
-
createKeyItem
Deprecated.Description copied from class:PanelOverlayDraw
provide a graphics component (probably a JPanel) that can be incorporated into a key panel for maps, and anything else that uses overlay graphics.Since multiple keys may be created in various displays, new ones should normally be created each time this is called.
The GeneralProjector reference is passed as a parameter since the type of symbol or shape drawn on a particular plot may depend on the type of coordinate system. For example, whistles are drawn as a contour on the spectrogram display, but as a point (PamSymbol) on the map.
It is possible that some PanelOverlayDraw implementations will be rather complicated and the keys consequently quite large. The extendedKey parameter may therefore be used to draw a full or a cut down version of the key. It is expected that most implementations will ignore this parameter !
- Specified by:
createKeyItem
in classPanelOverlayDraw
- Parameters:
generalProjector
- Reference to a GeneralProjector responsible for drawing with the PAnelOverlayDraw implementationkeyType
- Draw a more complicated key, giving more detail- Returns:
- java.awt compnent (usually a JPanel).
- See Also:
-
getHoverText
Deprecated.Description copied from class:PanelOverlayDraw
Provides text for popup hover windows on displays.- Specified by:
getHoverText
in classPanelOverlayDraw
- Parameters:
generalProjector
- Projector associated with the display requiring the textdataUnit
- Data unit the mouse hovered over- Returns:
- Text to display
-