public class ImageGlyph extends DrawingGlyph
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_IMAGE
Xml attribute name
|
static java.lang.String |
ATTR_UPDATE
Xml attribute name
|
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 and Description |
---|
ImageGlyph()
Ctor
|
ImageGlyph(DrawingControl control,
visad.DisplayEvent event,
java.lang.String image)
Ctor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addAttributes(org.w3c.dom.Element e)
Populate the xml node with attrs
|
protected boolean |
constrainedTo2D()
Is glyph constrained to 2d
|
void |
doExport()
Export the image as an ximg file
|
void |
doMove(visad.DisplayEvent event)
Handle the event
|
void |
doStretch(visad.DisplayEvent event)
Handle the event
|
java.lang.String |
getExtraDescription()
Get extra description for the table listing
|
java.lang.String |
getImage()
Get the Image property.
|
boolean |
getIsRaster()
is this glyph a raster
|
protected void |
getPropertiesComponents(java.util.List comps,
java.util.Hashtable compMap)
Get properties widgets
|
java.lang.String |
getTagName()
Xml tag name to use
|
java.lang.String |
getTypeName()
Name to use for this glyph
|
DrawingGlyph |
handleCreation(visad.DisplayEvent event)
Was created from user
|
DrawingGlyph |
handleMousePressed(visad.DisplayEvent event)
Handle event
|
DrawingGlyph |
handleMouseReleased(visad.DisplayEvent event)
Handle event
|
protected boolean |
initFinalInner()
Do final initialization
|
boolean |
initFromUser(DrawingControl control,
visad.DisplayEvent event)
Initialize after the user created me
|
void |
initFromXml(DrawingControl control,
org.w3c.dom.Element node)
Initialize from xml
|
void |
initMove(visad.DisplayEvent event)
Started moving
|
void |
setImage(java.lang.String value)
Set the Image property.
|
void |
updateLocation()
Glyph moved.
|
addDisplayable, addTime, applyProperties, canShowArea, canShowDistance, checkTimeVisibility, checkVisibility, closestPoint, distance, distanceBetween, distanceBetween, doDeletePoint, doInterpolatedStretch, doneBeingCreated, evaluateJython, getArea, getAreaString, getBeenRemoved, getBeingCreated, getBgcolor, getBoundingBox, getBoxPoint, getBoxPoint, getBoxPoint, getColor, getCoordType, getCreatedByUser, getDefaultZPosition, getDescription, getDisplayable, getDistance, getEditable, getElement, 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, 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, shouldShowColorSelector, show, smoothCurve, squared, swap, swap, toLatLonAlt, toString, tryToFill, viewpointChanged, writePoints
public static final java.lang.String ATTR_IMAGE
public static final java.lang.String ATTR_UPDATE
public ImageGlyph()
public ImageGlyph(DrawingControl control, visad.DisplayEvent event, java.lang.String image) throws visad.VisADException, java.rmi.RemoteException
control
- The control I'm in.event
- The display event.image
- The imagejava.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenpublic boolean getIsRaster()
getIsRaster
in class DrawingGlyph
public boolean initFromUser(DrawingControl control, visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
initFromUser
in class DrawingGlyph
control
- The control I'm in.event
- The display event.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 DrawingGlyph
control
- The control I'm in.node
- The xml nodejava.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic java.lang.String getExtraDescription()
getExtraDescription
in class DrawingGlyph
public DrawingGlyph handleCreation(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleCreation
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void doMove(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
doMove
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void doStretch(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
doStretch
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected boolean constrainedTo2D()
constrainedTo2D
in class DrawingGlyph
protected void addAttributes(org.w3c.dom.Element e)
addAttributes
in class DrawingGlyph
e
- Xml nodepublic java.lang.String getTagName()
getTagName
in class DrawingGlyph
public DrawingGlyph handleMouseReleased(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMouseReleased
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void initMove(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
initMove
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic void updateLocation() throws visad.VisADException, java.rmi.RemoteException
updateLocation
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnesspublic DrawingGlyph handleMousePressed(visad.DisplayEvent event) throws visad.VisADException, java.rmi.RemoteException
handleMousePressed
in class DrawingGlyph
event
- The display event.java.rmi.RemoteException
- When bad things happenvisad.VisADException
- When bad things happenprotected boolean initFinalInner() throws visad.VisADException, java.rmi.RemoteException
initFinalInner
in class DrawingGlyph
java.rmi.RemoteException
- On badnessvisad.VisADException
- On badnessprotected void getPropertiesComponents(java.util.List comps, java.util.Hashtable compMap)
getPropertiesComponents
in class DrawingGlyph
comps
- widgetscompMap
- extra holder of componentspublic void doExport()
public java.lang.String getTypeName()
getTypeName
in class DrawingGlyph
public void setImage(java.lang.String value)
value
- The new value for Imagepublic java.lang.String getImage()