Example usage for org.jfree.io SerialUtilities writeShape

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

Introduction

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

Prototype

public static void writeShape(final Shape shape, final ObjectOutputStream stream) throws IOException 

Source Link

Document

Serialises a Shape object.

Usage

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

/**
 * Provides serialization support./*from  w ww  .java  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.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:org.pentaho.plugin.jfreereport.reportcharts.backport.XYDotRenderer.java

/**
 * Provides serialization support.//from www . j  a  va  2s.  com
 *
 * @param stream the output stream.
 * @throws IOException if there is an I/O error.
 */
private void writeObject(final ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.legendShape, stream);
}

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

/**
 * Provides serialization support./*from  ww  w.j ava2  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.writeShape(this.legendShape, stream);
}

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

/**
 * Provides serialization support./* ww  w . j a  va 2 s. c o  m*/
 *
 * @param stream
 *            the output stream.
 *
 * @throws IOException
 *             if there is an I/O error.
 */
private void writeObject(final ObjectOutputStream stream) throws IOException {
    stream.defaultWriteObject();
    SerialUtilities.writeShape(this.legendLine, stream);
}

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

/**    
 * Provides serialization support.    //w w w .  ja  v a  2s  . 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.writeShape(this.legendBar, stream);
}

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

/**    
 * Provides serialization support.    //from ww w.  j a v  a 2s.  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.writeShape(this.legendLine, stream);
}

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

/**
 * Provides serialization support.// w w w  .  j a va 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.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);
}

From source file:KIDLYAbstractRenderer.java

/**
 * Provides serialization support./*from w  w w  . j a  v a2s  .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.writePaint(this.paint, stream);
    SerialUtilities.writePaint(this.basePaint, stream);
    SerialUtilities.writePaint(this.fillPaint, stream);
    SerialUtilities.writePaint(this.baseFillPaint, stream);
    SerialUtilities.writePaint(this.outlinePaint, stream);
    SerialUtilities.writePaint(this.baseOutlinePaint, stream);
    SerialUtilities.writeStroke(this.stroke, stream);
    SerialUtilities.writeStroke(this.baseStroke, stream);
    SerialUtilities.writeStroke(this.outlineStroke, stream);
    SerialUtilities.writeStroke(this.baseOutlineStroke, stream);
    SerialUtilities.writeShape(this.shape, stream);
    SerialUtilities.writeShape(this.baseShape, stream);
    SerialUtilities.writePaint(this.itemLabelPaint, stream);
    SerialUtilities.writePaint(this.baseItemLabelPaint, stream);
    SerialUtilities.writeShape(this.baseLegendShape, stream);
    SerialUtilities.writePaint(this.baseLegendTextPaint, stream);

}