Package org.jfree.serializer

Examples of org.jfree.serializer.SerializerHelper


  private void writeObject(final ObjectOutputStream out)
     throws IOException
  {
    out.defaultWriteObject();
    final SerializerHelper helper = SerializerHelper.getInstance();
    helper.writeObject(scaleValuePaint, out);
    helper.writeObject(rangePaint, out);
    helper.writeObject(fillPaint, out);
    helper.writeObject(outlineStroke, out);
    helper.writeObject(defaultShape, out);
    helper.writeObject(tickMarkPaint, out);
    helper.writeObject(borderPaint, out);
    final int size = shapes.size();
    out.writeInt(size);
    for (int i = 0; i < size; i++)
    {
      final Shape s = shapes.getShape(i);
      helper.writeObject(s, out);
    }
  }
View Full Code Here


private void readObject(final ObjectInputStream in)
     throws IOException, ClassNotFoundException
{
   in.defaultReadObject();
   final SerializerHelper helper = SerializerHelper.getInstance();
   scaleValuePaint = (Paint) helper.readObject(in);
   rangePaint = (Paint) helper.readObject(in);
   fillPaint = (Paint) helper.readObject(in);
   outlineStroke = (Stroke) helper.readObject(in);
   defaultShape = (Shape) helper.readObject(in);
   tickMarkPaint = (Paint) helper.readObject(in);
   borderPaint = (Paint) helper.readObject(in);
   shapes = new ShapeList();

   final int size = in.readInt();
   for (int i = 0; i < size; i++)
   {
     final Shape s = (Shape) helper.readObject(in);
     shapes.setShape(i, s);
   }

}
View Full Code Here

  private void writeObject(ObjectOutputStream out)
     throws IOException
  {
    out.defaultWriteObject();
    SerializerHelper helper = SerializerHelper.getInstance();
    helper.writeObject(scaleValuePaint, out);
    helper.writeObject(rangePaint, out);
    helper.writeObject(fillPaint, out);
    helper.writeObject(outlineStroke, out);
    helper.writeObject(defaultShape, out);
    helper.writeObject(tickMarkPaint, out);
    helper.writeObject(borderPaint, out);
    final int size = shapes.size();
    out.writeInt(size);
    for (int i = 0; i < size; i++)
    {
      final Shape s = shapes.getShape(i);
      helper.writeObject(s, out);
    }
  }
View Full Code Here

private void readObject(ObjectInputStream in)
     throws IOException, ClassNotFoundException
{
   in.defaultReadObject();
   SerializerHelper helper = SerializerHelper.getInstance();
   scaleValuePaint = (Paint) helper.readObject(in);
   rangePaint = (Paint) helper.readObject(in);
   fillPaint = (Paint) helper.readObject(in);
   outlineStroke = (Stroke) helper.readObject(in);
   defaultShape = (Shape) helper.readObject(in);
   tickMarkPaint = (Paint) helper.readObject(in);
   borderPaint = (Paint) helper.readObject(in);
   shapes = new ShapeList();

   int size = in.readInt();
   for (int i = 0; i < size; i++)
   {
     final Shape s = (Shape) helper.readObject(in);
     shapes.setShape(i, s);
   }

}
View Full Code Here

TOP

Related Classes of org.jfree.serializer.SerializerHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.