gov.nasa.worldwind.render
Class UserFacingIcon
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.render.UserFacingIcon
- All Implemented Interfaces:
- AVList, Movable, WWIcon, Restorable
- Direct Known Subclasses:
- Pedestal
public class UserFacingIcon
- extends AVListImpl
- implements WWIcon, Movable
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 |
UserFacingIcon
public UserFacingIcon(Object imageSource,
Position iconPosition)
UserFacingIcon
public UserFacingIcon(String iconPath,
Position iconPosition)
getBackgroundImage
public Object getBackgroundImage()
- Specified by:
getBackgroundImage
in interface WWIcon
getBackgroundScale
public double getBackgroundScale()
- Specified by:
getBackgroundScale
in interface WWIcon
getHighlightScale
public double getHighlightScale()
- Specified by:
getHighlightScale
in interface WWIcon
getImageSource
public Object getImageSource()
- Specified by:
getImageSource
in interface WWIcon
getPath
public String getPath()
getPosition
public Position getPosition()
- Specified by:
getPosition
in interface WWIcon
getReferencePosition
public Position getReferencePosition()
- Specified by:
getReferencePosition
in interface Movable
getRestorableState
public String getRestorableState()
- Returns an XML state document String describing the public attributes of this UserFacingIcon.
- Specified by:
getRestorableState
in interface Restorable
- Returns:
- XML state document string describing this UserFacingIcon.
getSize
public Dimension getSize()
- Specified by:
getSize
in interface WWIcon
getToolTipFont
public Font getToolTipFont()
- Specified by:
getToolTipFont
in interface WWIcon
getToolTipText
public String getToolTipText()
- Specified by:
getToolTipText
in interface WWIcon
getToolTipTextColor
public Color getToolTipTextColor()
- Specified by:
getToolTipTextColor
in interface WWIcon
isAlwaysOnTop
public boolean isAlwaysOnTop()
- Specified by:
isAlwaysOnTop
in interface WWIcon
isHighlighted
public boolean isHighlighted()
- Specified by:
isHighlighted
in interface WWIcon
isShowToolTip
public boolean isShowToolTip()
- Specified by:
isShowToolTip
in interface WWIcon
isVisible
public boolean isVisible()
- Specified by:
isVisible
in interface WWIcon
move
public void move(Position position)
- Description copied from interface:
Movable
- Shift the shape over the globe's surface while maintaining its original azimuth -- its orientation relative to
North.
- Specified by:
move
in interface Movable
- Parameters:
position
- the latitude and longitude to add to the shapes reference position.
moveTo
public void moveTo(Position position)
- Description copied from interface:
Movable
- Move the shape over the globe's surface while maintaining its original azimuth -- its orientation relative to
North.
- Specified by:
moveTo
in interface Movable
- Parameters:
position
- the new position of the shapes reference position.
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
- Parameters:
stateInXml
- an XML document String describing a UserFacingIcon.
- Throws:
IllegalArgumentException
- If stateInXml
is null, or if stateInXml
is not
a well formed XML document String.
setAlwaysOnTop
public void setAlwaysOnTop(boolean alwaysOnTop)
- Specified by:
setAlwaysOnTop
in interface WWIcon
setBackgroundImage
public void setBackgroundImage(Object background)
- Specified by:
setBackgroundImage
in interface WWIcon
setBackgroundScale
public void setBackgroundScale(double backgroundScale)
- Specified by:
setBackgroundScale
in interface WWIcon
setHighlighted
public void setHighlighted(boolean highlighted)
- Specified by:
setHighlighted
in interface WWIcon
setHighlightScale
public void setHighlightScale(double highlightScale)
- Specified by:
setHighlightScale
in interface WWIcon
setImageSource
public void setImageSource(Object imageSource)
- Specified by:
setImageSource
in interface WWIcon
setPosition
public void setPosition(Position iconPosition)
- Specified by:
setPosition
in interface WWIcon
setShowToolTip
public void setShowToolTip(boolean showToolTip)
- Specified by:
setShowToolTip
in interface WWIcon
setSize
public void setSize(Dimension size)
- Specified by:
setSize
in interface WWIcon
setToolTipFont
public void setToolTipFont(Font toolTipFont)
- Specified by:
setToolTipFont
in interface WWIcon
setToolTipText
public void setToolTipText(String toolTipText)
- Specified by:
setToolTipText
in interface WWIcon
setToolTipTextColor
public void setToolTipTextColor(Color textColor)
- Specified by:
setToolTipTextColor
in interface WWIcon
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible
in interface WWIcon
toString
public String toString()
- Overrides:
toString
in class Object