public class PolyGlyph extends LineGlyph
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_EXTRUDE
Xml attribute name
|
static java.lang.String |
ATTR_SMOOTH
Xml attribute name
|
static int |
IDX_X
Indices into arrays
|
static int |
IDX_Y
Indices into arrays
|
static int |
IDX_Z
Indices into arrays
|
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, 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 and Description |
|---|
PolyGlyph()
Ctor
|
PolyGlyph(DrawingControl control,
visad.DisplayEvent event,
boolean smooth)
Ctor
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAttributes(org.w3c.dom.Element e)
Populate the xml node with attrs
|
boolean |
canShowArea()
Can we show calculated area
|
boolean |
canShowDistance()
Can we show calculated distance
|
void |
doDeletePoint(visad.DisplayEvent event)
delete the point closest to the event
|
void |
doFlythrough()
Do the flythru
|
void |
doneBeingCreated()
this glyph is done being created
|
void |
doStretch(visad.DisplayEvent event)
Stretch this glyph
|
boolean |
getClosed()
Get the Closed property.
|
boolean |
getExtrude()
Get the Extrude property.
|
protected void |
getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
get the prop gui comps
|
protected java.util.List |
getSelectionPoints()
Get points used to select this glyph.
|
boolean |
getSmooth()
Get smooth
|
java.lang.String |
getTagName()
Get xml tag name to use
|
protected visad.Data |
getTimeField(visad.Data data)
Make a field maps all of the time values to the given data as the range
|
java.lang.String |
getTypeName()
Name to use for this glyph
|
DrawingGlyph |
handleKeyPressed(visad.DisplayEvent event)
Handle event.
|
DrawingGlyph |
handleMouseDragged(visad.DisplayEvent event)
Handle event
|
DrawingGlyph |
handleMousePressed(visad.DisplayEvent event)
Handle event
|
DrawingGlyph |
handleMouseReleased(visad.DisplayEvent event)
handle the mouse event
|
protected boolean |
initFinalInner()
Do the final initialization
|
void |
initFromXml(DrawingControl control,
org.w3c.dom.Element node)
Initialize from xml
|
boolean |
isValid()
Do we have a valid number of points
|
protected static void |
setAnimationSet(Displayable d,
java.util.List timeValues)
utility to set the animation set on the displayable
|
void |
setClosed(boolean value)
Set the Closed property.
|
void |
setExtrude(boolean value)
Set the Extrude property.
|
void |
setSmooth(boolean v)
Set smooth_
|
void |
updateLocation()
Glyph moved.
|
applyProperties, createDisplayable, getLineWidth, initFromUser, setLineWidthaddDisplayable, addTime, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doInterpolatedStretch, doMove, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDescription, getDisplayable, getDistance, getEditable, getElement, getExtraDescription, getFilled, getFixedAltitude, getFullLatLon, getIsRaster, getLatLons, getLatLons, getName, getParent, getPickable, getPoint, getPoints, getPointValues, getPointValues, getPointValuesDouble, getPointValuesDouble, getTimePropertiesComponents, getTimeValues, getVisibleFlag, getZPosition, handleCreation, handleMouseMoved, hide, initFinal, initFromBundle, initMove, initStretch, isFrontDisplay, isInFlatSpace, isInLatLonSpace, isInXYSpace, isSelectable, 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, writePointspublic static final int IDX_X
public static final int IDX_Y
public static final int IDX_Z
public static final java.lang.String ATTR_SMOOTH
public static final java.lang.String ATTR_EXTRUDE
public PolyGlyph()
public PolyGlyph(DrawingControl control, visad.DisplayEvent event, boolean smooth) throws visad.VisADException, java.rmi.RemoteException
control - The control I'm in.event - The display event.smooth - Is smoothjava.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic boolean isValid()
isValid in class DrawingGlyphprotected void getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
getPropertiesComponents in class LineGlyphcomps - List of compscompMap - comp mappublic void doDeletePoint(visad.DisplayEvent event)
throws visad.VisADException,
java.rmi.RemoteException
doDeletePoint in class DrawingGlyphevent - the eventjava.rmi.RemoteException - on badnessvisad.VisADException - on badnesspublic void doStretch(visad.DisplayEvent event)
throws visad.VisADException,
java.rmi.RemoteException
doStretch in class DrawingGlyphevent - The display event.java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic boolean canShowDistance()
canShowDistance in class DrawingGlyphpublic boolean canShowArea()
canShowArea in class DrawingGlyphpublic void doFlythrough()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic void initFromXml(DrawingControl control, org.w3c.dom.Element node) throws visad.VisADException, java.rmi.RemoteException
initFromXml in class LineGlyphcontrol - The control I'm in.node - The xml nodejava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected void addAttributes(org.w3c.dom.Element e)
addAttributes in class LineGlyphe - Xml nodeprotected java.util.List getSelectionPoints()
getSelectionPoints in class DrawingGlyphpublic java.lang.String getTagName()
getTagName in class DrawingGlyphpublic void updateLocation()
throws visad.VisADException,
java.rmi.RemoteException
updateLocation in class DrawingGlyphjava.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic DrawingGlyph handleMousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMousePressed in class DrawingGlyphevent - The display event.java.rmi.RemoteException - When bad things happenvisad.VisADException - When bad things happenpublic DrawingGlyph handleMouseDragged(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMouseDragged in class DrawingGlyphevent - The display event.java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic DrawingGlyph handleMouseReleased(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMouseReleased in class DrawingGlyphevent - eventjava.rmi.RemoteException - on badnessvisad.VisADException - on badnesspublic void doneBeingCreated()
doneBeingCreated in class DrawingGlyphpublic DrawingGlyph handleKeyPressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleKeyPressed in class DrawingGlyphevent - The display event.java.rmi.RemoteException - On badnessvisad.VisADException - On badnesspublic java.lang.String getTypeName()
getTypeName in class DrawingGlyphpublic boolean getSmooth()
public void setSmooth(boolean v)
v - Smoothpublic void setExtrude(boolean value)
value - The new value for Extrudepublic boolean getExtrude()
public void setClosed(boolean value)
value - The new value for Closedpublic boolean getClosed()
protected visad.Data getTimeField(visad.Data data)
throws visad.VisADException,
java.rmi.RemoteException
getTimeField in class DrawingGlyphdata - The rangejava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected static void setAnimationSet(Displayable d, java.util.List timeValues) throws visad.VisADException, java.rmi.RemoteException
d - displayabletimeValues - timesjava.rmi.RemoteException - On badnessvisad.VisADException - On badnessprotected boolean initFinalInner()
throws visad.VisADException,
java.rmi.RemoteException
initFinalInner in class LineGlyphjava.rmi.RemoteException - On badnessvisad.VisADException - On badness