ilog.cpl.graphic
Class IlpRectSAXInfo

java.lang.Object
  extended by ilog.cpl.graphic.IlpRectSAXInfo
All Implemented Interfaces:
IlpSAXSerializable
Direct Known Subclasses:
IlpRelativeRectSAXInfo

public class IlpRectSAXInfo
extends Object
implements IlpSAXSerializable

XML serialization class for IlpRect.

This class reads and writes the following format:

<x>FFF</x> <y>FFF</y> <width>FFF</width> <height>FFF</height> where FFF stands for a floating number (a float). The order between the elements is not taken into account.
If an element is missing, it is considered as being 0.0.

Since:
JTGO 3.0

Nested Class Summary
static class IlpRectSAXInfo.IlpSAXRectHandler
           
 
Field Summary
 
Fields inherited from interface ilog.cpl.storage.IlpSAXSerializable
EMPTY_ATTRS
 
Constructor Summary
IlpRectSAXInfo()
           
 
Method Summary
 IlpSAXAttributeValueHandler getSAXHandler()
          Returns a SAX handler capable of reading the attribute.
 void output(Object value, IlpTypeConverter typeConverter, ContentHandler outputHandler)
          Outputs the value to an SAX ContentHandler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlpRectSAXInfo

public IlpRectSAXInfo()
Method Detail

getSAXHandler

public IlpSAXAttributeValueHandler getSAXHandler()
Returns a SAX handler capable of reading the attribute. The returned SAX handler should be a new one each time this method is called or there should be at least one instance for each thread.

Specified by:
getSAXHandler in interface IlpSAXSerializable
Returns:
A handler for SAX events.
Internal method or field: do not use!

output

public void output(Object value,
                   IlpTypeConverter typeConverter,
                   ContentHandler outputHandler)
            throws SAXException
Outputs the value to an SAX ContentHandler. The method translates the object as SAX ContentHandler method calls.

Specified by:
output in interface IlpSAXSerializable
Parameters:
value - The object to output.
typeConverter - The type converter that may be needed to translate values to strings.
outputHandler - The SAX ContentHandler used by this method.
Throws:
SAXException
See Also:
IlpTypeConverter.createStringValue(Class,Object)
Internal method or field: do not use!


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.