public class IlpRectPositionBinding extends IlpAbstractPositionBinding<IlpRect>
IlpRect
and SDM x or y model
property of type Double
.IlpAbstractPositionBinding.PropertyName
IlpAbstractAttributeBinding.ConversionFailedException, IlpAbstractAttributeBinding.PropertyAlreadySetException, IlpAbstractAttributeBinding.Type
_attributeName, _attributeType, _bindingContext, _propertyName, _propertyType, _type
Constructor and Description |
---|
IlpRectPositionBinding(IlpAbstractPositionBinding.PropertyName propName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Double |
convertPositionToX(IlpRect posValue)
This method implements the conversion from the TGO position
attribute to the SDM x model property.
|
protected Double |
convertPositionToY(IlpRect posValue)
This method implements the conversion from the TGO position
attribute to the SDM y model property.
|
protected IlpRect |
convertXToPosition(Double value)
This method implements the conversion from the x SDM model
property to the TGO position attribute.
|
protected IlpRect |
convertYToPosition(Double value)
This method implements the conversion from the y SDM model
property to the TGO position attribute.
|
convertToAttribute, convertToProperty
equals, getAttributeName, getAttributeType, getBindingContext, getPropertyName, getPropertyType, getType, setAttributeName, setAttributeType, setBindingContext, setPropertyName, setPropertyType, setType, validate
public IlpRectPositionBinding(IlpAbstractPositionBinding.PropertyName propName)
propName
- Whether the x or y SDM model property is
boundprotected Double convertPositionToX(IlpRect posValue)
IlpAbstractPositionBinding
convertPositionToX
in class IlpAbstractPositionBinding<IlpRect>
posValue
- The TGO position attributeprotected Double convertPositionToY(IlpRect posValue)
IlpAbstractPositionBinding
convertPositionToY
in class IlpAbstractPositionBinding<IlpRect>
posValue
- The TGO position attributeprotected IlpRect convertXToPosition(Double value)
IlpAbstractPositionBinding
convertXToPosition
in class IlpAbstractPositionBinding<IlpRect>
value
- The SDM model property xprotected IlpRect convertYToPosition(Double value)
IlpAbstractPositionBinding
convertYToPosition
in class IlpAbstractPositionBinding<IlpRect>
value
- The SDM model property y© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.