Java Code Examples for org.jfree.chart.util.SerialUtilities#writeShape()

The following examples show how to use org.jfree.chart.util.SerialUtilities#writeShape() . 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: Chart_15_PiePlot_t.java    From coming with MIT License 6 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writePaint(this.baseSectionPaint, stream);
    SerialUtilities.writePaint(this.baseSectionOutlinePaint, stream);
    SerialUtilities.writeStroke(this.baseSectionOutlineStroke, stream);
    SerialUtilities.writePaint(this.shadowPaint, stream);
    SerialUtilities.writePaint(this.labelPaint, stream);
    SerialUtilities.writePaint(this.labelBackgroundPaint, stream);
    SerialUtilities.writePaint(this.labelOutlinePaint, stream);
    SerialUtilities.writeStroke(this.labelOutlineStroke, stream);
    SerialUtilities.writePaint(this.labelShadowPaint, stream);
    SerialUtilities.writePaint(this.labelLinkPaint, stream);
    SerialUtilities.writeStroke(this.labelLinkStroke, stream);
    SerialUtilities.writeShape(this.legendItemShape, stream);
}
 
Example 2
Source File: Chart_15_PiePlot_s.java    From coming with MIT License 6 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writePaint(this.baseSectionPaint, stream);
    SerialUtilities.writePaint(this.baseSectionOutlinePaint, stream);
    SerialUtilities.writeStroke(this.baseSectionOutlineStroke, stream);
    SerialUtilities.writePaint(this.shadowPaint, stream);
    SerialUtilities.writePaint(this.labelPaint, stream);
    SerialUtilities.writePaint(this.labelBackgroundPaint, stream);
    SerialUtilities.writePaint(this.labelOutlinePaint, stream);
    SerialUtilities.writeStroke(this.labelOutlineStroke, stream);
    SerialUtilities.writePaint(this.labelShadowPaint, stream);
    SerialUtilities.writePaint(this.labelLinkPaint, stream);
    SerialUtilities.writeStroke(this.labelLinkStroke, stream);
    SerialUtilities.writeShape(this.legendItemShape, stream);
}
 
Example 3
Source File: PiePlot.java    From astor with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writePaint(this.baseSectionPaint, stream);
    SerialUtilities.writePaint(this.baseSectionOutlinePaint, stream);
    SerialUtilities.writeStroke(this.baseSectionOutlineStroke, stream);
    SerialUtilities.writePaint(this.shadowPaint, stream);
    SerialUtilities.writePaint(this.labelPaint, stream);
    SerialUtilities.writePaint(this.labelBackgroundPaint, stream);
    SerialUtilities.writePaint(this.labelOutlinePaint, stream);
    SerialUtilities.writeStroke(this.labelOutlineStroke, stream);
    SerialUtilities.writePaint(this.labelShadowPaint, stream);
    SerialUtilities.writePaint(this.labelLinkPaint, stream);
    SerialUtilities.writeStroke(this.labelLinkStroke, stream);
    SerialUtilities.writeShape(this.legendItemShape, stream);
}
 
Example 4
Source File: DefaultDrawingSupplier.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Handles serialization.
 *
 * @param stream  the output stream.
 *
 * @throws IOException if there is an I/O problem.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();

    int paintCount = this.paintSequence.length;
    stream.writeInt(paintCount);
    for (int i = 0; i < paintCount; i++) {
        SerialUtilities.writePaint(this.paintSequence[i], stream);
    }

    int outlinePaintCount = this.outlinePaintSequence.length;
    stream.writeInt(outlinePaintCount);
    for (int i = 0; i < outlinePaintCount; i++) {
        SerialUtilities.writePaint(this.outlinePaintSequence[i], stream);
    }

    int strokeCount = this.strokeSequence.length;
    stream.writeInt(strokeCount);
    for (int i = 0; i < strokeCount; i++) {
        SerialUtilities.writeStroke(this.strokeSequence[i], stream);
    }

    int outlineStrokeCount = this.outlineStrokeSequence.length;
    stream.writeInt(outlineStrokeCount);
    for (int i = 0; i < outlineStrokeCount; i++) {
        SerialUtilities.writeStroke(this.outlineStrokeSequence[i], stream);
    }

    int shapeCount = this.shapeSequence.length;
    stream.writeInt(shapeCount);
    for (int i = 0; i < shapeCount; i++) {
        SerialUtilities.writeShape(this.shapeSequence[i], stream);
    }

}
 
