Package ucar.unidata.idv.control.drawing
Class MovieGlyph
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingGlyph
ucar.unidata.idv.control.drawing.MovieGlyph
Class MovieGlyph. Displays movies. Not done.
- Version:
- $Revision: 1.13 $
- Author:
- IDV Development Team
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPopulate the xml node with attrsprotected booleanapplyProperties(Hashtable compMap) apply propsprotected booleanIs glyph constrained to 2dvoiddoStretch(DisplayEvent event) StretchdoubleGet the FrameRate property.booleanis this glyph a rasterbooleangetLoop()Get the Loop property.Get the MovieFile property.protected voidgetPropertiesComponents(List comps, Hashtable compMap) get properties gui componentsbooleanGet the RealTime property.booleanGet the RunningMovie property.Get xml tag name to useName to use for this glyphhandleCreation(DisplayEvent event) Handle eventhandleMousePressed(DisplayEvent event) Handle eventhandleMouseReleased(DisplayEvent event) Handle eventprotected booleanInit finalbooleaninitFromUser(DrawingControl control, DisplayEvent event) InitvoidinitFromXml(DrawingControl control, Element node) InitvoidsetFrameRate(double value) Set the FrameRate property.voidsetLoop(boolean value) Set the Loop property.voidsetMovieFile(String value) Set the MovieFile property.voidsetRealTime(boolean value) Set the RealTime property.voidsetRunningMovie(boolean value) Set the RunningMovie property.protected booleanSHould show color selector in propertiesvoidGlyph moved.Methods inherited from class ucar.unidata.idv.control.drawing.DrawingGlyph
addDisplayable, addTime, canShowArea, canShowDistance, checkTimeVisibility, checkVisibility, closestPoint, distance, distanceBetween, distanceBetween, doDeletePoint, doInterpolatedStretch, doMove, doneBeingCreated, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDescription, getDisplayable, getDistance, getEditable, getElement, getExtraDescription, 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, initMove, 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, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, viewpointChanged, writePoints
-
Field Details
-
ATTR_MOVIE
Xml attribute name- See Also:
-
-
Constructor Details
-
MovieGlyph
public MovieGlyph()Ctor -
MovieGlyph
public MovieGlyph(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException Ctor- Parameters:
control- The control I'm in.event- The display event.- Throws:
RemoteException- On badnessVisADException- On badness
-
-
Method Details
-
getIsRaster
public boolean getIsRaster()is this glyph a raster- Overrides:
getIsRasterin classDrawingGlyph- Returns:
- is raster
-
initFromUser
public boolean initFromUser(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException Init- 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 Init- Overrides:
initFromXmlin classDrawingGlyph- Parameters:
control- The control I'm in.node- The xml node- Throws:
RemoteException- On badnessVisADException- On badness
-
handleCreation
Handle event- Overrides:
handleCreationin classDrawingGlyph- Parameters:
event- The display event.- Returns:
- This or null
- Throws:
RemoteException- On badnessVisADException- On badness
-
doStretch
Stretch- 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
Get xml tag name to use- Specified by:
getTagNamein classDrawingGlyph- Returns:
- Xml tag name
-
handleMouseReleased
Handle event- Overrides:
handleMouseReleasedin classDrawingGlyph- Parameters:
event- The display event.- Returns:
- This or null
- 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
Init final- Overrides:
initFinalInnerin classDrawingGlyph- Returns:
- Success
- Throws:
RemoteException- On badnessVisADException- On badness
-
shouldShowColorSelector
protected boolean shouldShowColorSelector()SHould show color selector in properties- Overrides:
shouldShowColorSelectorin classDrawingGlyph- Returns:
- false
-
getPropertiesComponents
get properties gui components- Overrides:
getPropertiesComponentsin classDrawingGlyph- Parameters:
comps- compscompMap- can hold comps
-
applyProperties
apply props- Overrides:
applyPropertiesin classDrawingGlyph- Parameters:
compMap- holds comps- Returns:
- ok
- Throws:
RemoteException- On BadnessVisADException- On Badness
-
getTypeName
Name to use for this glyph- Specified by:
getTypeNamein classDrawingGlyph- Returns:
- The glyph type name
-
setMovieFile
Set the MovieFile property.- Parameters:
value- The new value for MovieFile
-
getMovieFile
Get the MovieFile property.- Returns:
- The MovieFile
-
setLoop
public void setLoop(boolean value) Set the Loop property.- Parameters:
value- The new value for Loop
-
getLoop
public boolean getLoop()Get the Loop property.- Returns:
- The Loop
-
setFrameRate
public void setFrameRate(double value) Set the FrameRate property.- Parameters:
value- The new value for FrameRate
-
getFrameRate
public double getFrameRate()Get the FrameRate property.- Returns:
- The FrameRate
-
setRealTime
public void setRealTime(boolean value) Set the RealTime property.- Parameters:
value- The new value for RealTime
-
getRealTime
public boolean getRealTime()Get the RealTime property.- Returns:
- The RealTime
-
setRunningMovie
public void setRunningMovie(boolean value) Set the RunningMovie property.- Parameters:
value- The new value for RunningMovie
-
getRunningMovie
public boolean getRunningMovie()Get the RunningMovie property.- Returns:
- The RunningMovie
-