public final class BalloonImpl extends java.lang.Object implements Balloon, IdeTooltip.Ui, ScreenAreaConsumer
Modifier and Type | Class and Description |
---|---|
class |
BalloonImpl.ActionButton |
static interface |
BalloonImpl.ActionProvider |
static interface |
BalloonImpl.ShadowBorderProvider |
Balloon.Layer, Balloon.Position
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
static com.intellij.ui.BalloonImpl.AbstractPosition |
ABOVE |
static JBValue |
ARC |
static com.intellij.ui.BalloonImpl.AbstractPosition |
AT_LEFT |
static com.intellij.ui.BalloonImpl.AbstractPosition |
AT_RIGHT |
static com.intellij.ui.BalloonImpl.AbstractPosition |
BELOW |
static JBValue |
DIALOG_POINTER_WIDTH |
static Key<java.lang.Boolean> |
FORCED_NO_SHADOW
This key is supposed to be used as client property of content component (with value Boolean.TRUE) to suppress shadow painting
when builder is being created indirectly and client cannot call its methods
|
static JBValue |
POINTER_LENGTH |
Constructor and Description |
---|
BalloonImpl(javax.swing.JComponent content,
java.awt.Color borderColor,
java.awt.Insets borderInsets,
java.awt.Color fillColor,
boolean hideOnMouse,
boolean hideOnKey,
boolean hideOnAction,
boolean hideOnCloseClick,
boolean showPointer,
boolean enableButtons,
long fadeoutTime,
boolean hideOnFrameResize,
boolean hideOnLinkClick,
java.awt.event.ActionListener clickHandler,
boolean closeOnClick,
int animationCycle,
int calloutShift,
int positionChangeXShift,
int positionChangeYShift,
boolean dialogMode,
java.lang.String title,
java.awt.Insets contentInsets,
boolean shadow,
boolean smallVariant,
boolean blockClicks,
Balloon.Layer layer,
boolean requestFocus,
java.awt.Dimension pointerSize,
int cornerToPointerDistance) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(JBPopupListener listener) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
javax.swing.Icon |
getCloseButton() |
javax.swing.JComponent |
getComponent() |
java.awt.Rectangle |
getConsumedScreenBounds() |
javax.swing.JComponent |
getContent() |
int |
getLayer() |
static int |
getNormalInset() |
java.awt.Color |
getPointerColor() |
static int |
getPointerLength(Balloon.Position position,
boolean dialogMode) |
java.awt.Dimension |
getPreferredSize() |
java.awt.Insets |
getShadowBorderInsets() |
RelativePoint |
getShowingPoint() |
java.awt.Window |
getUnderlyingWindow() |
boolean |
hasShadow() |
void |
hide() |
void |
hide(boolean ok) |
boolean |
isAnimationEnabled() |
boolean |
isBlockClicks() |
boolean |
isClickProcessor() |
boolean |
isDisposed() |
boolean |
isInside(RelativePoint target) |
boolean |
isMovingForward(RelativePoint target) |
boolean |
isVisible() |
void |
revalidate() |
void |
revalidate(PositionTracker<Balloon> tracker) |
void |
setActionProvider(BalloonImpl.ActionProvider actionProvider) |
void |
setAnimationEnabled(boolean enabled) |
void |
setBounds(java.awt.Rectangle bounds) |
void |
setFillColor(java.awt.Color fillColor) |
void |
setHideListener(java.lang.Runnable listener) |
void |
setHideOnClickOutside(boolean hideOnMouse) |
void |
setPointerColor(java.awt.Color pointerColor) |
void |
setShadowBorderProvider(BalloonImpl.ShadowBorderProvider provider) |
void |
setShowPointer(boolean show) |
void |
setTitle(java.lang.String title) |
void |
show(javax.swing.JLayeredPane pane) |
void |
show(javax.swing.JLayeredPane pane,
java.awt.Rectangle bounds) |
void |
show(PositionTracker<Balloon> tracker,
Balloon.Position position) |
void |
show(RelativePoint target,
Balloon.Position position) |
void |
showInCenterOf(javax.swing.JComponent component) |
void |
startFadeoutTimer(int fadeoutDelay) |
void |
startSmartFadeoutTimer(int delay) |
boolean |
wasFadedIn() |
boolean |
wasFadedOut() |
public static final Key<java.lang.Boolean> FORCED_NO_SHADOW
public static final JBValue ARC
public static final JBValue DIALOG_POINTER_WIDTH
public static final JBValue POINTER_LENGTH
public static final com.intellij.ui.BalloonImpl.AbstractPosition BELOW
public static final com.intellij.ui.BalloonImpl.AbstractPosition ABOVE
public static final com.intellij.ui.BalloonImpl.AbstractPosition AT_RIGHT
public static final com.intellij.ui.BalloonImpl.AbstractPosition AT_LEFT
public BalloonImpl(javax.swing.JComponent content, java.awt.Color borderColor, java.awt.Insets borderInsets, java.awt.Color fillColor, boolean hideOnMouse, boolean hideOnKey, boolean hideOnAction, boolean hideOnCloseClick, boolean showPointer, boolean enableButtons, long fadeoutTime, boolean hideOnFrameResize, boolean hideOnLinkClick, java.awt.event.ActionListener clickHandler, boolean closeOnClick, int animationCycle, int calloutShift, int positionChangeXShift, int positionChangeYShift, boolean dialogMode, java.lang.String title, java.awt.Insets contentInsets, boolean shadow, boolean smallVariant, boolean blockClicks, Balloon.Layer layer, boolean requestFocus, java.awt.Dimension pointerSize, int cornerToPointerDistance)
public void setFillColor(java.awt.Color fillColor)
public java.awt.Color getPointerColor()
public void setPointerColor(java.awt.Color pointerColor)
public boolean isInside(RelativePoint target)
isInside
in interface IdeTooltip.Ui
public boolean isMovingForward(RelativePoint target)
public void show(RelativePoint target, Balloon.Position position)
public int getLayer()
public void show(PositionTracker<Balloon> tracker, Balloon.Position position)
public javax.swing.JComponent getContent()
public javax.swing.JComponent getComponent()
public java.awt.Rectangle getConsumedScreenBounds()
getConsumedScreenBounds
in interface ScreenAreaConsumer
public java.awt.Window getUnderlyingWindow()
getUnderlyingWindow
in interface ScreenAreaConsumer
public void revalidate()
revalidate
in interface PositionTracker.Client<Balloon>
public void revalidate(PositionTracker<Balloon> tracker)
revalidate
in interface PositionTracker.Client<Balloon>
public void setShadowBorderProvider(BalloonImpl.ShadowBorderProvider provider)
public java.awt.Insets getShadowBorderInsets()
public boolean hasShadow()
public void showInCenterOf(javax.swing.JComponent component)
showInCenterOf
in interface Balloon
public void show(javax.swing.JLayeredPane pane, java.awt.Rectangle bounds)
public void startSmartFadeoutTimer(int delay)
public void startFadeoutTimer(int fadeoutDelay)
public static int getNormalInset()
public static int getPointerLength(Balloon.Position position, boolean dialogMode)
public void dispose()
Disposable
dispose
in interface Disposable
public void addListener(JBPopupListener listener)
addListener
in interface Balloon
public boolean isVisible()
public void setHideOnClickOutside(boolean hideOnMouse)
public void setHideListener(java.lang.Runnable listener)
public void setShowPointer(boolean show)
public javax.swing.Icon getCloseButton()
public void setBounds(java.awt.Rectangle bounds)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in interface Balloon
public boolean wasFadedIn()
wasFadedIn
in interface Balloon
public boolean wasFadedOut()
wasFadedOut
in interface Balloon
public boolean isDisposed()
isDisposed
in interface Balloon
public void setActionProvider(BalloonImpl.ActionProvider actionProvider)
public RelativePoint getShowingPoint()
getShowingPoint
in interface IdeTooltip.Ui
public void setAnimationEnabled(boolean enabled)
setAnimationEnabled
in interface Balloon
public boolean isAnimationEnabled()
public boolean isBlockClicks()
public boolean isClickProcessor()