public class FrontGlyph extends PolyGlyph
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_FRONTFLIP
xml attribute for the flip state of the front
|
static java.lang.String |
ATTR_FRONTSCALE
xml attribute for the scale for the front
|
static java.lang.String |
ATTR_FRONTTYPE
Xml attribute name
|
ATTR_EXTRUDE, ATTR_SMOOTH, IDX_X, IDX_Y, IDX_Z
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 |
---|
FrontGlyph()
Ctor
|
FrontGlyph(DrawingControl control,
visad.DisplayEvent event)
Ctor
|
FrontGlyph(DrawingControl control,
visad.DisplayEvent event,
java.lang.String type,
boolean smooth)
ctor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributes(org.w3c.dom.Element e)
Populate the xml node with attrs
|
protected boolean |
applyProperties(java.util.Hashtable compMap)
apply props
|
boolean |
canShowArea()
Can we show calculated area
|
protected void |
createDisplayable()
create the displayable
|
protected FrontDrawer |
doMakeFrontDrawer()
make the frontDrawer
|
void |
doStretch(visad.DisplayEvent event)
Stretch this glyph
|
protected float[][] |
getCurve()
get the curve data
|
protected float |
getDefaultZPosition()
Get the default Z position for the glyph.
|
java.lang.String |
getExtraDescription()
get the extra description to show in gui
|
boolean |
getFlipIt()
Get the FlipIt property.
|
protected FrontDrawer |
getFrontDrawer()
get the frontDrawer
|
double |
getFrontScale()
Get the FrontScale property.
|
java.lang.String |
getFrontType()
Get the FrontType 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.
|
java.lang.String |
getTagName()
Get xml tag name to use
|
java.lang.String |
getTypeName()
Name to use for this glyph
|
DrawingGlyph |
handleMousePressed(visad.DisplayEvent event)
Handle event
|
protected boolean |
initFinalInner()
Init at the end
|
void |
initFromXml(DrawingControl control,
org.w3c.dom.Element node)
Initialize from xml
|
void |
projectionChanged()
Update location
|
protected void |
setBaseScale(DrawingControl control,
FrontDrawer frontDrawer)
Utility
|
void |
setFlipIt(boolean value)
Set the FlipIt property.
|
void |
setFrontScale(double value)
Set the FrontScale property.
|
void |
setFrontType(java.lang.String value)
Set the FrontType property.
|
protected boolean |
shouldAddFrontProperties()
should add properties for the front
|
protected boolean |
shouldShowColorSelector()
show the color selector in the properties dialog
|
void |
updateLocation()
Glyph moved.
|
void |
viewpointChanged()
Update location
|
DrawingGlyph |
xxhandleMouseDragged(visad.DisplayEvent event)
Handle event
|
protected void |
xxxxsetColor(Displayable displayable,
java.awt.Color c)
noop
|
canShowDistance, doDeletePoint, doFlythrough, doneBeingCreated, getClosed, getExtrude, getSmooth, getTimeField, handleKeyPressed, handleMouseDragged, handleMouseReleased, isValid, setAnimationSet, setClosed, setExtrude, setSmooth
getLineWidth, initFromUser, setLineWidth
addDisplayable, addTime, checkTimeVisibility, checkVisibility, closestPoint, constrainedTo2D, distance, distanceBetween, distanceBetween, doInterpolatedStretch, doMove, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDescription, getDisplayable, getDistance, getEditable, getElement, 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, 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, writePoints
public static final java.lang.String ATTR_FRONTTYPE
public static final java.lang.String ATTR_FRONTSCALE
public static final java.lang.String ATTR_FRONTFLIP
public FrontGlyph()
public FrontGlyph(DrawingControl control, visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm in.event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic FrontGlyph(DrawingControl control, visad.DisplayEvent event, java.lang.String type, boolean smooth) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm in.event
- The display event.type
- Front typesmooth
- is the front smooth or segmentedjava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected FrontDrawer getFrontDrawer()
protected boolean initFinalInner() throws visad.VisADException, java.rmi.RemoteException
initFinalInner
in class PolyGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected FrontDrawer doMakeFrontDrawer() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- on badnessvisad.VisADException
- on badnessprotected void xxxxsetColor(Displayable displayable, java.awt.Color c) throws visad.VisADException, java.rmi.RemoteException
displayable
- displayablec
- colorjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void doStretch(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
public java.lang.String getExtraDescription()
getExtraDescription
in class DrawingGlyph
protected void getPropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
getPropertiesComponents
in class PolyGlyph
comps
- List of compscompMap
- comp mapprotected void createDisplayable() throws visad.VisADException, java.rmi.RemoteException
createDisplayable
in class LineGlyph
java.rmi.RemoteException
- on badnessvisad.VisADException
- on badnessprotected boolean shouldAddFrontProperties()
protected boolean shouldShowColorSelector()
shouldShowColorSelector
in class DrawingGlyph
protected boolean applyProperties(java.util.Hashtable compMap) throws visad.VisADException, java.rmi.RemoteException
applyProperties
in class LineGlyph
compMap
- holds compsjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic boolean canShowArea()
canShowArea
in class PolyGlyph
public void initFromXml(DrawingControl control, org.w3c.dom.Element node) throws visad.VisADException, java.rmi.RemoteException
initFromXml
in class PolyGlyph
control
- 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 PolyGlyph
e
- Xml nodepublic void viewpointChanged() throws visad.VisADException, java.rmi.RemoteException
viewpointChanged
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void projectionChanged() throws visad.VisADException, java.rmi.RemoteException
projectionChanged
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void setBaseScale(DrawingControl control, FrontDrawer frontDrawer) throws visad.VisADException, java.rmi.RemoteException
control
- The control we're infrontDrawer
- The drawerjava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected java.util.List getSelectionPoints()
getSelectionPoints
in class PolyGlyph
protected float getDefaultZPosition()
getDefaultZPosition
in class DrawingGlyph
public void updateLocation() throws visad.VisADException, java.rmi.RemoteException
updateLocation
in class PolyGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected float[][] getCurve() throws visad.VisADException, java.rmi.RemoteException
java.rmi.RemoteException
- on badnessvisad.VisADException
- on badnesspublic DrawingGlyph handleMousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMousePressed
in class PolyGlyph
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic DrawingGlyph xxhandleMouseDragged(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getTagName()
getTagName
in class PolyGlyph
public java.lang.String getTypeName()
getTypeName
in class PolyGlyph
public void setFrontType(java.lang.String value)
value
- The new value for FrontTypepublic java.lang.String getFrontType()
public void setFlipIt(boolean value)
value
- The new value for FlipItpublic boolean getFlipIt()
public void setFrontScale(double value)
value
- The new value for FrontScalepublic double getFrontScale()