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, render
determineActiveAttributes, getActiveAttributes, getAttributes, getDecodedText, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isHighlighted, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setHighlighted, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisible
onMessage, propertyChange
addPropertyChangeListener, 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, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttributes, getBounds, getDelegateOwner, getHighlightAttributes, getMaxActiveAltitude, getMinActiveAltitude, getText, getTextDecoder, isAlwaysOnTop, isPickEnabled, isVisible, setAlwaysOnTop, setAttributes, setDelegateOwner, setHighlightAttributes, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setText, setTextDecoder, setVisible
render
isHighlighted, setHighlighted
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
protected 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 AbstractAnnotationBalloon
dc
- Draw context.protected ScreenAnnotation createAnnotation()
createAnnotation
in class AbstractAnnotationBalloon
protected ScreenAnnotation getAnnotation()
getAnnotation
in class AbstractAnnotationBalloon
public Point getScreenLocation()
getScreenLocation
in interface ScreenBalloon
public void setScreenLocation(Point point)
setScreenLocation
in interface ScreenBalloon
point
- Point in screen coordinates, with origin at upper left corner.