![]() |
GrammarScope
4.0.0
|
Classes | |
enum | Alignment |
Public Member Functions | |
BalloonTip (final JTextPane textComponent, final Component attachedComponent, final Alignment alignment, final int horizontalOffset, final int verticalOffset, final String label, final boolean useCloseButton) | |
void | setText (final String text) |
synchronized void | setVisible (final boolean show) |
Private Member Functions | |
Point | calcWhere () |
Dimension | calcPreferredSize () |
Private Attributes | |
Popup | popup |
final Component | attachedComponent |
final JTextComponent | textComponent |
final JComponent | component |
final Alignment | alignment |
final int | horizontalOffset |
final int | verticalOffset |
final String | label |
Static Private Attributes | |
static final long | serialVersionUID = 1L |
static final Color | backcolor = new Color(255, 255, 200) |
static final Border | editingBorder |
static final Icon | defaultCloseIcon = new ImageIcon(BalloonTip.class.getResource("images/close_default.png")) |
static final Icon | rolloverCloseIcon = new ImageIcon(BalloonTip.class.getResource("images/close_rollover.png")) |
static final Icon | pressedCloseIcon = new ImageIcon(BalloonTip.class.getResource("images/close_pressed.png")) |
static final int | H_SHRINK = 25 |
static final int | V_EXPAND = 10 |
A balloon tip which can be displayed
the attached component. See enumeration BalloonTip.Alignment
. The balloon tip uses a JTextPane
to render its contents which allows use of HTML code. Create a balloon tip by using the static create
methods. You can choose between two looks.
grammarscope.editor.component.BalloonTip.BalloonTip | ( | final JTextPane | textComponent, |
final Component | attachedComponent, | ||
final Alignment | alignment, | ||
final int | horizontalOffset, | ||
final int | verticalOffset, | ||
final String | label, | ||
final boolean | useCloseButton | ||
) |
Constructor
textComponent | internal text component |
attachedComponent | external attached component |
alignment | alignment |
horizontalOffset | horizontal offset |
verticalOffset | vertical offset |
label | label |
useCloseButton | whether to use close button |
|
private |
Calculate preferred size
|
private |
Compute location
void grammarscope.editor.component.BalloonTip.setText | ( | final String | text | ) |
Set text
text | text |
synchronized void grammarscope.editor.component.BalloonTip.setVisible | ( | final boolean | show | ) |
|
private |
Balloon's alignment
|
private |
Balloon's external attached component
|
staticprivate |
Back color
|
private |
Balloon's internal main component
|
staticprivate |
Close icon
|
staticprivate |
Border
|
staticprivate |
|
private |
Horizontal position offset
|
private |
Label
|
private |
Popup window
|
staticprivate |
Pressed close icon
|
staticprivate |
Rollover close icon
|
staticprivate |
|
private |
Balloon's internal text component
|
staticprivate |
|
private |
Vertical position offset