public Object getPropertyValue ( Object propertyId ) { if ( XPOS_PROP . equals ( propertyId ) ) { return Integer . toString ( location . x ) ; } if ( YPOS_PROP . equals ( propertyId ) ) { return Integer . toString ( location . y ) ; } if ( HEIGHT_PROP . equals ( propertyId ) ) { return Integer . toString ( size . height ) ; } if ( WIDTH_PROP . equals ( propertyId ) ) { return Integer . toString ( size . width ) ; } return null ; }
Return the property value for the given propertyId or null .