samples.gxy.common.MouseLocationComponent
shows how
it can be linked to the current mouse position.@Deprecated public class TLcdGRIBGXYController extends ALcdGXYSmartController
ILcdGXYView
, this ILcdGXYController
displays a label showing the GRIB
parameter value at the point under the mouse cursor. If there are more layers with GRIB data, the value of the
highest visible GRIB layer that has a value in that position, is displayed.Constructor and Description |
---|
TLcdGRIBGXYController()
Deprecated.
Default constructor.
|
TLcdGRIBGXYController(Cursor aCursor)
Deprecated.
Creates a new
TLcdGRIBGXYController with the given cursor. |
Modifier and Type | Method and Description |
---|---|
protected String |
formatValue(TLcdGRIBModelDescriptor aGRIBModelDescriptor,
int aInternalValue)
Deprecated.
Formats the given internal GRIB value as a String.
|
protected String |
formatValues(TLcdMultivaluedRasterModelDescriptor aMultivaluedRasterModelDescriptor,
int[] aInternalValues)
Deprecated.
Formats the given internal GRIB values as a String.
|
DecimalFormat |
getDecimalFormat()
Deprecated.
Gets the decimal format for the GRIB value.
|
Color |
getLabelBackgroundColor()
Deprecated.
Returns the label background color.
|
Font |
getLabelFont()
Deprecated.
Returns the font for used by the label displaying the GRIB parameter value.
|
Color |
getLabelFontColor()
Deprecated.
Returns the color of the font of the label displaying the GRIB parameter value.
|
boolean |
isDisplayLabel()
Deprecated.
Returns true if the label should be displayed, false otherwise.
|
void |
mouseClicked(MouseEvent aMouseEvent)
Deprecated.
|
void |
mouseDragged(MouseEvent aMouseEvent)
Deprecated.
|
void |
mouseEntered(MouseEvent me)
Deprecated.
|
void |
mouseExited(MouseEvent me)
Deprecated.
Will perform a pan depending on the values of isDragging,
isPanOnMouseDragExit and isPanOnMouseMoveExit properties
|
void |
mouseMoved(MouseEvent aMouseEvent)
Deprecated.
|
void |
mousePressed(MouseEvent me)
Deprecated.
|
void |
mouseReleased(MouseEvent aMouseEvent)
Deprecated.
|
void |
paint(Graphics aGraphics)
Deprecated.
Enables the controller to give visual feedback on the current user interactions.
|
void |
setDecimalFormat(DecimalFormat aDecimalFormat)
Deprecated.
Sets the decimal format for the GRIB value.
|
void |
setDisplayLabel(boolean aDisplayLabel)
Deprecated.
Sets whether this controller should display a label containing the GRIB parameter at the point under the mouse
cursor.
|
void |
setLabelBackgroundColor(Color aLabelBackgroundColor)
Deprecated.
Sets a new background color for the label.
|
void |
setLabelFont(Font aLabelFont)
Deprecated.
Sets a new font for the label displaying the GRIB parameter value.
|
void |
setLabelFontColor(Color aLabelFontColor)
Deprecated.
Sets the font color of the label.
|
void |
startInteraction(ILcdGXYView aView)
Deprecated.
Sets up the controller to receive input through the view passed.
|
addUndoableListener, doPanGXYView, doZoomGXYView, fireUndoableEvent, getDownPanChars, getDownPanCodes, getLeftPanChars, getLeftPanCodes, getPanAbsDelta, getPanAbsDelta, getRightPanChars, getRightPanCodes, getUndoableListenerCount, getUpPanChars, getUpPanCodes, getZoomInChars, getZoomInCodes, getZoomOutChars, getZoomOutCodes, isDragging, isPanOnMouseDragExit, isPanOnMouseMoveExit, isPanUndoable, isRequestFocusOnMouseEntered, isRequestFocusOnMousePressed, isTraceOn, isZoomUndoable, keyPressed, keyReleased, keyTyped, removeUndoableListener, setDownPanChars, setDownPanCodes, setIsDragging, setLeftPanChars, setLeftPanCodes, setPanAbsDelta, setPanOnMouseDragExit, setPanOnMouseMoveExit, setPanUndoable, setRequestFocusOnMouseEntered, setRequestFocusOnMousePressed, setRightPanChars, setRightPanCodes, setTraceOn, setUpPanChars, setUpPanCodes, setZoomInChars, setZoomInCodes, setZoomOutChars, setZoomOutCodes, setZoomUndoable, terminateInteraction, updateViewLocationAfterZoomSFCT
addStatusListener, asGXYController, fireStatusEvent, getCursor, getGXYView, getIcon, getName, getShortDescription, registerInstance, removeStatusListener, retrieveGXYViewXYWorldTransformation, setClassTraceOn, setCursor, setGXYView, setIcon, setName, setShortDescription, viewRepaint
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLayered
public TLcdGRIBGXYController()
public TLcdGRIBGXYController(Cursor aCursor)
TLcdGRIBGXYController
with the given cursor.aCursor
- The cursor for this controllerpublic Color getLabelFontColor()
setLabelFontColor(java.awt.Color)
public void setLabelFontColor(Color aLabelFontColor)
aLabelFontColor
- The color for the font of the label.getLabelFontColor()
public Color getLabelBackgroundColor()
setLabelBackgroundColor(java.awt.Color)
public void setLabelBackgroundColor(Color aLabelBackgroundColor)
aLabelBackgroundColor
- The background color for the label.getLabelBackgroundColor()
public Font getLabelFont()
setLabelFont(java.awt.Font)
public void setLabelFont(Font aLabelFont)
aLabelFont
- The new font.getLabelFont()
public DecimalFormat getDecimalFormat()
setDecimalFormat(java.text.DecimalFormat)
public void setDecimalFormat(DecimalFormat aDecimalFormat)
aDecimalFormat
- The decimal format for the GRIB value.getDecimalFormat()
public boolean isDisplayLabel()
setDisplayLabel(boolean)
public void setDisplayLabel(boolean aDisplayLabel)
aDisplayLabel
- True if the label has to be displayed, false otherwise.isDisplayLabel()
public void startInteraction(ILcdGXYView aView)
ALcdGXYController
All ILcdGXYView
implementations that support interaction call this method when the controller
has been made active with setGXYController
on the view,
so this method shouldn't normally be called directly.
Note that most view implementations add the controller as listener if appropriate before calling
this method.
Sets the cursor on the view and sets the view for which this controller is now active.
Sends out a status event based on the short description
.
startInteraction
in interface ILcdGXYController
startInteraction
in class ALcdGXYSmartController
aView
- the ILcdGXYView
this ILcdGXYController
will interact with.ILcdGXYView.setGXYController(com.luciad.view.gxy.ILcdGXYController)
,
ILcdGXYController.terminateInteraction(com.luciad.view.gxy.ILcdGXYView)
public void mouseReleased(MouseEvent aMouseEvent)
mouseReleased
in interface MouseListener
mouseReleased
in class ALcdGXYSmartController
public void mouseDragged(MouseEvent aMouseEvent)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class ALcdGXYSmartController
public void mouseMoved(MouseEvent aMouseEvent)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class ALcdGXYSmartController
public void mouseClicked(MouseEvent aMouseEvent)
mouseClicked
in interface MouseListener
mouseClicked
in class ALcdGXYSmartController
public void mousePressed(MouseEvent me)
mousePressed
in interface MouseListener
mousePressed
in class ALcdGXYSmartController
public void mouseEntered(MouseEvent me)
mouseEntered
in interface MouseListener
mouseEntered
in class ALcdGXYSmartController
public void mouseExited(MouseEvent me)
ALcdGXYSmartController
mouseExited
in interface MouseListener
mouseExited
in class ALcdGXYSmartController
public void paint(Graphics aGraphics)
ALcdGXYController
Empty implementation. Redefine this method to render on the Graphics on which the view is rendered.
paint
in interface ILcdGXYController
paint
in class ALcdGXYController
aGraphics
- the Graphics on which the view was rendered.protected String formatValues(TLcdMultivaluedRasterModelDescriptor aMultivaluedRasterModelDescriptor, int[] aInternalValues)
aMultivaluedRasterModelDescriptor
- the model descriptor describing the multi-valued raster from which the values originate.aInternalValues
- the values to be formatted.formatValue(TLcdGRIBModelDescriptor,int)
protected String formatValue(TLcdGRIBModelDescriptor aGRIBModelDescriptor, int aInternalValue)
aGRIBModelDescriptor
- the model descriptor describing the GRIB raster from which the value originates.aInternalValue
- the value to be formatted.