public class ButtonAnnotation extends ImageAnnotation implements SelectListener
AbstractAnnotation.TextCacheKey
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
actionCommand |
protected double |
disabledOpacity |
protected boolean |
enabled |
protected javax.swing.event.EventListenerList |
listenerList |
protected boolean |
pressed |
protected WWTexture |
pressedMaskTexture |
enableSmoothing, fitSizeToImage, imageHeight, imageWidth, showToolTip, toolTipPoint, toolTipText, useImageAspectRatio, useMipmaps
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 |
---|
ButtonAnnotation() |
ButtonAnnotation(java.lang.Object imageSource) |
ButtonAnnotation(java.lang.Object imageSource,
java.lang.Object pressedMaskSource) |
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener listener) |
protected void |
applyBackgroundTextureState(DrawContext dc,
int width,
int height,
double opacity,
WWTexture texture) |
protected void |
doDrawPressedMask(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition) |
void |
drawContent(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition) |
protected void |
drawPressedMask(DrawContext dc,
int width,
int height,
double opacity,
Position pickPosition) |
protected void |
fireActionPerformed(int id,
long when,
int modifiers) |
java.lang.String |
getActionCommand() |
java.awt.event.ActionListener[] |
getActionListeners() |
double |
getDisabledOpacity() |
java.lang.Object |
getPressedMaskSource() |
WWTexture |
getPressedMaskTexture() |
protected boolean |
isButtonPressed(SelectEvent e) |
protected boolean |
isButtonTrigger(SelectEvent e) |
boolean |
isEnabled() |
boolean |
isPressed() |
protected void |
onButtonPressed(SelectEvent e) |
void |
removeActionListener(java.awt.event.ActionListener listener) |
void |
selected(SelectEvent e) |
void |
setActionCommand(java.lang.String actionCommand) |
void |
setDisabledOpacity(double opacity) |
void |
setEnabled(boolean enabled) |
void |
setPressed(boolean pressed) |
void |
setPressedMaskSource(java.lang.Object source) |
protected void |
setupAnnotationAttributes(Annotation annotation) |
doDrawToolTip, drawToolTip, getImageDimension, getImageSize, getImageSource, getPreferredSize, getTexture, getToolTipPoint, getToolTipText, isEnableSmoothing, isFitSizeToImage, isShowToolTip, isUseImageAspectRatio, isUseMipmaps, setEnableSmoothing, setFitSizeToImage, setImageSource, setImageSource, setShowToolTip, setToolTipPoint, setToolTipText, setUseImageAspectRatio, setUseMipmaps, transformBackgroundImageCoordsToAnnotationCoords
computeAnnotationPosition, computeBounds, computeOffset, computeSize, doRenderNow, getPosition, getRestorableState, getScreenPoint, getScreenPoint, restoreState, setPosition, setScreenPoint
addChild, adjustSizeToChildren, adjustSizeToText, applyColor, applyScreenTransform, beginDraw, beginDrawChildren, bindPickableObject, computeBoundingRectangle, computeFreeBounds, computeInsetBounds, computeOpacity, computeScale, computeTextBounds, dispose, doDraw, doDrawBackgroundTexture, doDrawChildren, draw, drawBackground, drawBackgroundImage, drawBorder, drawCallout, drawChildren, drawHTML, drawPlainText, drawText, drawText, drawTopLevelAnnotation, endDraw, endDrawChildren, getAttributes, getBounds, getChildren, getDelegateOwner, getLayout, getMaxActiveAltitude, getMinActiveAltitude, getMultiLineTextRenderer, getPickSupport, getText, getTextBounds, getTextRenderer, getWrappedText, glPointFromAWTPoint, isAlwaysOnTop, isPickEnabled, modulateColorOpacity, pick, removeAllChildren, removeChild, render, renderNow, setAlwaysOnTop, setAttributes, setDelegateOwner, setLayout, setMaxActiveAltitude, setMinActiveAltitude, setPickEnabled, setPickSupport, setText, 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
protected java.lang.String actionCommand
protected double disabledOpacity
protected boolean enabled
protected javax.swing.event.EventListenerList listenerList
protected boolean pressed
protected WWTexture pressedMaskTexture
public ButtonAnnotation()
public ButtonAnnotation(java.lang.Object imageSource)
public ButtonAnnotation(java.lang.Object imageSource, java.lang.Object pressedMaskSource)
public void addActionListener(java.awt.event.ActionListener listener)
protected void applyBackgroundTextureState(DrawContext dc, int width, int height, double opacity, WWTexture texture)
applyBackgroundTextureState
in class ImageAnnotation
protected void doDrawPressedMask(DrawContext dc, int width, int height, double opacity, Position pickPosition)
public void drawContent(DrawContext dc, int width, int height, double opacity, Position pickPosition)
drawContent
in class ImageAnnotation
protected void drawPressedMask(DrawContext dc, int width, int height, double opacity, Position pickPosition)
protected void fireActionPerformed(int id, long when, int modifiers)
public java.lang.String getActionCommand()
public java.awt.event.ActionListener[] getActionListeners()
public double getDisabledOpacity()
public java.lang.Object getPressedMaskSource()
public WWTexture getPressedMaskTexture()
protected boolean isButtonPressed(SelectEvent e)
protected boolean isButtonTrigger(SelectEvent e)
public boolean isEnabled()
public boolean isPressed()
protected void onButtonPressed(SelectEvent e)
public void removeActionListener(java.awt.event.ActionListener listener)
public void selected(SelectEvent e)
selected
in interface SelectListener
public void setActionCommand(java.lang.String actionCommand)
public void setDisabledOpacity(double opacity)
public void setEnabled(boolean enabled)
public void setPressed(boolean pressed)
public void setPressedMaskSource(java.lang.Object source)
protected void setupAnnotationAttributes(Annotation annotation)
setupAnnotationAttributes
in class ImageAnnotation