public class SubtitleChatOverlay extends ChatOverlay implements ChangeListener, HistoryList.Observer
ChatOverlay.InfoProvider| Constructor and Description |
|---|
SubtitleChatOverlay(CrowdContext ctx,
ChatLogic logic,
JScrollBar bar)
Construct a comic chat overlay using all the available space for subtitling.
|
SubtitleChatOverlay(CrowdContext ctx,
ChatLogic logic,
JScrollBar bar,
boolean full) |
SubtitleChatOverlay(CrowdContext ctx,
ChatLogic logic,
JScrollBar bar,
boolean full,
boolean overrideHistory) |
SubtitleChatOverlay(CrowdContext ctx,
ChatLogic logic,
JScrollBar bar,
int subtitleHeight)
Construct a subtitle chat overlay.
|
| Modifier and Type | Method and Description |
|---|---|
void |
added(VirtualMediaPanel target)
Indicates that the target component was added to the widget hier.
|
void |
clear() |
boolean |
displayMessage(ChatMessage message,
boolean alreadyDisplayed) |
void |
historyUpdated(int adjustment) |
void |
layout()
Layout the chat overlay inside the previously configured target component.
|
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 |
stateChanged(ChangeEvent e) |
void |
viewDidScroll(int dx,
int dy)
Called if our containing media panel scrolled its view.
|
getTarget, newPlaceEntered, placeExited, setVisible, speakerDepartedpublic SubtitleChatOverlay(CrowdContext ctx, ChatLogic logic, JScrollBar bar, int subtitleHeight)
subtitleHeight - the height of the subtitle area.public SubtitleChatOverlay(CrowdContext ctx, ChatLogic logic, JScrollBar bar)
public SubtitleChatOverlay(CrowdContext ctx, ChatLogic logic, JScrollBar bar, boolean full)
public SubtitleChatOverlay(CrowdContext ctx, ChatLogic logic, JScrollBar bar, boolean full, boolean overrideHistory)
public void historyUpdated(int adjustment)
historyUpdated in interface HistoryList.Observerpublic void stateChanged(ChangeEvent e)
stateChanged in interface ChangeListenerpublic void clear()
clear in interface ChatDisplaypublic boolean displayMessage(ChatMessage message, boolean alreadyDisplayed)
displayMessage in interface ChatDisplaypublic void viewDidScroll(int dx,
int dy)
ChatOverlayviewDidScroll in class ChatOverlaypublic void added(VirtualMediaPanel target)
ChatOverlayadded in class ChatOverlaypublic void layout()
ChatOverlaylayout in class ChatOverlaypublic void setDimmed(boolean dimmed)
ChatOverlaysetDimmed in class ChatOverlaypublic void removed()
ChatOverlayremoved in class ChatOverlayCopyright © 2015. All rights reserved.