public class ComicChatOverlay extends SubtitleChatOverlay
ChatOverlay.InfoProvider| Constructor and Description |
|---|
ComicChatOverlay(CrowdContext ctx,
ChatLogic logic,
JScrollBar historyBar,
int subtitleHeight)
Construct a comic chat overlay.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
historyUpdated(int adjustment) |
void |
layout()
Layout the chat overlay inside the previously configured target component.
|
void |
newPlaceEntered(ChatOverlay.InfoProvider provider)
Callback from the target that the place has changed and we are to now talk to the new info
provider.
|
void |
removed()
Indicates that the target component was removed from the widget hier.
|
void |
setDimmed(boolean dimmed)
Set the dimmed mode of the currently displaying glyphs.
|
void |
speakerDeparted(Name speaker)
Should be called when a speaker departs the chat area to allow the overlay to clean up.
|
void |
viewDidScroll(int dx,
int dy)
Called if our containing media panel scrolled its view.
|
added, displayMessage, stateChangedgetTarget, placeExited, setVisiblepublic ComicChatOverlay(CrowdContext ctx, ChatLogic logic, JScrollBar historyBar, int subtitleHeight)
subtitleHeight - the amount of vertical space to use for subtitles.public void newPlaceEntered(ChatOverlay.InfoProvider provider)
ChatOverlaynewPlaceEntered in class ChatOverlaypublic void layout()
ChatOverlaylayout in class SubtitleChatOverlaypublic void removed()
ChatOverlayremoved in class SubtitleChatOverlaypublic void clear()
clear in interface ChatDisplayclear in class SubtitleChatOverlaypublic void viewDidScroll(int dx,
int dy)
ChatOverlayviewDidScroll in class SubtitleChatOverlaypublic void setDimmed(boolean dimmed)
ChatOverlaysetDimmed in class SubtitleChatOverlaypublic void speakerDeparted(Name speaker)
ChatOverlayspeakerDeparted in class ChatOverlaypublic void historyUpdated(int adjustment)
historyUpdated in interface HistoryList.ObserverhistoryUpdated in class SubtitleChatOverlayCopyright © 2015. All rights reserved.