Packagecom.yworks.support
Classpublic class YRectangleTypeConverter
InheritanceYRectangleTypeConverter Inheritance Object
Implements ITypeConverter



Public Methods
 MethodDefined By
  
canConvertFrom(object:Object):Boolean
Returns, if the given object can be converted back to an instance of the default Class type of this implementation.
YRectangleTypeConverter
  
canConvertTo(object:Object, type:Class):Boolean
Returns, if the given object can be converted in an instance of the given class type.
YRectangleTypeConverter
  
convertFrom(object:Object):Object
Converts the given object back to an instance of the default Class type of this implementation.
YRectangleTypeConverter
  
convertTo(object:Object, type:Class):Object
Converts the given object in an instance of the given class type and return this instance.
YRectangleTypeConverter
Method Detail
canConvertFrom()method
public function canConvertFrom(object:Object):Boolean

Returns, if the given object can be converted back to an instance of the default Class type of this implementation.

Parameters

object:ObjectObject which shall be converted back.

Returns
Boolean
canConvertTo()method 
public function canConvertTo(object:Object, type:Class):Boolean

Returns, if the given object can be converted in an instance of the given class type.

Parameters

object:ObjectObject which shall be converted.
 
type:ClassClass type to which the given object shall be converted.

Returns
Boolean
convertFrom()method 
public function convertFrom(object:Object):Object

Converts the given object back to an instance of the default Class type of this implementation.

Parameters

object:Object — The Object to convert back.

Returns
Object — The back converted object.
convertTo()method 
public function convertTo(object:Object, type:Class):Object

Converts the given object in an instance of the given class type and return this instance.

Parameters

object:ObjectObject to convert.
 
type:ClassClass type to convert to.

Returns
Object — The converted object.