Search in sources :

Example 11 with EventListenerList

use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.

the class AbstractDialLayer method clone.

/**
 * Returns a clone of this instance.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if there is a problem cloning this
 *     instance.
 */
@Override
public Object clone() throws CloneNotSupportedException {
    AbstractDialLayer clone = (AbstractDialLayer) super.clone();
    // we don't clone the listeners
    clone.listenerList = new EventListenerList();
    return clone;
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Example 12 with EventListenerList

use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.

the class Plot method readObject.

/**
 * 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.noDataMessagePaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    // backgroundImage
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    this.listenerList = new EventListenerList();
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Example 13 with EventListenerList

use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.

the class Axis method readObject.

/**
 * 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.attributedLabel = SerialUtilities.readAttributedString(stream);
    this.labelPaint = SerialUtilities.readPaint(stream);
    this.tickLabelPaint = SerialUtilities.readPaint(stream);
    this.axisLineStroke = SerialUtilities.readStroke(stream);
    this.axisLinePaint = SerialUtilities.readPaint(stream);
    this.tickMarkStroke = SerialUtilities.readStroke(stream);
    this.tickMarkPaint = SerialUtilities.readPaint(stream);
    this.listenerList = new EventListenerList();
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Example 14 with EventListenerList

use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.

the class JFreeChartInfo method readObject.

/**
 * 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.borderStroke = SerialUtilities.readStroke(stream);
    this.borderPaint = SerialUtilities.readPaint(stream);
    this.backgroundPaint = SerialUtilities.readPaint(stream);
    this.progressListeners = new EventListenerList();
    this.changeListeners = new EventListenerList();
    this.renderingHints = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    this.renderingHints.put(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);
    // register as a listener with sub-components...
    if (this.title != null) {
        this.title.addChangeListener(this);
    }
    for (int i = 0; i < getSubtitleCount(); i++) {
        getSubtitle(i).addChangeListener(this);
    }
    this.plot.addChangeListener(this);
}
Also used : EventListenerList(javax.swing.event.EventListenerList) RenderingHints(java.awt.RenderingHints) RectangleConstraint(org.jfree.chart.block.RectangleConstraint) Paint(java.awt.Paint)

Example 15 with EventListenerList

use of javax.swing.event.EventListenerList in project SIMVA-SoS by SESoS.

the class AbstractAnnotation method readObject.

/**
 * 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();
    this.listenerList = new EventListenerList();
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Aggregations

EventListenerList (javax.swing.event.EventListenerList)21 Paint (java.awt.Paint)2 RectangleConstraint (org.jfree.chart.block.RectangleConstraint)2 WindowsTabbedPaneUI (com.sun.java.swing.plaf.windows.WindowsTabbedPaneUI)1 RenderingHints (java.awt.RenderingHints)1 PropertyChangeSupport (java.beans.PropertyChangeSupport)1 VetoableChangeSupport (java.beans.VetoableChangeSupport)1 ArrayList (java.util.ArrayList)1 LegendTitle (org.jfree.chart.title.LegendTitle)1 TextTitle (org.jfree.chart.title.TextTitle)1 Title (org.jfree.chart.title.Title)1