Package ucar.unidata.idv.control.drawing
Class ImageGlyph
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.ImageGlyph
Class ImageGlyph. Displays images.
- Version:
- $Revision: 1.31 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXml attribute namestatic final StringXml attribute nameFields inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
actualPoints, ATTR_BGCOLOR, ATTR_COLOR, ATTR_COORDTYPE, ATTR_FILLED, ATTR_FULLLATLON, ATTR_LINEWIDTH, ATTR_NAME, ATTR_PICKABLE, ATTR_POINTS, ATTR_TEXT, ATTR_TIMEFORMAT, ATTR_TIMES, ATTR_ZPOSITION, control, COORD_LABELS, COORD_LATLON, COORD_LATLONALT, COORD_LONLAT, COORD_NONE, COORD_TYPENAMES, COORD_TYPES, COORD_XY, COORD_XYZ, coordType, firstMoveEarthLocation, firstMoveLocation, IDX_ALT, IDX_LAT, IDX_LON, IDX_X, IDX_Y, IDX_Z, oldVisibility, parentDisplayable, points, propDialog, propertiesUp, PT_X, PT_Y, PT_Z, selectionDisplayable, stretchIndex, tabbedPane, TAG_ARROW, TAG_FRONT, TAG_HIGH, TAG_IMAGE, TAG_LOW, TAG_MOVIE, TAG_POLYGON, TAG_SHAPE, TAG_SYMBOL, TAG_TEXT, uniqueCnt, zPosition -
Constructor Summary
ConstructorsConstructorDescriptionCtorImageGlyph(DrawingControl control, DisplayEvent event, String image) Ctor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPopulate the xml node with attrsprotected booleanIs glyph constrained to 2dvoiddoExport()Export the image as an ximg filevoiddoMove(DisplayEvent event) Handle the eventvoiddoStretch(DisplayEvent event) Handle the eventGet extra description for the table listinggetImage()Get the Image property.booleanis this glyph a rasterprotected voidgetPropertiesComponents(List comps, Hashtable compMap) Get properties widgetsXml tag name to useName to use for this glyphhandleCreation(DisplayEvent event) Was created from userhandleMousePressed(DisplayEvent event) Handle eventhandleMouseReleased(DisplayEvent event) Handle eventprotected booleanDo final initializationbooleaninitFromUser(DrawingControl control, DisplayEvent event) Initialize after the user created mevoidinitFromXml(DrawingControl control, Element node) Initialize from xmlvoidinitMove(DisplayEvent event) Started movingvoidSet the Image property.voidGlyph moved.Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addDisplayable, addTime, applyProperties, canShowArea, canShowDistance, checkTimeVisibility, checkVisibility, closestPoint, distance, distanceBetween, distanceBetween, doDeletePoint, doInterpolatedStretch, doneBeingCreated, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDescription, getDisplayable, getDistance, getEditable, getElement, getFilled, getFixedAltitude, getFullLatLon, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getSelectionPoints, getTimeField, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleKeyPressed, handleMouseDragged, handleMouseMoved, hide, initFinal, initFromBundle, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, isValid, isVisible, makePoint, mousePressed, moveTo, processPointStrings, processPointStrings, projectionChanged, removeDisplayable, setActualPoints, setBeenRemoved, setBgcolor, setColor, setColor, setCoordType, setCreatedByUser, setEditable, setFilled, setFullLatLon, setName, setPickable, setPoints, setProperties, setSelected, setTimeValues, setVisible, setVisibleFlag, setZPosition, shouldShowBgColorSelector, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, viewpointChanged, writePoints
-
Field Details
-
ATTR_IMAGE
Xml attribute name- See Also:
-
ATTR_UPDATE
Xml attribute name- See Also:
-
-
Constructor Details
-
ImageGlyph
public ImageGlyph()Ctor -
ImageGlyph
public ImageGlyph(DrawingControl control, DisplayEvent event, String image) throws VisADException, RemoteException Ctor- Parameters:
control- The control I'm in.event- The display event.image- The image- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
-
Method Details
-
getIsRaster
public boolean getIsRaster()is this glyph a raster- Overrides:
getIsRasterin classDrawingGlyph- Returns:
- is raster (true)
-
initFromUser
public boolean initFromUser(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException Initialize after the user created me- Overrides:
initFromUserin classDrawingGlyph- Parameters:
control- The control I'm in.event- The display event.- Returns:
- ok
- Throws:
RemoteException- On badnessVisADException- On badness
-
initFromXml
public void initFromXml(DrawingControl control, Element node) throws VisADException, RemoteException Initialize from xml- Overrides:
initFromXmlin classDrawingGlyph- Parameters:
control- The control I'm in.node- The xml node- Throws:
RemoteException- On badnessVisADException- On badness
-
getExtraDescription
Get extra description for the table listing- Overrides:
getExtraDescriptionin classDrawingGlyph- Returns:
- extra description
-
handleCreation
Was created from user- Overrides:
handleCreationin classDrawingGlyph- Parameters:
event- The display event.- Returns:
- This or null
- Throws:
RemoteException- On badnessVisADException- On badness
-
doMove
Handle the event- Overrides:
doMovein classDrawingGlyph- Parameters:
event- The display event.- Throws:
RemoteException- On badnessVisADException- On badness
-
doStretch
Handle the event- Overrides:
doStretchin classDrawingGlyph- Parameters:
event- The display event.- Throws:
RemoteException- On badnessVisADException- On badness
-
constrainedTo2D
protected boolean constrainedTo2D()Is glyph constrained to 2d- Overrides:
constrainedTo2Din classDrawingGlyph- Returns:
- Constrained to 2d
-
addAttributes
Populate the xml node with attrs- Overrides:
addAttributesin classDrawingGlyph- Parameters:
e- Xml node
-
getTagName
Xml tag name to use- Specified by:
getTagNamein classDrawingGlyph- Returns:
- Xml tag name to use
-
handleMouseReleased
Handle event- Overrides:
handleMouseReleasedin classDrawingGlyph- Parameters:
event- The display event.- Returns:
- This or null
- Throws:
RemoteException- On badnessVisADException- On badness
-
initMove
Started moving- Overrides:
initMovein classDrawingGlyph- Parameters:
event- The display event.- Throws:
RemoteException- On badnessVisADException- On badness
-
updateLocation
Glyph moved. Update the Displayable location.- Overrides:
updateLocationin classDrawingGlyph- Throws:
RemoteException- On badnessVisADException- On badness
-
handleMousePressed
Handle event- Overrides:
handleMousePressedin classDrawingGlyph- Parameters:
event- The display event.- Returns:
- This or null_
- Throws:
RemoteException- When bad things happenVisADException- When bad things happen
-
initFinalInner
Do final initialization- Overrides:
initFinalInnerin classDrawingGlyph- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
getPropertiesComponents
Get properties widgets- Overrides:
getPropertiesComponentsin classDrawingGlyph- Parameters:
comps- widgetscompMap- extra holder of components
-
doExport
public void doExport()Export the image as an ximg file -
getTypeName
Name to use for this glyph- Specified by:
getTypeNamein classDrawingGlyph- Returns:
- The glyph type name
-
setImage
Set the Image property.- Parameters:
value- The new value for Image
-
getImage
Get the Image property.- Returns:
- The Image
-