be.ac.vub.cocompose.eclipse.model.datatypes
Class PointPropertySource

java.lang.Object
  extended bybe.ac.vub.cocompose.eclipse.model.datatypes.PointPropertySource
All Implemented Interfaces:
IPropertySource

public class PointPropertySource
extends Object
implements IPropertySource

Eclipse point property source.

Since:
0.2.0
Version:
0.2.0, 12/12/2003
Author:
Dennis Wagelaar

Field Summary
static String ID_X
           
static String ID_Y
           
 
Constructor Summary
PointPropertySource(Point point)
          Creates a PointPropertySource.
 
Method Summary
 Object getEditableValue()
           
 IPropertyDescriptor[] getPropertyDescriptors()
           
 Object getPropertyValue(Object id)
          Gets the value of the given property.
 Point getValue()
          Gets the value of this property source.
 boolean isPropertySet(Object id)
           
 void resetPropertyValue(Object id)
           
 void setPropertyValue(Object id, Object value)
          Sets the value of the given property.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_X

public static final String ID_X
See Also:
Constant Field Values

ID_Y

public static final String ID_Y
See Also:
Constant Field Values
Constructor Detail

PointPropertySource

public PointPropertySource(Point point)
Creates a PointPropertySource.

Parameters:
point - - the subject point.
Method Detail

getEditableValue

public Object getEditableValue()
Specified by:
getEditableValue in interface IPropertySource
See Also:
IPropertySource.getEditableValue()

getPropertyDescriptors

public IPropertyDescriptor[] getPropertyDescriptors()
Specified by:
getPropertyDescriptors in interface IPropertySource
See Also:
IPropertySource.getPropertyDescriptors()

getPropertyValue

public Object getPropertyValue(Object id)
Gets the value of the given property.

Specified by:
getPropertyValue in interface IPropertySource
Parameters:
id - - the property id.
Returns:
the property value or null.
See Also:
IPropertySource.getPropertyValue(java.lang.Object)

isPropertySet

public boolean isPropertySet(Object id)
Specified by:
isPropertySet in interface IPropertySource
See Also:
IPropertySource.isPropertySet(java.lang.Object)

resetPropertyValue

public void resetPropertyValue(Object id)
Specified by:
resetPropertyValue in interface IPropertySource
See Also:
IPropertySource.resetPropertyValue(java.lang.Object)

setPropertyValue

public void setPropertyValue(Object id,
                             Object value)
Sets the value of the given property.

Specified by:
setPropertyValue in interface IPropertySource
Parameters:
id - - the property id.
value - - the new value for the property.
See Also:
IPropertySource.setPropertyValue(java.lang.Object, java.lang.Object)

getValue

public Point getValue()
Gets the value of this property source.

Returns:
the property value.

toString

public String toString()
See Also:
Object.toString()