Example usage for org.jfree.io SerialUtilities writeStroke

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

Introduction

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

Prototype

public static void writeStroke(final Stroke stroke, final ObjectOutputStream stream) throws IOException 

Source Link

Document

Serialises a Stroke object.

Usage

From source file:edu.cuny.jfree.chart.annotations.CategoryIntervalAnnotation.java

private void writeObject(final ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();/*  w w w. j a v  a  2 s.c  o  m*/
    SerialUtilities.writePaint(paint, stream);
    SerialUtilities.writeStroke(stroke, stream);
}

From source file:edu.scripps.fl.curves.plot.MyXYErrorRenderer.java

private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();/*from   ww  w  . j a v  a  2 s .c om*/
    SerialUtilities.writePaint(errorPaint, stream);
    SerialUtilities.writeStroke(errorStroke, stream);
}

From source file:org.jfree.experimental.chart.plot.dial.DialCap.java

/**
 * Provides serialization support./*from w  ww.ja  v a2 s .  c  o m*/
 *
 * @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.fillPaint, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writeStroke(this.outlineStroke, stream);
}

From source file:org.jfree.experimental.chart.plot.dial.SimpleDialFrame.java

/**
 * Provides serialization support.//from   w w  w  .  j a v  a2 s .c o m
 *
 * @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.backgroundPaint, stream);
    SerialUtilities.writePaint(this.foregroundPaint, stream);
    SerialUtilities.writeStroke(this.stroke, stream);
}

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

/**
 * Provides serialization support.//from   w  ww  . j  a  v a 2  s  .co  m
 *
 * @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.s, stream);
    SerialUtilities.writeStroke(this.stroke, stream);
    SerialUtilities.writePaint(this.outline, stream);
    SerialUtilities.writePaint(this.highlight, stream);
    stream.writeBoolean(this.active);
}

From source file:vteaexploration.XYPolygonAnnotation.java

/**
 * Provides serialization support.//from  ww w  .j  a va 2 s  . c om
 *
 * @param stream the output stream (null not permitted).
 *
 * @throws IOException if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeStroke(this.stroke, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writePaint(this.fillPaint, stream);
}

From source file:org.jfree.experimental.chart.plot.dial.DialValueIndicator.java

/**
 * Provides serialization support./* www. j a v a2 s . c  o m*/
 *
 * @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.paint, stream);
    SerialUtilities.writePaint(this.backgroundPaint, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writeStroke(this.outlineStroke, stream);
}

From source file:userinterface.graph.PrismErrorRenderer.java

/**
 * Provides serialization support./*from   ww w  .  j ava2 s.co  m*/
 *
 * @param stream  the output stream.
 *
 * @throws IOException  if there is an I/O error.
 */
private void writeObject(ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeStroke(this.errorStroke, stream);
}

From source file:extern.AsymmetricStatisticalBarRenderer.java

/**
 * Provides serialization support./* w ww. j ava  2  s  . com*/
 *
 * @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.errorIndicatorPaint, stream);
    SerialUtilities.writeStroke(this.errorIndicatorStroke, stream);
}

From source file:org.proteosuite.FastScatterPlot.java

/**
 * Provides serialisation support.//from   w  w  w .  jav  a 2  s  .c  o  m
 *
 * @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.paint, stream);
    SerialUtilities.writeStroke(this.domainGridlineStroke, stream);
    SerialUtilities.writePaint(this.domainGridlinePaint, stream);
    SerialUtilities.writeStroke(this.rangeGridlineStroke, stream);
    SerialUtilities.writePaint(this.rangeGridlinePaint, stream);
}