public class DefaultVisualPropertyHandler extends DefaultPropertyHandler implements IVisualPropertyHandler
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOGGER
logger definition
|
COLOR, IS_VISUAL, RETINAL_DISTANCE, RETINAL_LOCATION, RETINAL_SIZE, SLOPE, TEXT, TOKEN, TYPE, VISIBLE
Constructor and Description |
---|
DefaultVisualPropertyHandler() |
Modifier and Type | Method and Description |
---|---|
Color[] |
asColors(java.lang.Object object) |
Dimension2D |
asDimension(java.lang.Object object) |
Point2D |
asPoint(java.lang.Object object)
transforms an array of doubles into a point2d
|
Color[] |
getColors(ISimulationObject realObject) |
double |
getRetinalDistance(ISimulationObject realObject) |
Point2D |
getRetinalLocation(ISimulationObject realObject) |
Dimension2D |
getRetinalSize(ISimulationObject realObject) |
double |
getSlope(ISimulationObject realObject) |
java.lang.String |
getText(ISimulationObject realObject) |
java.lang.String |
getToken(ISimulationObject realObject) |
java.lang.String[] |
getTypes(ISimulationObject realObject) |
boolean |
hasModality(ISensoryObject sensoryObject) |
boolean |
isVisible(ISimulationObject realObject) |
check, getBoolean, getDouble, getDoubles, getInt, getInts, getString, getStrings, hasProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBoolean, getDouble, getDoubles, getInt, getInts, getString, getStrings, hasProperty
public boolean isVisible(ISimulationObject realObject) throws UnknownPropertyNameException
isVisible
in interface IVisualPropertyHandler
UnknownPropertyNameException
public Point2D getRetinalLocation(ISimulationObject realObject) throws UnknownPropertyNameException
getRetinalLocation
in interface IVisualPropertyHandler
UnknownPropertyNameException
public double getRetinalDistance(ISimulationObject realObject) throws UnknownPropertyNameException
getRetinalDistance
in interface IVisualPropertyHandler
UnknownPropertyNameException
public Dimension2D getRetinalSize(ISimulationObject realObject) throws UnknownPropertyNameException
getRetinalSize
in interface IVisualPropertyHandler
UnknownPropertyNameException
public Color[] getColors(ISimulationObject realObject) throws UnknownPropertyNameException
getColors
in interface IVisualPropertyHandler
UnknownPropertyNameException
public java.lang.String[] getTypes(ISimulationObject realObject) throws UnknownPropertyNameException
getTypes
in interface IVisualPropertyHandler
UnknownPropertyNameException
public java.lang.String getToken(ISimulationObject realObject) throws UnknownPropertyNameException
getToken
in interface IVisualPropertyHandler
UnknownPropertyNameException
public java.lang.String getText(ISimulationObject realObject) throws UnknownPropertyNameException
getText
in interface IVisualPropertyHandler
UnknownPropertyNameException
public Point2D asPoint(java.lang.Object object) throws java.lang.IllegalArgumentException
IVisualPropertyHandler
asPoint
in interface IVisualPropertyHandler
java.lang.IllegalArgumentException
public Dimension2D asDimension(java.lang.Object object) throws java.lang.IllegalArgumentException
asDimension
in interface IVisualPropertyHandler
java.lang.IllegalArgumentException
public Color[] asColors(java.lang.Object object) throws java.lang.IllegalArgumentException
asColors
in interface IVisualPropertyHandler
java.lang.IllegalArgumentException
public double getSlope(ISimulationObject realObject) throws UnknownPropertyNameException
getSlope
in interface IVisualPropertyHandler
UnknownPropertyNameException
public boolean hasModality(ISensoryObject sensoryObject)
hasModality
in interface IModalityPropertyHandler
org.commonreality.modalities.IModalityPropertyHandler#hasModality(java.lang.String,
org.commonreality.object.ISensoryObject)