de.beamertool.viewer.gui.opengl
Class TextBubble
java.lang.Object
de.beamertool.viewer.gui.opengl.TextBubble
public class TextBubble
- extends Object
A simple component that renders text inside a bubble (optionally
translucent). In its current form it isn't much more complex than a
JLabel, but it was intended to have other features that JLabel doesn't
have, which is why I created this separate class.
- Author:
- Chris Campbell, Sebastian Just
TextBubble
public TextBubble(String text)
getAlpha
public float getAlpha()
getBackground
public Color getBackground()
getForeground
public Color getForeground()
getHeight
public int getHeight()
getWidth
public int getWidth()
render
public void render(Graphics2D g,
int x,
int y)
setAlpha
public void setAlpha(float alpha)
setBackground
public void setBackground(Color color)
setForeground
public void setForeground(Color color)