de.beamertool.viewer.gui.opengl
Class TextBubble

java.lang.Object
  extended by 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

Constructor Summary
TextBubble(String text)
           
 
Method Summary
 float getAlpha()
           
 Color getBackground()
           
 Color getForeground()
           
 int getHeight()
           
 int getWidth()
           
 void render(Graphics2D g, int x, int y)
           
 void setAlpha(float alpha)
           
 void setBackground(Color color)
           
 void setForeground(Color color)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextBubble

public TextBubble(String text)
Method Detail

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)