Java Code Examples for org.jfree.io.SerialUtilities#readShape()

The following examples show how to use org.jfree.io.SerialUtilities#readShape() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpiderWebPlot.java    From buffer_bci with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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);
    }
}
 
Example 2
Source File: PiePlot.java    From SIMVA-SoS with Apache License 2.0 6 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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.sectionPaint = SerialUtilities.readPaint(stream);
    this.baseSectionPaint = SerialUtilities.readPaint(stream);
    this.sectionOutlinePaint = SerialUtilities.readPaint(stream);
    this.baseSectionOutlinePaint = SerialUtilities.readPaint(stream);
    this.sectionOutlineStroke = SerialUtilities.readStroke(stream);
    this.baseSectionOutlineStroke = SerialUtilities.readStroke(stream);
    this.shadowPaint = SerialUtilities.readPaint(stream);
    this.labelPaint = SerialUtilities.readPaint(stream);
    this.labelBackgroundPaint = SerialUtilities.readPaint(stream);
    this.labelOutlinePaint = SerialUtilities.readPaint(stream);
    this.labelOutlineStroke = SerialUtilities.readStroke(stream);
    this.labelShadowPaint = SerialUtilities.readPaint(stream);
    this.labelLinkPaint = SerialUtilities.readPaint(stream);
    this.labelLinkStroke = SerialUtilities.readStroke(stream);
    this.legendItemShape = SerialUtilities.readShape(stream);
}
 
Example 3
Source File: LegendItem.java    From openstock with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the input stream (<code>null</code> not permitted).
 *
 * @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.attributedLabel = SerialUtilities.readAttributedString(stream);
    this.shape = SerialUtilities.readShape(stream);
    this.fillPaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.line = SerialUtilities.readShape(stream);
    this.lineStroke = SerialUtilities.readStroke(stream);
    this.linePaint = SerialUtilities.readPaint(stream);
    this.labelPaint = SerialUtilities.readPaint(stream);
}
 
Example 4
Source File: AbstractRenderer.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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();

}
 
Example 5
Source File: DefaultDrawingSupplier.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Restores a serialized object.
 *
 * @param stream  the input stream.
 *
 * @throws IOException if there is an I/O problem.
 * @throws ClassNotFoundException if there is a problem loading a class.
 */
