ucar.unidata.idv.control.drawing
Class MovieGlyph

java.lang.Object
  extended by ucar.unidata.idv.control.drawing.DrawingGlyph
      extended by ucar.unidata.idv.control.drawing.MovieGlyph

public class MovieGlyph
extends DrawingGlyph

Class MovieGlyph. Displays movies. Not done.

Version:
$Revision: 1.13 $
Author:
IDV Development Team

Field Summary
static String ATTR_MOVIE
          Xml attribute name
 
Fields 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_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
MovieGlyph()
          Ctor
MovieGlyph(DrawingControl control, DisplayEvent event)
          Ctor
 
Method Summary
protected  void addAttributes(Element e)
          Populate the xml node with attrs
protected  boolean applyProperties(Hashtable compMap)
          apply props
protected  boolean constrainedTo2D()
          Is glyph constrained to 2d
 void doStretch(DisplayEvent event)
          Stretch
 double getFrameRate()
          Get the FrameRate property.
 boolean getIsRaster()
          is this glyph a raster
 boolean getLoop()
          Get the Loop property.
 String getMovieFile()
          Get the MovieFile property.
protected  void getPropertiesComponents(List comps, Hashtable compMap)
          get properties gui components
 boolean getRealTime()
          Get the RealTime property.
 boolean getRunningMovie()
          Get the RunningMovie property.
 String getTagName()
          Get xml tag name to use
 String getTypeName()
          Name to use for this glyph
 DrawingGlyph handleCreation(DisplayEvent event)
          Handle event
 DrawingGlyph handleMousePressed(DisplayEvent event)
          Handle event
 DrawingGlyph handleMouseReleased(DisplayEvent event)
          Handle event
protected  boolean initFinalInner()
          Init final
 boolean initFromUser(DrawingControl control, DisplayEvent event)
          Init
 void initFromXml(DrawingControl control, Element node)
          Init
 void 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 shouldShowColorSelector()
          SHould show color selector in properties
 void updateLocation()
          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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTR_MOVIE

public static final String ATTR_MOVIE
Xml attribute name

See Also:
Constant Field Values
Constructor Detail

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 badness
VisADException - On badness
Method Detail

getIsRaster

public boolean getIsRaster()
is this glyph a raster

Overrides:
getIsRaster in class DrawingGlyph
Returns:
is raster

initFromUser

public boolean initFromUser(DrawingControl control,
                            DisplayEvent event)
                     throws VisADException,
                            RemoteException
Init

Overrides:
initFromUser in class DrawingGlyph
Parameters:
control - The control I'm in.
event - The display event.
Returns:
OK
Throws:
RemoteException - On badness
VisADException - On badness

initFromXml

public void initFromXml(DrawingControl control,
                        Element node)
                 throws VisADException,
                        RemoteException
Init

Overrides:
initFromXml in class DrawingGlyph
Parameters:
control - The control I'm in.
node - The xml node
Throws:
RemoteException - On badness
VisADException - On badness

handleCreation

public DrawingGlyph handleCreation(DisplayEvent event)
                            throws VisADException,
                                   RemoteException
Handle event

Overrides:
handleCreation in class DrawingGlyph
Parameters:
event - The display event.
Returns:
This or null
Throws:
RemoteException - On badness
VisADException - On badness

doStretch

public void doStretch(DisplayEvent event)
               throws VisADException,
                      RemoteException
Stretch

Overrides:
doStretch in class DrawingGlyph
Parameters:
event - The display event.
Throws:
RemoteException - On badness
VisADException - On badness

constrainedTo2D

protected boolean constrainedTo2D()
Is glyph constrained to 2d

Overrides:
constrainedTo2D in class DrawingGlyph
Returns:
Constrained to 2d

addAttributes

protected void addAttributes(Element e)
Populate the xml node with attrs

Overrides:
addAttributes in class DrawingGlyph
Parameters:
e - Xml node

getTagName

public String getTagName()
Get xml tag name to use

Specified by:
getTagName in class DrawingGlyph
Returns:
Xml tag name

handleMouseReleased

public DrawingGlyph handleMouseReleased(DisplayEvent event)
                                 throws VisADException,
                                        RemoteException
Handle event

Overrides:
handleMouseReleased in class DrawingGlyph
Parameters:
event - The display event.
Returns:
This or null
Throws:
RemoteException - On badness
VisADException - On badness

updateLocation

public void updateLocation()
                    throws VisADException,
                           RemoteException
Glyph moved. Update the Displayable location.

Overrides:
updateLocation in class DrawingGlyph
Throws:
RemoteException - On badness
VisADException - On badness

handleMousePressed

public DrawingGlyph handleMousePressed(DisplayEvent event)
                                throws VisADException,
                                       RemoteException
Handle event

Overrides:
handleMousePressed in class DrawingGlyph
Parameters:
event - The display event.
Returns:
This or null
Throws:
RemoteException - When bad things happen
VisADException - When bad things happen

initFinalInner

protected boolean initFinalInner()
                          throws VisADException,
                                 RemoteException
Init final

Overrides:
initFinalInner in class DrawingGlyph
Returns:
Success
Throws:
RemoteException - On badness
VisADException - On badness

shouldShowColorSelector

protected boolean shouldShowColorSelector()
SHould show color selector in properties

Overrides:
shouldShowColorSelector in class DrawingGlyph
Returns:
false

getPropertiesComponents

protected void getPropertiesComponents(List comps,
                                       Hashtable compMap)
get properties gui components

Overrides:
getPropertiesComponents in class DrawingGlyph
Parameters:
comps - comps
compMap - can hold comps

applyProperties

protected boolean applyProperties(Hashtable compMap)
                           throws VisADException,
                                  RemoteException
apply props

Overrides:
applyProperties in class DrawingGlyph
Parameters:
compMap - holds comps
Returns:
ok
Throws:
RemoteException - On Badness
VisADException - On Badness

getTypeName

public String getTypeName()
Name to use for this glyph

Specified by:
getTypeName in class DrawingGlyph
Returns:
The glyph type name

setMovieFile

public void setMovieFile(String value)
Set the MovieFile property.

Parameters:
value - The new value for MovieFile

getMovieFile

public String 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