public class ChatGlyph extends Animation
MediaPanel.| Modifier and Type | Field and Description |
|---|---|
int |
histIndex
Can be used by the Overlay to mark our position in the history.
|
HUD_LAYER| Constructor and Description |
|---|
ChatGlyph(SubtitleChatOverlay owner,
int type,
long lifetime,
Rectangle bounds,
Shape shape,
Icon icon,
Point iconpos,
Label label,
Point labelpos,
Color outline)
Construct a chat glyph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
fastForward(long timeDelta)
Called when the appropriate media manager has been paused for some length of time and is
then unpaused.
|
Shape |
getShape()
Returns the shape of this chat bubble.
|
int |
getType()
Get the internal chat type of this bubble.
|
void |
paint(Graphics2D gfx)
Called by the appropriate manager to request that the media render itself with the given
graphics context.
|
void |
render(Graphics2D gfx)
Render the chat glyph with no thought to dirty rectangles or
restoring composites.
|
void |
setDim(boolean dim)
Sets whether or not this glyph is in dimmed mode.
|
void |
setLocation(int x,
int y)
Set the location.
|
void |
tick(long tickStamp)
Called periodically by this media's manager to give it a chance to do its thing.
|
void |
translate(int dx,
int dy)
Attempt to translate this glyph.
|
void |
viewDidScroll(int dx,
int dy)
Called when the view has scrolled.
|
addAnimationObserver, isFinished, removeAnimationObserver, resetcontains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, intersects, intersects, invalidate, queueNotification, renderCompareTo, setRenderOrder, toString, viewLocationDidChangepublic int histIndex
public ChatGlyph(SubtitleChatOverlay owner, int type, long lifetime, Rectangle bounds, Shape shape, Icon icon, Point iconpos, Label label, Point labelpos, Color outline)
owner - the subtitle overlay that ownz us.bounds - the bounds of the glyphshape - the shape to draw/outline.icon - the Icon to draw inside the bubble, or null for noneiconpos - the virtual coordinate at which to draw the icon (can be null if no icon)label - the Label to draw inside the bubble.labelpos - the virtual coordinate at which to draw the labelpublic void setDim(boolean dim)
public void render(Graphics2D gfx)
public int getType()
public Shape getShape()
public void setLocation(int x,
int y)
AbstractMediasetLocation in class Animationpublic void viewDidScroll(int dx,
int dy)
public void translate(int dx,
int dy)
public void tick(long tickStamp)
AbstractMediatick in class AbstractMediatickStamp - a time stamp associated with this tick. Note: this is not obtained
from a call to System.currentTimeMillis() and cannot be compared to timestamps
obtained there from.public void fastForward(long timeDelta)
AbstractMediafastForward in class AbstractMediapublic void paint(Graphics2D gfx)
AbstractMediapaint in class AbstractMediaCopyright © 2015. All rights reserved.