public abstract class DrawingGlyph
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
actualPoints
actual points being displayed
|
static java.lang.String |
ATTR_BGCOLOR |
static java.lang.String |
ATTR_COLOR
xml attribute name
|
static java.lang.String |
ATTR_COORDTYPE
xml attribute name
|
static java.lang.String |
ATTR_FILLED
xml attribute name
|
static java.lang.String |
ATTR_FULLLATLON
xml attribute name
|
static java.lang.String |
ATTR_LINEWIDTH
xml attribute name
|
static java.lang.String |
ATTR_NAME
xml attribute name
|
static java.lang.String |
ATTR_PICKABLE
xml attribute name
|
static java.lang.String |
ATTR_POINTS
xml attribute name
|
static java.lang.String |
ATTR_TEXT
xml attr names
|
static java.lang.String |
ATTR_TIMEFORMAT
xml attribute for time format
|
static java.lang.String |
ATTR_TIMES
xml attribute name
|
static java.lang.String |
ATTR_ZPOSITION
xml attribute name
|
protected DrawingControl |
control
My control
|
static java.lang.String[] |
COORD_LABELS
labels for coordinate syste type.
|
static int |
COORD_LATLON
Represents LAT/LON vertical coordinate
|
static int |
COORD_LATLONALT
Represents LAT/LON/ALT vertical coordinate
|
static int |
COORD_LONLAT
Represents LAT/LON vertical coordinate
|
static int |
COORD_NONE
Represents no vertical coordinate
|
static java.lang.String[] |
COORD_TYPENAMES
Drawing coordinate names
|
static int[] |
COORD_TYPES
Drawing coordinate types
|
static int |
COORD_XY
Represents XY vertical coordinate
|
static int |
COORD_XYZ
Represents XYZ vertical coordinate
|
protected int |
coordType
What drawing coord system are we on
|
protected visad.georef.EarthLocation |
firstMoveEarthLocation
Where did we start moving
|
protected double[] |
firstMoveLocation
Where did we start moving
|
static int |
IDX_ALT
Indices into arrays
|
static int |
IDX_LAT
Indices into arrays
|
static int |
IDX_LON
Indices into arrays
|
static int |
IDX_X
Indices into arrays
|
static int |
IDX_Y
Indices into arrays
|
static int |
IDX_Z
Indices into arrays
|
boolean |
oldVisibility
flag
|
protected CompositeDisplayable |
parentDisplayable
Top level displayable
|
protected java.util.List |
points
List of points.
|
protected javax.swing.JDialog |
propDialog
The properties dialog
|
protected boolean |
propertiesUp
Is properties dialog shown
|
static int |
PT_X
Indices into arrays
|
static int |
PT_Y
Indices into arrays
|
static int |
PT_Z
Indices into arrays
|
protected CompositeDisplayable |
selectionDisplayable
Shows selected highlight
|
protected int |
stretchIndex
What point are we stretching
|
protected javax.swing.JTabbedPane |
tabbedPane
For props
|
static java.lang.String |
TAG_ARROW
Xml tag name
|
static java.lang.String |
TAG_FRONT
Xml tag name
|
static java.lang.String |
TAG_HIGH
Xml tag name
|
static java.lang.String |
TAG_IMAGE
Xml tag name
|
static java.lang.String |
TAG_LOW
Xml tag name
|
static java.lang.String |
TAG_MOVIE
Xml tag name
|
static java.lang.String |
TAG_POLYGON
Xml tag name
|
static java.lang.String |
TAG_SHAPE
Xml tag name
|
static java.lang.String |
TAG_SYMBOL
Xml tag name
|
static java.lang.String |
TAG_TEXT
Xml tag name
|
protected static int |
uniqueCnt
For unique ids
|
protected float |
zPosition
Fixed z position
|
Constructor and Description |
---|
DrawingGlyph()
Ctor
|
DrawingGlyph(DrawingControl control,
visad.DisplayEvent event)
Ctor
|
DrawingGlyph(DrawingControl control,
visad.DisplayEvent event,
boolean filled)
Ctor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributes(org.w3c.dom.Element e)
Populate the xml node with attrs
|
protected void |
addDisplayable(Displayable displayable)
Add the displayable to the main parent displayable
|
void |
addTime(visad.Real time)
Add the time to the list of times
|
protected boolean |
applyProperties(java.util.Hashtable compMap)
Handle the property apply.
|
boolean |
canShowArea()
Can this glyph type calculate area
|
boolean |
canShowDistance()
Can this glyph type calculate distance
|
void |
checkTimeVisibility()
Is this glyph visible in the current time step
|
void |
checkVisibility()
Make sure the displayable is not visible if this glyph
is not visible
|
int |
closestPoint(double[] location,
java.util.List points)
Find index of closest point
|
protected boolean |
constrainedTo2D()
Is glyph constrained to 2d
|
double |
distance(double[] location,
double[] direction)
Calculate distance
|
static double |
distanceBetween(double[] origin,
double[] loc2)
Get distance between
|
double |
distanceBetween(double[] loc1,
visad.georef.EarthLocation el)
Get distance
|
void |
doDeletePoint(visad.DisplayEvent event)
delete the point nearest the event
|
protected void |
doInterpolatedStretch(visad.DisplayEvent event)
This stretches the current point and also stretches the
rest of the points by a linear delta from the initial point.
|
void |
doMove(visad.DisplayEvent event)
Move this glyph
|
void |
doneBeingCreated()
all done
|
void |
doStretch(visad.DisplayEvent event)
Stretch this glyph
|
void |
evaluateJython()
Evaluate the jython from the properties dialog
|
double |
getArea()
Get the area in square feet.
|
java.lang.String |
getAreaString()
get string representation of the area for showing the user
|
boolean |
getBeenRemoved()
Get the BeenRemoved property.
|
boolean |
getBeingCreated()
currently being created
|
java.awt.Color |
getBgcolor()
Get the Bgcolor property.
|
protected java.util.List |
getBoundingBox(java.util.List points)
Find bounding box of points
|
protected double[] |
getBoxPoint(int i)
Get xyz of point at given index
|
protected double[] |
getBoxPoint(int i,
java.util.List l)
Get xyz of point at given index
|
protected double[] |
getBoxPoint(java.lang.Object point)
Convert point (either latlonalt or xyz) to xyz
|
java.awt.Color |
getColor()
Get the Color property.
|
int |
getCoordType()
Get the CoordType property.
|
boolean |
getCreatedByUser()
Get the CreatedByUser property.
|
protected float |
getDefaultZPosition()
Get the default Z position for the glyph.
|
java.lang.String |
getDescription()
Get the description
|
Displayable |
getDisplayable()
Get the main displayable.
|
visad.Real |
getDistance()
Calculate the distance along the line
|
boolean |
getEditable()
Get the Editable property.
|
org.w3c.dom.Element |
getElement(org.w3c.dom.Document doc)
Create an xml element that represents this glyph
|
java.lang.String |
getExtraDescription()
Get extra description to show in the JTable
|
boolean |
getFilled()
Get the Filled property.
|
protected double |
getFixedAltitude()
Get altitude of zposition
|
boolean |
getFullLatLon()
Get the FullLatLon property.
|
boolean |
getIsRaster()
is this glyph a raster thing
|
float[][] |
getLatLons()
get the points as an array of lat/lons
|
protected float[][] |
getLatLons(java.util.List points)
Convert points list of array of xyz or lat/lon/alt
|
java.lang.String |
getName()
Get the Name property.
|
protected CompositeDisplayable |
getParent()
Get the main displayable.
|
boolean |
getPickable()
Get the Pickable property.
|
protected java.lang.Object |
getPoint(visad.DisplayEvent event)
Get point to use from the event.
|
java.util.List |
getPoints()
Get the Points property.
|
protected float[][] |
getPointValues()
Convert points list of array of xyz or lat/lon/alt
|
protected float[][] |
getPointValues(boolean convertToXY)
Convert points list of array of xyz or lat/lon/alt
|
protected double[][] |
getPointValuesDouble()
Convert points list of array of xyz or lat/lon/alt
|
protected double[][] |
getPointValuesDouble(boolean convertToXY)
Convert points list of array of xyz or lat/lon/alt
|
protected void |
getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
Make the properties widgets
|
protected java.util.List |
getSelectionPoints()
Get points used to select this glyph.
|
abstract java.lang.String |
getTagName()
Get xml tag name to use
|
protected visad.Data |
getTimeField(visad.Data data)
Make the time field if we have time values
If not, just return the data
|
protected void |
getTimePropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
Add to the comps array the time list for selecting times
|
java.util.List |
getTimeValues()
Get the TimeValue property.
|
abstract java.lang.String |
getTypeName()
Get the name of this glyph type
|
boolean |
getVisibleFlag()
Get the VisibleFlag property.
|
float |
getZPosition()
Get the ZPosition property.
|
DrawingGlyph |
handleCreation(visad.DisplayEvent event)
Handle the creation event.
|
DrawingGlyph |
handleKeyPressed(visad.DisplayEvent event)
Handle event.
|
DrawingGlyph |
handleMouseDragged(visad.DisplayEvent event)
Handle event.
|
DrawingGlyph |
handleMouseMoved(visad.DisplayEvent event)
Handle the event.
|
DrawingGlyph |
handleMousePressed(visad.DisplayEvent event)
Handle the event.
|
DrawingGlyph |
handleMouseReleased(visad.DisplayEvent event)
Handle event.
|
void |
hide()
Hide glyph
|
boolean |
initFinal()
Do final initialization
|
protected boolean |
initFinalInner()
This is called to do final initialization
|
void |
initFromBundle(DrawingControl control)
Initialize when recreated from a bundle
|
boolean |
initFromUser(DrawingControl control,
visad.DisplayEvent event)
Initialize from a user event.
|
void |
initFromXml(DrawingControl control,
org.w3c.dom.Element node)
Initialize from xml
|
void |
initMove(visad.DisplayEvent event)
Started moving
|
void |
initStretch(visad.DisplayEvent event)
Start streth
|
protected boolean |
isFrontDisplay()
Is the control a front display
|
boolean |
isInFlatSpace()
Are we drawing in xy or lat/lon space
|
boolean |
isInLatLonSpace()
In lat/lon or lat/lon/alt space
|
boolean |
isInXYSpace()
Are we drawing in xy or xyz space
|
boolean |
isSelectable()
Is this glyph selectable
|
boolean |
isValid()
Is this glyph valid.
|
boolean |
isVisible()
Is this glyph visible
|
protected visad.georef.EarthLocation |
makePoint(double lat,
double lon,
double alt)
Utility to make a point
|
boolean |
mousePressed(visad.DisplayEvent event)
handle event
|
protected void |
moveTo(visad.DisplayEvent event)
Move this glyph to the location of the event
|
void |
processPointStrings(java.util.List pointStrings)
Parse the List of point strings.
|
void |
processPointStrings(java.util.List pointStrings,
boolean normalize360)
Parse the List of point strings.
|
void |
projectionChanged()
Handle event
|
protected void |
removeDisplayable(Displayable displayable)
Remove the displayable from the main displayable
|
protected void |
setActualPoints(float[][] pts)
Set the points list
|
void |
setBeenRemoved(boolean value)
Set the BeenRemoved property.
|
void |
setBgcolor(java.awt.Color value)
Set the Bgcolor property.
|
void |
setColor(java.awt.Color value)
Set the Color property.
|
protected void |
setColor(Displayable displayable,
java.awt.Color c)
Set color on displayable
|
void |
setCoordType(int value)
Set the CoordType property.
|
void |
setCreatedByUser(boolean value)
Set the CreatedByUser property.
|
void |
setEditable(boolean value)
Set the Editable property.
|
void |
setFilled(boolean value)
Set the Filled property.
|
void |
setFullLatLon(boolean value)
Set the Fulllatlon property.
|
void |
setName(java.lang.String value)
Set the Name property.
|
void |
setPickable(boolean value)
Set the Pickable property.
|
void |
setPoints(java.util.List value)
Set the Points property.
|
void |
setProperties()
Set the properties from the dialog
|
void |
setSelected(boolean selected)
Set this glyph selected
|
void |
setTimeValues(java.util.List value)
Set the TimeValue property.
|
void |
setVisible(boolean visible)
Toggle visiblity of the displayable
|
void |
setVisibleFlag(boolean value)
Set the VisibleFlag property.
|
void |
setZPosition(float value)
Set the Zposition property.
|
protected boolean |
shouldShowBgColorSelector() |
protected boolean |
shouldShowColorSelector()
Should show color selector in properties
|
void |
show()
Show glyph
|
static double[][] |
smoothCurve(double[][] curve,
int window)
Smooth the curve
|
static double |
squared(double v1)
Square value
|
protected void |
swap(double[] a1,
double[] a2,
int index)
Swap array values at index
|
protected void |
swap(float[] a1,
float[] a2,
int index)
Swap array values at index
|
protected float[] |
toLatLonAlt(visad.georef.EarthLocation el)
Convert to float array
|
java.lang.String |
toString()
to string
|
protected visad.Data |
tryToFill(float[][] pts,
visad.Data dflt)
Try to fill the pts array
|
void |
updateLocation()
Glyph moved.
|
void |
viewpointChanged()
viewpoint changed
|
void |
writePoints()
write out the points as a csv file
|
protected static int uniqueCnt
public static final java.lang.String TAG_POLYGON
public static final java.lang.String TAG_ARROW
public static final java.lang.String TAG_FRONT
public static final java.lang.String TAG_TEXT
public static final java.lang.String TAG_HIGH
public static final java.lang.String TAG_LOW
public static final java.lang.String TAG_SHAPE
public static final java.lang.String TAG_SYMBOL
public static final java.lang.String TAG_IMAGE
public static final java.lang.String TAG_MOVIE
public static final java.lang.String ATTR_COLOR
public static final java.lang.String ATTR_BGCOLOR
public static final java.lang.String ATTR_FILLED
public static final java.lang.String ATTR_PICKABLE
public static final java.lang.String ATTR_FULLLATLON
public static final java.lang.String ATTR_TIMES
public static final java.lang.String ATTR_TIMEFORMAT
public static final java.lang.String ATTR_ZPOSITION
public static final java.lang.String ATTR_COORDTYPE
public static final java.lang.String ATTR_POINTS
public static final java.lang.String ATTR_LINEWIDTH
public static final java.lang.String ATTR_TEXT
public static final java.lang.String ATTR_NAME
public static final int COORD_NONE
public static final int COORD_XYZ
public static final int COORD_XY
public static final int COORD_LATLONALT
public static final int COORD_LATLON
public static final int COORD_LONLAT
public static final int[] COORD_TYPES
public static final java.lang.String[] COORD_TYPENAMES
public static final java.lang.String[] COORD_LABELS
public boolean oldVisibility
protected boolean propertiesUp
protected javax.swing.JDialog propDialog
protected javax.swing.JTabbedPane tabbedPane
protected java.util.List points
protected int stretchIndex
protected double[] firstMoveLocation
protected java.util.List actualPoints
protected visad.georef.EarthLocation firstMoveEarthLocation
public static final int PT_X
public static final int PT_Y
public static final int PT_Z
public static final int IDX_X
public static final int IDX_Y
public static final int IDX_Z
public static final int IDX_LAT
public static final int IDX_LON
public static final int IDX_ALT
protected int coordType
protected float zPosition
protected CompositeDisplayable parentDisplayable
protected CompositeDisplayable selectionDisplayable
protected DrawingControl control
public DrawingGlyph()
public DrawingGlyph(DrawingControl control, visad.DisplayEvent event)
control
- The control I'm inevent
- The display event.public DrawingGlyph(DrawingControl control, visad.DisplayEvent event, boolean filled)
control
- The control I'm inevent
- The display event.filled
- Is this glyph filledpublic final boolean initFinal() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected boolean initFinalInner() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean initFromUser(DrawingControl control, visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm inevent
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void initFromBundle(DrawingControl control) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm injava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void initFromXml(DrawingControl control, org.w3c.dom.Element node) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm innode
- The xml nodejava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic boolean isSelectable()
protected boolean isFrontDisplay()
protected float getDefaultZPosition()
public boolean isValid()
public void processPointStrings(java.util.List pointStrings) throws visad.VisADException, java.rmi.RemoteException
pointStrings
- List of Strings that represent double location valuesjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void processPointStrings(java.util.List pointStrings, boolean normalize360) throws visad.VisADException, java.rmi.RemoteException
pointStrings
- List of Strings that represent double location valuesjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean mousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- eventjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setSelected(boolean selected) throws visad.VisADException, java.rmi.RemoteException
selected
- Is selectedjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected java.util.List getSelectionPoints()
public final org.w3c.dom.Element getElement(org.w3c.dom.Document doc)
doc
- The doc to create withprotected visad.Data getTimeField(visad.Data data) throws visad.VisADException, java.rmi.RemoteException
data
- the data to make the range of the time field withjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void addAttributes(org.w3c.dom.Element e)
e
- Xml nodepublic abstract java.lang.String getTagName()
public abstract java.lang.String getTypeName()
public java.lang.String getDescription()
public java.lang.String getAreaString() throws java.lang.Exception
java.lang.Exception
- on badnesspublic java.lang.String getExtraDescription()
public Displayable getDisplayable() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected CompositeDisplayable getParent() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void addDisplayable(Displayable displayable) throws visad.VisADException, java.rmi.RemoteException
displayable
- The displayable to addjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void removeDisplayable(Displayable displayable) throws visad.VisADException, java.rmi.RemoteException
displayable
- The displayable to removejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void addTime(visad.Real time)
time
- The timepublic void setTimeValues(java.util.List value)
value
- The new value for TimeValuepublic java.util.List getTimeValues()
public void checkTimeVisibility() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void setVisible(boolean visible) throws visad.VisADException, java.rmi.RemoteException
visible
- Is visiblejava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic boolean isVisible()
public void checkVisibility()
protected boolean constrainedTo2D()
public void setCoordType(int value)
value
- The new value for CoordTypepublic int getCoordType()
public boolean isInXYSpace()
public boolean isInFlatSpace()
public boolean isInLatLonSpace()
protected java.lang.Object getPoint(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic final void setProperties()
public void writePoints()
public void evaluateJython()
protected boolean applyProperties(java.util.Hashtable compMap) throws visad.VisADException, java.rmi.RemoteException
compMap
- Holds property widgetsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void hide() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void show() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected boolean shouldShowColorSelector()
protected boolean shouldShowBgColorSelector()
protected void getPropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
comps
- List of componentscompMap
- Map to hold name to widgetprotected void getTimePropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
comps
- compscompMap
- mappublic visad.Real getDistance() throws java.lang.Exception
java.lang.Exception
- On badnesspublic double getArea() throws java.lang.Exception
java.lang.Exception
- On badnesspublic boolean canShowDistance()
public boolean canShowArea()
public boolean getBeingCreated()
public void doneBeingCreated()
public DrawingGlyph handleCreation(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleMousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic DrawingGlyph handleMouseMoved(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void initStretch(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void doStretch(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void doDeletePoint(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- the eventjava.rmi.RemoteException
- on badnessvisad.VisADException
- on badnesspublic void doMove(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected void moveTo(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected float[][] getPointValues() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected float[][] getPointValues(boolean convertToXY) throws visad.VisADException, java.rmi.RemoteException
convertToXY
- If true, force result to be xyzjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic float[][] getLatLons() throws java.lang.Exception
java.lang.Exception
- on badnessprotected float[][] getLatLons(java.util.List points) throws visad.VisADException, java.rmi.RemoteException
points
- List of points. Either double array or EarthLocationjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected double[][] getPointValuesDouble() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected double[][] getPointValuesDouble(boolean convertToXY) throws visad.VisADException, java.rmi.RemoteException
convertToXY
- If true, force result to be xyzjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected visad.Data tryToFill(float[][] pts, visad.Data dflt) throws visad.VisADException, java.rmi.RemoteException
pts
- The points to filldflt
- The default to return if cannot filljava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected float[] toLatLonAlt(visad.georef.EarthLocation el) throws visad.VisADException, java.rmi.RemoteException
el
- Locationjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected double getFixedAltitude() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void projectionChanged() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void viewpointChanged() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void updateLocation() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void initMove(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleKeyPressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleMouseDragged(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic DrawingGlyph handleMouseReleased(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic void setColor(java.awt.Color value)
value
- The new value for Colorprotected void setColor(Displayable displayable, java.awt.Color c) throws visad.VisADException, java.rmi.RemoteException
displayable
- displayable_c
- colorjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.awt.Color getColor()
public void setBgcolor(java.awt.Color value)
value
- The new value for Bgcolorpublic java.awt.Color getBgcolor()
protected void setActualPoints(float[][] pts) throws visad.VisADException, java.rmi.RemoteException
pts
- Pointsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected visad.georef.EarthLocation makePoint(double lat, double lon, double alt) throws visad.VisADException, java.rmi.RemoteException
lat
- latlon
- lonalt
- altjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic double distance(double[] location, double[] direction) throws visad.VisADException, java.rmi.RemoteException
location
- fromdirection
- directionjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic static double distanceBetween(double[] origin, double[] loc2)
origin
- Fromloc2
- Topublic double distanceBetween(double[] loc1, visad.georef.EarthLocation el) throws visad.VisADException, java.rmi.RemoteException
loc1
- point 1el
- point 2java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected void doInterpolatedStretch(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The mouse move eventjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic static double squared(double v1)
v1
- Valuepublic int closestPoint(double[] location, java.util.List points) throws visad.VisADException, java.rmi.RemoteException
location
- Frompoints
- Pointsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic static double[][] smoothCurve(double[][] curve, int window)
curve
- The curvewindow
- Smooth windowpublic void setZPosition(float value)
value
- The new value for Zpositionpublic float getZPosition()
public void setPoints(java.util.List value)
value
- The new value for Pointspublic java.util.List getPoints()
protected double[] getBoxPoint(int i) throws visad.VisADException, java.rmi.RemoteException
i
- Indexjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected double[] getBoxPoint(int i, java.util.List l) throws visad.VisADException, java.rmi.RemoteException
i
- Indexl
- Pointsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected double[] getBoxPoint(java.lang.Object point) throws visad.VisADException, java.rmi.RemoteException
point
- Pointjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void swap(double[] a1, double[] a2, int index)
a1
- Array 1a2
- Array 2index
- Indexprotected void swap(float[] a1, float[] a2, int index)
a1
- Array 1a2
- Array 2index
- Indexprotected java.util.List getBoundingBox(java.util.List points) throws visad.VisADException, java.rmi.RemoteException
points
- Pointsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void setFilled(boolean value)
value
- The new value for Filledpublic boolean getFilled()
public void setPickable(boolean value)
value
- The new value for Pickablepublic boolean getPickable()
public void setFullLatLon(boolean value)
value
- The new value for Fulllatlonpublic boolean getFullLatLon()
public void setBeenRemoved(boolean value)
value
- The new value for BeenRemovedpublic boolean getBeenRemoved()
public void setName(java.lang.String value)
value
- The new value for Namepublic java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
public void setEditable(boolean value)
value
- The new value for Editablepublic boolean getEditable()
public void setVisibleFlag(boolean value) throws visad.VisADException, java.rmi.RemoteException
value
- The new value for VisibleFlagjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean getVisibleFlag()
public boolean getIsRaster()
public void setCreatedByUser(boolean value)
value
- The new value for CreatedByUserpublic boolean getCreatedByUser()