Example 5
Source File: SpiderWebPlot.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();

    SerialUtilities.writeShape(this.legendItemShape, stream);
    SerialUtilities.writePaint(this.seriesPaint, stream);
    SerialUtilities.writePaint(this.baseSeriesPaint, stream);
    SerialUtilities.writePaint(this.seriesOutlinePaint, stream);
    SerialUtilities.writePaint(this.baseSeriesOutlinePaint, stream);
    SerialUtilities.writeStroke(this.seriesOutlineStroke, stream);
    SerialUtilities.writeStroke(this.baseSeriesOutlineStroke, stream);
    SerialUtilities.writePaint(this.labelPaint, stream);
    SerialUtilities.writePaint(this.axisLinePaint, stream);
    SerialUtilities.writeStroke(this.axisLineStroke, stream);
}
 
Example 6
Source File: LegendItem.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream (<code>null</code> not permitted).
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeAttributedString(this.attributedLabel, stream);
    SerialUtilities.writeShape(this.shape, stream);
    SerialUtilities.writePaint(this.fillPaint, stream);
    SerialUtilities.writeStroke(this.outlineStroke, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writeShape(this.line, stream);
    SerialUtilities.writeStroke(this.lineStroke, stream);
    SerialUtilities.writePaint(this.linePaint, stream);
}
 
Example 7
Source File: DefaultDrawingSupplier.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Handles serialization.
 *
 * @param stream  the output stream.
 *
 * @throws IOException if there is an I/O problem.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();

    int paintCount = this.paintSequence.length;
    stream.writeInt(paintCount);
    for (int i = 0; i < paintCount; i++) {
        SerialUtilities.writePaint(this.paintSequence[i], stream);
    }

    int outlinePaintCount = this.outlinePaintSequence.length;
    stream.writeInt(outlinePaintCount);
    for (int i = 0; i < outlinePaintCount; i++) {
        SerialUtilities.writePaint(this.outlinePaintSequence[i], stream);
    }

    int strokeCount = this.strokeSequence.length;
    stream.writeInt(strokeCount);
    for (int i = 0; i < strokeCount; i++) {
        SerialUtilities.writeStroke(this.strokeSequence[i], stream);
    }

    int outlineStrokeCount = this.outlineStrokeSequence.length;
    stream.writeInt(outlineStrokeCount);
    for (int i = 0; i < outlineStrokeCount; i++) {
        SerialUtilities.writeStroke(this.outlineStrokeSequence[i], stream);
    }

    int shapeCount = this.shapeSequence.length;
    stream.writeInt(shapeCount);
    for (int i = 0; i < shapeCount; i++) {
        SerialUtilities.writeShape(this.shapeSequence[i], stream);
    }

}
 
Example 8
Source File: XYShapeAnnotation.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.shape, stream);
    SerialUtilities.writeStroke(this.stroke, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writePaint(this.fillPaint, stream);
}
 
Example 9
Source File: LegendGraphic.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.shape, stream);
    SerialUtilities.writePaint(this.fillPaint, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writeStroke(this.outlineStroke, stream);
    SerialUtilities.writeShape(this.line, stream);
    SerialUtilities.writePaint(this.linePaint, stream);
    SerialUtilities.writeStroke(this.lineStroke, stream);
}
 
Example 10
Source File: LegendGraphic.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.shape, stream);
    SerialUtilities.writePaint(this.fillPaint, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writeStroke(this.outlineStroke, stream);
    SerialUtilities.writeShape(this.line, stream);
    SerialUtilities.writePaint(this.linePaint, stream);
    SerialUtilities.writeStroke(this.lineStroke, stream);
}
 
Example 11
Source File: AbstractRenderer.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {

    stream.defaultWriteObject();
    SerialUtilities.writePaint(this.basePaint, stream);
    SerialUtilities.writePaint(this.baseFillPaint, stream);
    SerialUtilities.writePaint(this.baseOutlinePaint, stream);
    SerialUtilities.writeStroke(this.baseStroke, stream);
    SerialUtilities.writeStroke(this.baseOutlineStroke, stream);
    SerialUtilities.writeShape(this.baseShape, stream);
    SerialUtilities.writePaint(this.baseItemLabelPaint, stream);

}
 
Example 12
Source File: PlotRenderingInfo.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.dataArea, stream);
    SerialUtilities.writeShape(this.plotArea, stream);
}
 
Example 13
Source File: ChartEntity.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.area, stream);
 }
 
Example 14
Source File: TitleEntity.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(getArea(), stream);
 }
 
Example 15
Source File: XYDotRenderer.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.legendShape, stream);
}
 
Example 16
Source File: XYBarRenderer.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.legendBar, stream);
}
 
Example 17
Source File: AxisEntity.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(getArea(), stream);
}
 
Example 18
Source File: XYAreaRenderer.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.legendArea, stream);
}
 
Example 19
Source File: ChartRenderingInfo.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.chartArea, stream);
}
 
Example 20
Source File: JFreeChartEntity.java    From astor with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Provides serialization support.
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(getArea(), stream);
 }