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 void
Populate the xml node with attrsprotected boolean
applyProperties
(Hashtable compMap) apply propsprotected boolean
Is glyph constrained to 2dvoid
doStretch
(DisplayEvent event) Stretchdouble
Get the FrameRate property.boolean
is this glyph a rasterboolean
getLoop()
Get the Loop property.Get the MovieFile property.protected void
getPropertiesComponents
(List comps, Hashtable compMap) get properties gui componentsboolean
Get the RealTime property.boolean
Get 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 boolean
Init finalboolean
initFromUser
(DrawingControl control, DisplayEvent event) Initvoid
initFromXml
(DrawingControl control, Element node) Initvoid
setFrameRate
(double value) Set the FrameRate property.void
setLoop
(boolean value) Set the Loop property.void
setMovieFile
(String value) Set the MovieFile property.void
setRealTime
(boolean value) Set the RealTime property.void
setRunningMovie
(boolean value) Set the RunningMovie property.protected boolean
SHould show color selector in propertiesvoid
Glyph 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:
getIsRaster
in classDrawingGlyph
- Returns:
- is raster
-
initFromUser
public boolean initFromUser(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException Init- Overrides:
initFromUser
in 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:
initFromXml
in classDrawingGlyph
- Parameters:
control
- The control I'm in.node
- The xml node- Throws:
RemoteException
- On badnessVisADException
- On badness
-
handleCreation
Handle event- Overrides:
handleCreation
in classDrawingGlyph
- Parameters:
event
- The display event.- Returns:
- This or null
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
doStretch
Stretch- Overrides:
doStretch
in classDrawingGlyph
- Parameters:
event
- The display event.- Throws:
RemoteException
- On badnessVisADException
- On badness
-
constrainedTo2D
protected boolean constrainedTo2D()Is glyph constrained to 2d- Overrides:
constrainedTo2D
in classDrawingGlyph
- Returns:
- Constrained to 2d
-
addAttributes
Populate the xml node with attrs- Overrides:
addAttributes
in classDrawingGlyph
- Parameters:
e
- Xml node
-
getTagName
Get xml tag name to use- Specified by:
getTagName
in classDrawingGlyph
- Returns:
- Xml tag name
-
handleMouseReleased
Handle event- Overrides:
handleMouseReleased
in classDrawingGlyph
- Parameters:
event
- The display event.- Returns:
- This or null
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
updateLocation
Glyph moved. Update the Displayable location.- Overrides:
updateLocation
in classDrawingGlyph
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
handleMousePressed
Handle event- Overrides:
handleMousePressed
in classDrawingGlyph
- Parameters:
event
- The display event.- Returns:
- This or null
- Throws:
RemoteException
- When bad things happenVisADException
- When bad things happen
-
initFinalInner
Init final- Overrides:
initFinalInner
in classDrawingGlyph
- Returns:
- Success
- Throws:
RemoteException
- On badnessVisADException
- On badness
-
shouldShowColorSelector
protected boolean shouldShowColorSelector()SHould show color selector in properties- Overrides:
shouldShowColorSelector
in classDrawingGlyph
- Returns:
- false
-
getPropertiesComponents
get properties gui components- Overrides:
getPropertiesComponents
in classDrawingGlyph
- Parameters:
comps
- compscompMap
- can hold comps
-
applyProperties
apply props- Overrides:
applyProperties
in classDrawingGlyph
- Parameters:
compMap
- holds comps- Returns:
- ok
- Throws:
RemoteException
- On BadnessVisADException
- On Badness
-
getTypeName
Name to use for this glyph- Specified by:
getTypeName
in 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
-