Example usage for org.jfree.io SerialUtilities readStroke

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

Introduction

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

Prototype

public static Stroke readStroke(final ObjectInputStream stream) throws IOException, ClassNotFoundException 

Source Link

Document

Reads a Stroke object that has been serialised by the SerialUtilities#writeStroke(Stroke,ObjectOutputStream) method.

Usage

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

private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();/*from   www  . j ava 2s .  co  m*/
    paint = SerialUtilities.readPaint(stream);
    stroke = SerialUtilities.readStroke(stream);
}

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

private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();/*from   ww  w .  j  a  v  a2  s.  com*/
    errorPaint = SerialUtilities.readPaint(stream);
    errorStroke = SerialUtilities.readStroke(stream);
}

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

/**
 * Provides serialization support./*ww  w  .  jav 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.fillPaint = SerialUtilities.readPaint(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
}

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

/**
 * Provides serialization support./*from w w  w.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.backgroundPaint = SerialUtilities.readPaint(stream);
    this.foregroundPaint = SerialUtilities.readPaint(stream);
    this.stroke = SerialUtilities.readStroke(stream);
}

From source file:net.sf.maltcms.chromaui.annotations.XYSelectableShapeAnnotation.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.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:vteaexploration.XYPolygonAnnotation.java

/**
 * Provides serialization support.//w w  w  .j a v a2 s  . com
 *
 * @param stream the input stream (null 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.stroke = SerialUtilities.readStroke(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.fillPaint = SerialUtilities.readPaint(stream);
}

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

/**
 * Provides serialization support./*from   w w  w.  ja  v  a 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.paint = SerialUtilities.readPaint(stream);
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
}

From source file:userinterface.graph.PrismErrorRenderer.java

/**
 * Provides serialization support./*from w  w 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.errorStroke = SerialUtilities.readStroke(stream);
}

From source file:extern.AsymmetricStatisticalBarRenderer.java

/**
 * Provides serialization support./*from ww w.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.errorIndicatorPaint = SerialUtilities.readPaint(stream);
    this.errorIndicatorStroke = SerialUtilities.readStroke(stream);
}

From source file:org.proteosuite.FastScatterPlot.java

/**
 * Provides serialisation support./* w  w w .  jav a  2 s .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(ObjectInputStream stream) throws IOException, ClassNotFoundException {
    stream.defaultReadObject();

    this.paint = SerialUtilities.readPaint(stream);
    this.domainGridlineStroke = SerialUtilities.readStroke(stream);
    this.domainGridlinePaint = SerialUtilities.readPaint(stream);

    this.rangeGridlineStroke = SerialUtilities.readStroke(stream);
    this.rangeGridlinePaint = SerialUtilities.readPaint(stream);

    if (this.domainAxis != null) {
        this.domainAxis.addChangeListener(this);
    }

    if (this.rangeAxis != null) {
        this.rangeAxis.addChangeListener(this);
    }
}