private void readObject(ObjectInputStream stream) 
    throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    int paintCount = stream.readInt();
    this.paintSequence = new Paint[paintCount];
    for (int i = 0; i < paintCount; i++) {
        this.paintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int outlinePaintCount = stream.readInt();
    this.outlinePaintSequence = new Paint[outlinePaintCount];
    for (int i = 0; i < outlinePaintCount; i++) {
        this.outlinePaintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int strokeCount = stream.readInt();
    this.strokeSequence = new Stroke[strokeCount];
    for (int i = 0; i < strokeCount; i++) {
        this.strokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int outlineStrokeCount = stream.readInt();
    this.outlineStrokeSequence = new Stroke[outlineStrokeCount];
    for (int i = 0; i < outlineStrokeCount; i++) {
        this.outlineStrokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int shapeCount = stream.readInt();
    this.shapeSequence = new Shape[shapeCount];
    for (int i = 0; i < shapeCount; i++) {
        this.shapeSequence[i] = SerialUtilities.readShape(stream);
    }

}
 
Example 6
Source File: DefaultDrawingSupplier.java    From ccu-historian with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Restores a serialized object.
 *
 * @param stream  the input stream.
 *
 * @throws IOException if there is an I/O problem.
 * @throws ClassNotFoundException if there is a problem loading a class.
 */
private void readObject(ObjectInputStream stream)
    throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    int paintCount = stream.readInt();
    this.paintSequence = new Paint[paintCount];
    for (int i = 0; i < paintCount; i++) {
        this.paintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int outlinePaintCount = stream.readInt();
    this.outlinePaintSequence = new Paint[outlinePaintCount];
    for (int i = 0; i < outlinePaintCount; i++) {
        this.outlinePaintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int strokeCount = stream.readInt();
    this.strokeSequence = new Stroke[strokeCount];
    for (int i = 0; i < strokeCount; i++) {
        this.strokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int outlineStrokeCount = stream.readInt();
    this.outlineStrokeSequence = new Stroke[outlineStrokeCount];
    for (int i = 0; i < outlineStrokeCount; i++) {
        this.outlineStrokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int shapeCount = stream.readInt();
    this.shapeSequence = new Shape[shapeCount];
    for (int i = 0; i < shapeCount; i++) {
        this.shapeSequence[i] = SerialUtilities.readShape(stream);
    }

}
 
Example 7
Source File: LegendItem.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the input stream (<code>null</code> not permitted).
 *
 * @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.attributedLabel = SerialUtilities.readAttributedString(stream);
    this.shape = SerialUtilities.readShape(stream);
    this.fillPaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.line = SerialUtilities.readShape(stream);
    this.lineStroke = SerialUtilities.readStroke(stream);
    this.linePaint = SerialUtilities.readPaint(stream);
    this.labelPaint = SerialUtilities.readPaint(stream);
}
 
Example 8
Source File: DefaultDrawingSupplier.java    From buffer_bci with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Restores a serialized object.
 *
 * @param stream  the input stream.
 *
 * @throws IOException if there is an I/O problem.
 * @throws ClassNotFoundException if there is a problem loading a class.
 */
private void readObject(ObjectInputStream stream)
    throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    int paintCount = stream.readInt();
    this.paintSequence = new Paint[paintCount];
    for (int i = 0; i < paintCount; i++) {
        this.paintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int outlinePaintCount = stream.readInt();
    this.outlinePaintSequence = new Paint[outlinePaintCount];
    for (int i = 0; i < outlinePaintCount; i++) {
        this.outlinePaintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int strokeCount = stream.readInt();
    this.strokeSequence = new Stroke[strokeCount];
    for (int i = 0; i < strokeCount; i++) {
        this.strokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int outlineStrokeCount = stream.readInt();
    this.outlineStrokeSequence = new Stroke[outlineStrokeCount];
    for (int i = 0; i < outlineStrokeCount; i++) {
        this.outlineStrokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int shapeCount = stream.readInt();
    this.shapeSequence = new Shape[shapeCount];
    for (int i = 0; i < shapeCount; i++) {
        this.shapeSequence[i] = SerialUtilities.readShape(stream);
    }

}
 
Example 9
Source File: DefaultDrawingSupplier.java    From ECG-Viewer with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Restores a serialized object.
 *
 * @param stream  the input stream.
 *
 * @throws IOException if there is an I/O problem.
 * @throws ClassNotFoundException if there is a problem loading a class.
 */
private void readObject(ObjectInputStream stream)
    throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    int paintCount = stream.readInt();
    this.paintSequence = new Paint[paintCount];
    for (int i = 0; i < paintCount; i++) {
        this.paintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int outlinePaintCount = stream.readInt();
    this.outlinePaintSequence = new Paint[outlinePaintCount];
    for (int i = 0; i < outlinePaintCount; i++) {
        this.outlinePaintSequence[i] = SerialUtilities.readPaint(stream);
    }

    int strokeCount = stream.readInt();
    this.strokeSequence = new Stroke[strokeCount];
    for (int i = 0; i < strokeCount; i++) {
        this.strokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int outlineStrokeCount = stream.readInt();
    this.outlineStrokeSequence = new Stroke[outlineStrokeCount];
    for (int i = 0; i < outlineStrokeCount; i++) {
        this.outlineStrokeSequence[i] = SerialUtilities.readStroke(stream);
    }

    int shapeCount = stream.readInt();
    this.shapeSequence = new Shape[shapeCount];
    for (int i = 0; i < shapeCount; i++) {
        this.shapeSequence[i] = SerialUtilities.readShape(stream);
    }

}
 
Example 10
Source File: LegendItem.java    From opensim-gui with Apache License 2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the input stream (<code>null</code> not permitted).
 *
 * @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.attributedLabel = SerialUtilities.readAttributedString(stream);
    this.shape = SerialUtilities.readShape(stream);
    this.fillPaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.line = SerialUtilities.readShape(stream);
    this.lineStroke = SerialUtilities.readStroke(stream);
    this.linePaint = SerialUtilities.readPaint(stream);
}
 
Example 11
Source File: XYDifferenceRenderer.java    From opensim-gui with Apache License 2.0 3 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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.positivePaint = SerialUtilities.readPaint(stream);
    this.negativePaint = SerialUtilities.readPaint(stream);
    this.legendLine = SerialUtilities.readShape(stream);
}
 
Example 12
Source File: XYDifferenceRenderer.java    From openstock with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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.positivePaint = SerialUtilities.readPaint(stream);
    this.negativePaint = SerialUtilities.readPaint(stream);
    this.legendLine = SerialUtilities.readShape(stream);
}
 
Example 13
Source File: DefaultPolarItemRenderer.java    From buffer_bci with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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);
    this.fillComposite = SerialUtilities.readComposite(stream);
}
 
Example 14
Source File: MultiplePiePlot.java    From openstock with GNU General Public License v3.0 3 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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.aggregatedItemsPaint = SerialUtilities.readPaint(stream);
    this.legendItemShape = SerialUtilities.readShape(stream);
    this.sectionPaints = new HashMap();
}
 
Example 15
Source File: XYAreaRenderer2.java    From openstock with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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.legendArea = SerialUtilities.readShape(stream);
}
 
Example 16
Source File: AbstractBlock.java    From ccu-historian with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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.bounds = (Rectangle2D) SerialUtilities.readShape(stream);
}
 
Example 17
Source File: XYLineAndShapeRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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);
}
 
Example 18
Source File: XYBarRenderer.java    From opensim-gui with Apache License 2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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);
}
 
Example 19
Source File: XYDotRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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);
}
 
Example 20
Source File: StandardXYItemRenderer.java    From buffer_bci with GNU General Public License v3.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @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);
}