Search in sources :

Example 6 with EventListenerList

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

the class Marker 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.paint = SerialUtilities.readPaint(stream);
    this.stroke = SerialUtilities.readStroke(stream);
    this.outlinePaint = SerialUtilities.readPaint(stream);
    this.outlineStroke = SerialUtilities.readStroke(stream);
    this.labelPaint = SerialUtilities.readPaint(stream);
    this.listenerList = new EventListenerList();
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Example 7 with EventListenerList

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

the class AbstractDataset 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();
    // see comments about priority of
    stream.registerValidation(this, 10);
// 10 in validateObject()
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Example 8 with EventListenerList

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

the class AbstractDataset method clone.

/**
 * Returns a clone of the dataset. The cloned dataset will NOT include the
 * {@link DatasetChangeListener} references that have been registered with
 * this dataset.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  if the dataset does not support
 *                                     cloning.
 */
@Override
public Object clone() throws CloneNotSupportedException {
    AbstractDataset clone = (AbstractDataset) super.clone();
    clone.listenerList = new EventListenerList();
    return clone;
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Example 9 with EventListenerList

use of javax.swing.event.EventListenerList in project cayenne by apache.

the class ProjectController method reset.

public void reset() {
    clearState();
    setDirty(false);
    setEntityTabSelection(0);
    listenerList = new EventListenerList();
    controllerStateHistory.clear();
}
Also used : EventListenerList(javax.swing.event.EventListenerList)

Example 10 with EventListenerList

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

the class AbstractDialLayer 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.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