public interface VisualOutput
The supported visuals and properties can be accessed through the respective function calls.
Standard visual names are TEXT, IMAGE. (About to be extended)Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getArgumentsForVisual(java.lang.String visualName)
Returns the arguments to be used when calling
show(String, Object[]) . |
java.lang.String[] |
getAvailableProperties()
Returns the available properties for the output.
|
java.lang.String[] |
getAvailableVisuals()
Returns the available visuals for the output.
|
java.lang.String[] |
getValuesForProperty(java.lang.String propertyName)
Returns the valid values to be used when calling
setProperty(String, Object) . |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Sets a property of the output.
|
void |
show(java.lang.String visualName,
java.lang.Object[] args)
Outputs a specific visual with a set of arguments.
|
void show(java.lang.String visualName, java.lang.Object[] args) throws java.lang.IllegalArgumentException
visualName
- The name of the visual.args
- The array of arguments to be passed.java.lang.IllegalArgumentException
- When there is no such visual with visualName
.void setProperty(java.lang.String propertyName, java.lang.Object value) throws java.lang.IllegalArgumentException
propertyName
- The name of the property.value
- The value to set.java.lang.IllegalArgumentException
- When there is no such property with propertyName
.java.lang.String[] getAvailableProperties()
java.lang.String[] getAvailableVisuals()
java.lang.String[] getValuesForProperty(java.lang.String propertyName)
setProperty(String, Object)
.propertyName
- The name of the property.propertyName
.java.lang.String[] getArgumentsForVisual(java.lang.String visualName)
show(String, Object[])
.visualName
- The name of the visual to request the arguments for.visualName
.