|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.AbstractMedia
com.threerings.media.animation.Animation
com.threerings.chat.ChatGlyph
com.threerings.chat.ComicChatOverlay.BubbleGlyph
protected static class ComicChatOverlay.BubbleGlyph
A glyph of a particlar chat bubble
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.media.animation.Animation |
|---|
Animation.AnimCompletedOp, Animation.AnimStartedOp |
| Field Summary | |
|---|---|
protected int |
_agelevel
The age level of the bubble, used to pick the background color. |
protected Shape |
_sansTail
The shape of this chat bubble, without the tail. |
protected Name |
_speaker
The name of the speaker. |
| Fields inherited from class com.threerings.chat.ChatGlyph |
|---|
_alpha, _background, _bornStamp, _dim, _icon, _ipos, _label, _lifetime, _lpos, _outline, _owner, _shape, _type, ALPHA, ANIM_TIME, histIndex |
| Fields inherited from class com.threerings.media.animation.Animation |
|---|
_finished |
| Fields inherited from class com.threerings.media.AbstractMedia |
|---|
_bounds, _firstTick, _mgr, _observers, _renderOrder, HUD_LAYER |
| Constructor Summary | |
|---|---|
ComicChatOverlay.BubbleGlyph(SubtitleChatOverlay owner,
int type,
long lifetime,
Shape shape,
Label label,
Point labelpos,
Shape sansTail,
Name speaker,
Color outline)
Construct a chat bubble glyph. |
|
| Method Summary | |
|---|---|
protected Color |
getBackground()
|
Rectangle |
getBubbleBounds()
Get the bounds of this bubble, sans tail space. |
Shape |
getBubbleTerritory()
Get the screen real estate that this bubble has reserved and doesn't want to let any other bubbles take. |
boolean |
isSpeaker(Name player)
Is the specified player the speaker of this bubble? |
void |
removeTail()
Remove the tail on this bubble, if any. |
void |
setAgeLevel(int agelevel)
|
void |
viewDidScroll(int dx,
int dy)
Called when the view has scrolled. |
| Methods inherited from class com.threerings.chat.ChatGlyph |
|---|
fastForward, getShape, getType, jiggleBounds, paint, render, setDim, setLocation, tick, translate |
| Methods inherited from class com.threerings.media.animation.Animation |
|---|
addAnimationObserver, didFinish, isFinished, removeAnimationObserver, reset, willFinish, willStart |
| Methods inherited from class com.threerings.media.AbstractMedia |
|---|
addObserver, contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, getRenderOrder, init, init, intersects, intersects, invalidate, invalidateAfterChange, naturalCompareTo, queueNotification, removeObserver, renderCompareTo, setRenderOrder, shutdown, toString, toString, viewLocationDidChange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Shape _sansTail
protected Name _speaker
protected int _agelevel
| Constructor Detail |
|---|
public ComicChatOverlay.BubbleGlyph(SubtitleChatOverlay owner,
int type,
long lifetime,
Shape shape,
Label label,
Point labelpos,
Shape sansTail,
Name speaker,
Color outline)
sansTail - the chat bubble shape without the tail.| Method Detail |
|---|
public void setAgeLevel(int agelevel)
public void viewDidScroll(int dx,
int dy)
ChatGlyph
viewDidScroll in class ChatGlyphprotected Color getBackground()
getBackground in class ChatGlyphpublic Shape getBubbleTerritory()
public Rectangle getBubbleBounds()
public boolean isSpeaker(Name player)
public void removeTail()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||