public class TooltipPainter extends SimpleTextPainter
SimpleTextPainter.HorizontalPosition, SimpleTextPainter.VerticalPosition
BYTES_PER_FLOAT, logger
Constructor and Description |
---|
TooltipPainter() |
TooltipPainter(TextureAtlas atlas) |
Modifier and Type | Method and Description |
---|---|
int |
getBorderSize() |
boolean |
getBreakOnEol()
Whether to force a break on the end of line characters (\r \f \n).
|
int |
getFixedWidth() |
float |
getLineSpacing()
The spacing between the bottom (descent) of one line of text to the top
(ascent) of the next line.
|
boolean |
isFixedWidth() |
TooltipPainter |
setBorderSize(int size) |
TooltipPainter |
setBreakIterator(BreakIterator breakIterator) |
TooltipPainter |
setBreakOnEol(boolean breakOnEol) |
void |
setClampToScreenEdges(boolean clamp) |
TooltipPainter |
setFixedWidth(int fixedWidth) |
TooltipPainter |
setIcon(Object iconId)
Sets the icon to be displayed on the first line of the tool tip.
|
TooltipPainter |
setIcons(List<Object> iconIds)
Sets the TooltipPainter to display multiple icons, one per line,
down the left hand side of the tooltip window.
|
TooltipPainter |
setIcons(List<Object> iconIds,
List<float[]> colors)
Sets icons and associated colors.
|
TooltipPainter |
setLineSpacing(float lineSpacing) |
TooltipPainter |
setLocation(GlimpseMouseEvent e) |
TooltipPainter |
setLocation(int x,
int y)
Sets the location of the upper left corner of the tooltip box
in screen/pixel coordinates.
|
TooltipPainter |
setOffset(int x,
int y) |
TooltipPainter |
setText(String text) |
TooltipPainter |
setUnlimitedWidth() |
TooltipPainter |
setWrapTextAroundIcon(boolean wrap) |
dispose, getHorizontalPadding, getText, getTextBounds, getVerticalPadding, setBackgroundColor, setBorderColor, setColor, setColor, setFont, setFont, setFont, setFont, setHorizontalLabels, setHorizontalPadding, setHorizontalPosition, setLookAndFeel, setPadding, setPaintBackground, setPaintBorder, setSizeText, setVerticalPadding, setVerticalPosition
isDisposed, isVisible, paintTo, setErrorHandling, setVisible
public TooltipPainter(TextureAtlas atlas)
public TooltipPainter()
public TooltipPainter setIcon(Object iconId)
id
- the id of the icon in TooltipPainter's TextureAtlaspublic TooltipPainter setIcons(List<Object> iconIds)
public TooltipPainter setIcons(List<Object> iconIds, List<float[]> colors)
setIcons(List)
public TooltipPainter setWrapTextAroundIcon(boolean wrap)
public TooltipPainter setLocation(int x, int y)
public TooltipPainter setOffset(int x, int y)
public TooltipPainter setLocation(GlimpseMouseEvent e)
public TooltipPainter setBorderSize(int size)
public int getBorderSize()
public TooltipPainter setFixedWidth(int fixedWidth)
public TooltipPainter setUnlimitedWidth()
public void setClampToScreenEdges(boolean clamp)
public int getFixedWidth()
public boolean isFixedWidth()
public TooltipPainter setBreakOnEol(boolean breakOnEol)
public boolean getBreakOnEol()
public TooltipPainter setLineSpacing(float lineSpacing)
public float getLineSpacing()
public TooltipPainter setBreakIterator(BreakIterator breakIterator)
public TooltipPainter setText(String text)
setText
in class SimpleTextPainter
Copyright © 2013 Metron, Inc.. All rights reserved.