cz.cuni.amis.pogamut.multi.communication.worldview.property
Class ColorProperty
java.lang.Object
cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty<Color>
cz.cuni.amis.pogamut.multi.communication.worldview.property.ColorProperty
- All Implemented Interfaces:
- ISharedProperty<Color>, Cloneable
public class ColorProperty
- extends AbstractSharedProperty<Color>
Implementation of the ISharedProperty interface for Color value type.
- Author:
- srlok
Method Summary |
ISharedProperty |
clone()
Must return an exact duplicate of this ISharedProperty, this will be used
to create old versions of SharedProperties in the worldView. |
protected Color |
cloneValue()
Every descendant must implement this by calling value.clone() or otherwise returning a new copy of value. |
Class |
getPropertyValueClass()
Returns class of the property value. |
Methods inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.property.AbstractSharedProperty |
createUpdateEvent, equals, getCompositeClass, getObjectId, getPropertyId, getValue, hashCode, isDirty, nullOverrides, setDirty, setValue |
ColorProperty
public ColorProperty(WorldObjectId objId,
String identifier,
Color value,
Class compositeClass)
ColorProperty
public ColorProperty(ColorProperty other)
clone
public ISharedProperty clone()
- Description copied from interface:
ISharedProperty
- Must return an exact duplicate of this ISharedProperty, this will be used
to create old versions of SharedProperties in the worldView.
- Specified by:
clone
in interface ISharedProperty<Color>
- Specified by:
clone
in class AbstractSharedProperty<Color>
- Returns:
getPropertyValueClass
public Class getPropertyValueClass()
- Description copied from interface:
ISharedProperty
- Returns class of the property value. Used to enforce value-class checks.
- Returns:
cloneValue
protected Color cloneValue()
- Description copied from class:
AbstractSharedProperty
- Every descendant must implement this by calling value.clone() or otherwise returning a new copy of value.
- Specified by:
cloneValue
in class AbstractSharedProperty<Color>
- Returns:
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.