public interface WWIcon extends AVList, Restorable
Modifier and Type | Method and Description |
---|---|
Object |
getBackgroundImage()
Returns the icon's background image source, if any.
|
double |
getBackgroundScale()
Indicates the relative screen size of the background image, if specified.
|
BasicWWTexture |
getBackgroundTexture()
Returns the
WWTexture used to represent the icon's background texture. |
double |
getHighlightScale()
Returns the icon's highlight scale, which indicates the degree of expansion or shrinkage applied to the icon when
it's drawn in its highlighted state.
|
Object |
getImageSource()
Returns the icon's image source.
|
BasicWWTexture |
getImageTexture()
Returns the
WWTexture used to represent the icon. |
Position |
getPosition()
Returns the icon's geographic position.
|
Dimension |
getSize()
Returns the icon's specified screen size.
|
Font |
getToolTipFont()
Returns the font used to render an icon's tool tip, if any.
|
Vec4 |
getToolTipOffset()
Indicates the offset in screen coordinates at which to place the lower left corner of the icon tool tip's text
box.
|
String |
getToolTipText()
Returns the icon's current tool tip text.
|
Color |
getToolTipTextColor()
Indicates the color in which the icon's tool tip, if any, is drawn.
|
boolean |
isAlwaysOnTop()
Indicates whether the icon is always to be displayed "on top" of all other ordered renderables.
|
boolean |
isHighlighted()
Indicates whether the icon should be drawn in its highlighted state.
|
boolean |
isShowToolTip()
Indicates whether the icon's tool tip, if any, is displayed with the icon.
|
boolean |
isVisible()
Returns the state of the visibility flag.
|
void |
setAlwaysOnTop(boolean alwaysOnTop)
Indicates whether the icon is always to be displayed "on top" of all other ordered renderables.
|
void |
setBackgroundImage(Object background)
Specifies the icon's background image source.
|
void |
setBackgroundScale(double backgroundScale)
Indicates the relative screen size of the background image, if specified.
|
void |
setHighlighted(boolean highlighted)
Specifies whether the icon should be drawn in its highlighted state.
|
void |
setHighlightScale(double highlightScale)
Specifies the relative screen size of the icon when it's highlighted.
|
void |
setImageSource(Object imageSource)
Specifies the source image for the icon.
|
void |
setPosition(Position iconPosition)
Sets the icon's geographic position.
|
void |
setShowToolTip(boolean showToolTip)
Indicates whether the icon's tool tip, if any, is displayed with the icon.
|
void |
setSize(Dimension size)
Sets the desired screen size of the icon.
|
void |
setToolTipFont(Font toolTipFont)
Specifies the font to use when displaying the icon's tool tip, if any.
|
void |
setToolTipOffset(Vec4 toolTipOffset)
Indicates the offset in screen coordinates at which to place the lower left corner of the icon tool tip's text
box.
|
void |
setToolTipText(String toolTipText)
Specifies the text string to display as the icon's tool tip.
|
void |
setToolTipTextColor(Color textColor)
Specifies the color in which to display the icon's tool tip text, if any.
|
void |
setVisible(boolean visible)
Specifies whether the icon is drawn.
|
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
getRestorableState, restoreState
Object getBackgroundImage()
double getBackgroundScale()
BasicWWTexture getBackgroundTexture()
WWTexture
used to represent the icon's background texture.double getHighlightScale()
Object getImageSource()
BasicWWTexture getImageTexture()
WWTexture
used to represent the icon.Position getPosition()
Dimension getSize()
setSize(java.awt.Dimension)
Font getToolTipFont()
Vec4 getToolTipOffset()
String getToolTipText()
Color getToolTipTextColor()
boolean isAlwaysOnTop()
boolean isHighlighted()
boolean isShowToolTip()
boolean isVisible()
void setAlwaysOnTop(boolean alwaysOnTop)
alwaysOnTop
- true if the icon has visual priority, otherwise false, the default.void setBackgroundImage(Object background)
background
- the background image source. The default is null.void setBackgroundScale(double backgroundScale)
backgroundScale
- the background image scale.void setHighlighted(boolean highlighted)
highlighted
- true if the icon should be rendered as highlighted, otherwise false.void setHighlightScale(double highlightScale)
highlightScale
- the highlight scale.void setImageSource(Object imageSource)
String
file path and a BufferedImage
.imageSource
- the image source.IllegalArgumentException
- if imageSource
is null or the source is not an allowed type.void setPosition(Position iconPosition)
iconPosition
- the icon's geographic position. May be null to indicate that the icon has no current position
and therefore should not be displayed.void setShowToolTip(boolean showToolTip)
showToolTip
- true if the tool tip is displayed when the icon is rendered, otherwise false, the default.void setSize(Dimension size)
size
- the desired screen size, or null if the icon should be displayed at its source image size.void setToolTipFont(Font toolTipFont)
toolTipFont
- the tool tip font. If null, an implementation dependent font is used.void setToolTipOffset(Vec4 toolTipOffset)
toolTipOffset
- the tool tip offset. The default is null.void setToolTipText(String toolTipText)
toolTipText
- the tool tip text. May be null, the default, to indicate no tool tip is displaye.void setToolTipTextColor(Color textColor)
textColor
- the tool tip text color. The default is null, in which case an implementation dependent color is
used.void setVisible(boolean visible)
visible
- true if the icon is drawn, otherwise false. The default is true.