gov.nasa.worldwind.render
Class Pedestal
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.UserFacingIcon
gov.nasa.worldwind.render.Pedestal
- All Implemented Interfaces:
- AVList, Movable, WWIcon, Restorable
public class Pedestal
- extends UserFacingIcon
Methods inherited from class gov.nasa.worldwind.render.UserFacingIcon |
getBackgroundImage, getBackgroundScale, getHighlightScale, getImageSource, getPath, getPosition, getReferencePosition, getSize, getToolTipFont, getToolTipText, getToolTipTextColor, isAlwaysOnTop, isHighlighted, isShowToolTip, isVisible, move, moveTo, setAlwaysOnTop, setBackgroundImage, setBackgroundScale, setHighlighted, setHighlightScale, setImageSource, setPosition, setShowToolTip, setSize, setToolTipFont, setToolTipText, setToolTipTextColor, setVisible, toString |
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues |
Pedestal
public Pedestal(String iconPath,
Position iconPosition)
getRestorableState
public String getRestorableState()
- Returns an XML state document String describing the public attributes of this Pedestal.
- Specified by:
getRestorableState
in interface Restorable
- Overrides:
getRestorableState
in class UserFacingIcon
- Returns:
- XML state document string describing this Pedestal.
getScale
public double getScale()
getSpacingPixels
public double getSpacingPixels()
restoreState
public void restoreState(String stateInXml)
- Restores publicly settable attribute values found in the specified XML state document String. The
document specified by
stateInXml
must be a well formed XML document String, or this will throw an
IllegalArgumentException. Unknown structures in stateInXml
are benign, because they will
simply be ignored.
- Specified by:
restoreState
in interface Restorable
- Overrides:
restoreState
in class UserFacingIcon
- Parameters:
stateInXml
- an XML document String describing a Pedestal.
- Throws:
IllegalArgumentException
- If stateInXml
is null, or if stateInXml
is not
a well formed XML document String.
setScale
public void setScale(double scale)
setSpacingPixels
public void setSpacingPixels(double spacingPixels)