Example usage for org.jfree.io SerialUtilities readShape

List of usage examples for org.jfree.io SerialUtilities readShape

Introduction

In this page you can find the example usage for org.jfree.io SerialUtilities readShape.

Prototype

public static Shape readShape(final ObjectInputStream stream) throws IOException, ClassNotFoundException 

Source Link

Document

Reads a Shape object that has been serialised by the #writeShape(Shape,ObjectOutputStream) method.

Usage

From source file:net.sf.maltcms.chromaui.annotations.XYSelectableShapeAnnotation.java

/**
 * Provides serialization support./*from   ww  w.java 2  s .  com*/
 *
 * @param stream the input stream.
 *
 * @throws IOException if there is an I/O error.
 * @throws ClassNotFoundException if there is a classpath problem.
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.s = SerialUtilities.readShape(stream);
    this.stroke = SerialUtilities.readStroke(stream);
    this.outline = SerialUtilities.readPaint(stream);
    this.highlight = SerialUtilities.readPaint(stream);
    this.active = stream.readBoolean();
}

From source file:org.pentaho.plugin.jfreereport.reportcharts.backport.XYDotRenderer.java

/**
 * Provides serialization support./* w  ww . j  av  a2s. c o  m*/
 *
 * @param stream the input stream.
 * @throws IOException            if there is an I/O error.
 * @throws ClassNotFoundException if there is a classpath problem.
 */
private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.legendShape = SerialUtilities.readShape(stream);
}

From source file:org.trade.ui.chart.renderer.PivotRenderer.java

/**
 * Provides serialization support.//from  w ww.  j  a va  2  s  . c  o  m
 * 
 * @param stream
 *            the input stream.
 * 
 * 
 * 
 * @throws IOException
 *             if there is an I/O error. * @throws ClassNotFoundException if
 *             there is a classpath problem.
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.legendShape = SerialUtilities.readShape(stream);
}

From source file:msi.gama.outputs.layers.charts.StandardXYItemRenderer.java

/**
 * Provides serialization support./*w  w w.  j a v  a 2s  .  co  m*/
 *
 * @param stream
 *            the input stream.
 *
 * @throws IOException
 *             if there is an I/O error.
 * @throws ClassNotFoundException
 *             if there is a classpath problem.
 */
private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.legendLine = SerialUtilities.readShape(stream);
}

From source file:edu.dlnu.liuwenpeng.render.NewXYBarRenderer.java

/**    
* Provides serialization support.    /* ww  w.j  a v a  2s .com*/
*    
 * @param stream  the input stream.    
 *    
 * @throws IOException  if there is an I/O error.    
 * @throws ClassNotFoundException  if there is a classpath problem.    
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.legendBar = SerialUtilities.readShape(stream);
}

From source file:edu.dlnu.liuwenpeng.render.XYLineAndShapeRenderer.java

/**    
 * Provides serialization support.    /*from  ww  w. j  a  v a  2  s .  c  o  m*/
 *    
 * @param stream  the input stream.    
 *    
 * @throws IOException  if there is an I/O error.    
 * @throws ClassNotFoundException  if there is a classpath problem.    
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();
    this.legendLine = SerialUtilities.readShape(stream);
}

From source file:genlab.gui.jfreechart.EnhancedSpiderWebPlot.java

/**
 * Provides serialization support./* www . j  av a2 s. c  o m*/
 *
 * @param stream  the input stream.
 *
 * @throws IOException  if there is an I/O error.
 * @throws ClassNotFoundException  if there is a classpath problem.
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    this.legendItemShape = SerialUtilities.readShape(stream);
    this.seriesPaint = SerialUtilities.readPaint(stream);
    this.baseSeriesPaint = SerialUtilities.readPaint(stream);
    this.seriesOutlinePaint = SerialUtilities.readPaint(stream);
    this.baseSeriesOutlinePaint = SerialUtilities.readPaint(stream);
    this.seriesOutlineStroke = SerialUtilities.readStroke(stream);
    this.baseSeriesOutlineStroke = SerialUtilities.readStroke(stream);
    this.labelPaint = SerialUtilities.readPaint(stream);
    this.axisLinePaint = SerialUtilities.readPaint(stream);
    this.axisLineStroke = SerialUtilities.readStroke(stream);
    if (this.dataset != null) {
        this.dataset.addChangeListener(this);
    }
}

From source file:KIDLYAbstractRenderer.java

/**
 * Provides serialization support.//from w  ww  . ja  v a2 s. c  o  m
 *
 * @param stream  the input stream.
 *
 * @throws IOException  if there is an I/O error.
 * @throws ClassNotFoundException  if there is a classpath problem.
 */
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {

    stream.defaultReadObject();
    this.paint = SerialUtilities.readPaint(stream);
    this.basePaint = SerialUtilities.readPaint(stream);
    this.fillPaint = SerialUtilities.readPaint(stream);
    this.baseFillPaint = SerialUtilities.readPaint(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.baseOutlinePaint = SerialUtilities.readPaint(stream);
    this.stroke = SerialUtilities.readStroke(stream);
    this.baseStroke = SerialUtilities.readStroke(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.baseOutlineStroke = SerialUtilities.readStroke(stream);
    this.shape = SerialUtilities.readShape(stream);
    this.baseShape = SerialUtilities.readShape(stream);
    this.itemLabelPaint = SerialUtilities.readPaint(stream);
    this.baseItemLabelPaint = SerialUtilities.readPaint(stream);
    this.baseLegendShape = SerialUtilities.readShape(stream);
    this.baseLegendTextPaint = SerialUtilities.readPaint(stream);

    // listeners are not restored automatically, but storage must be
    // provided...
    this.listenerList = new EventListenerList();

}