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(String text)
Create a tool tip using specified text.
|
Modifier and Type | Method and Description |
---|---|
protected Point |
adjustDrawPointToViewport(Point point,
Rectangle bounds,
Rectangle viewport) |
protected void |
doRenderNow(DrawContext dc) |
protected int |
getOffsetX() |
protected int |
getOffsetY() |
Point |
getTooltipOffset()
Indicates the screen-coordinate offset of the tool tip from the tool tip position.
|
protected void |
initializeAttributes() |
void |
setTooltipOffset(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(String text)
text
- the text to display in the tool tip.protected Point adjustDrawPointToViewport(Point point, Rectangle bounds, Rectangle viewport)
protected void doRenderNow(DrawContext dc)
doRenderNow
in class ScreenAnnotation
protected int getOffsetX()
protected int getOffsetY()
public Point getTooltipOffset()
protected void initializeAttributes()
public void setTooltipOffset(Point tooltipOffset)
tooltipOffset
- the tool tip offset. The default is five pixels to the left and up.