|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.liquidatom.derbyscore.theme.ThemeElement
@ThreadSafe @Immutable public abstract class ThemeElement
An abstract base class for theme elements such as text or images that can conditionally be rendered on the scoreboard.
Constructor Summary | |
---|---|
protected |
ThemeElement(Theme theme,
java.lang.String visibleConditionScript)
Construct a new ThemeElement. |
Method Summary | |
---|---|
abstract java.awt.Rectangle |
getPosition()
Get the bounding rectangle into which this element should be rendered. |
protected Theme |
getTheme()
Get the Theme which this element belongs too. |
java.lang.String |
getVisibleConditionScript()
Get the javascript which should be evaluated to determine whether this element is visible or not. |
boolean |
isVisible(java.util.Map<java.lang.String,java.lang.Object> scope)
Determine whether this element is visible or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ThemeElement(Theme theme, java.lang.String visibleConditionScript)
theme
- The theme which this element belongs to.visibleConditionScript
- An optional snippet of javascript which will be evaluated to determine whether we
should render this element.Method Detail |
---|
public boolean isVisible(java.util.Map<java.lang.String,java.lang.Object> scope)
scope
- The variables which should be exposed to the javascript engine.
protected Theme getTheme()
Theme
which this element belongs too.
public java.lang.String getVisibleConditionScript()
public abstract java.awt.Rectangle getPosition()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |