public class ScreenAnnotationBalloon extends AbstractAnnotationBalloon implements ScreenBalloon
| Modifier and Type | Field and Description |
|---|---|
protected ScreenAnnotation |
annotation
Annotation used to render the balloon.
|
protected Point |
screenPoint |
activeAttributes, alwaysOnTop, attributes, defaultAttributes, delegateOwner, highlightAttributes, highlighted, maxActiveAltitude, minActiveAltitude, pickEnabled, text, textDecoder, visible| Constructor and Description |
|---|
ScreenAnnotationBalloon(String text,
Point point)
Create the balloon.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computePosition(DrawContext dc)
Compute the annotation position, and set it in the annotation.
|
protected ScreenAnnotation |
createAnnotation()
Create an annotation to render the balloon.
|
protected ScreenAnnotation |
getAnnotation()
Get the annotation used to render the balloon.
|
Point |
getScreenLocation()
Get the position of the balloon on the screen.
|
void |
setScreenLocation(Point point)
Set the screen position of the balloon.
|
applyAttributesToAnnotation, computeOffsets, getBounds, renderdetermineActiveAttributes, getActiveAttributes, getAttributes, getDecodedText, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isHighlighted, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setHighlighted, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisibleonMessage, propertyChangeaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttributes, getBounds, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisiblerenderisHighlighted, setHighlightedaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected ScreenAnnotation annotation
protected Point screenPoint
public ScreenAnnotationBalloon(String text, Point point)
text - Text to display in the balloon. May not be null.point - The balloon's screen point. This point is interpreted in a coordinate system with the origin at the
upper left corner of the screen.protected void computePosition(DrawContext dc)
computePosition in class AbstractAnnotationBalloondc - Draw context.protected ScreenAnnotation createAnnotation()
createAnnotation in class AbstractAnnotationBalloonprotected ScreenAnnotation getAnnotation()
getAnnotation in class AbstractAnnotationBalloonpublic Point getScreenLocation()
getScreenLocation in interface ScreenBalloonpublic void setScreenLocation(Point point)
setScreenLocation in interface ScreenBalloonpoint - Point in screen coordinates, with origin at upper left corner.