public class ToolTipAnnotation extends ScreenAnnotation
ToolTipController
.AbstractAnnotation.TextCacheKey
position, screenPoint
alwaysOnTop, attributes, childList, delegateOwner, layoutManager, maxActiveAltitude, minActiveAltitude, pickEnabled, pickSupport, text, textBoundsMap, vertexBuffer, wrappedTextMap
ANTIALIAS_DONT_CARE, ANTIALIAS_FASTEST, ANTIALIAS_NICEST
Constructor and Description |
---|
ToolTipAnnotation(java.lang.String text)
Create a tool tip using specified text.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.Point |
adjustDrawPointToViewport(java.awt.Point point,
java.awt.Rectangle bounds,
java.awt.Rectangle viewport) |
protected void |
doRenderNow(DrawContext dc) |
protected int |
getOffsetX() |
protected int |
getOffsetY() |
java.awt.Point |
getTooltipOffset()
Indicates the screen-coordinate offset of the tool tip from the tool tip position.
|
protected void |
initializeAttributes() |
void |
setTooltipOffset(java.awt.Point tooltipOffset)
Specifies the screen-coordinate offset of the tool tip from the tool tip position.
|
computeAnnotationPosition, computeBounds, computeOffset, computeSize, getPosition, getRestorableState, getScreenPoint, getScreenPoint, restoreState, setPosition, setScreenPoint
addChild, adjustSizeToChildren, adjustSizeToText, applyBackgroundTextureState, applyColor, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeBoundingRectangle, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDraw, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawContent, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAttributes, getBounds, getChildren, getDelegateOwner, getLayout, getMaxActiveAltitude, getMinActiveAltitude, getMultiLineTextRenderer, getPickSupport, getPreferredSize, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setDelegateOwner, setLayout, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setPickSupport, setText, transformBackgroundImageCoordsToAnnotationCoords, transformByModelview, transformImageCoordsToBackgroundImageCoords, wrapText
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
public ToolTipAnnotation(java.lang.String text)
text
- the text to display in the tool tip.protected java.awt.Point adjustDrawPointToViewport(java.awt.Point point, java.awt.Rectangle bounds, java.awt.Rectangle viewport)
protected void doRenderNow(DrawContext dc)
doRenderNow
in class ScreenAnnotation
protected int getOffsetX()
protected int getOffsetY()
public java.awt.Point getTooltipOffset()
protected void initializeAttributes()
public void setTooltipOffset(java.awt.Point tooltipOffset)
tooltipOffset
- the tool tip offset. The default is five pixels to the left and up.