javax.swing.event.EventListenerList Java Examples
The following examples show how to use
javax.swing.event.EventListenerList.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JFreeChart.java From openstock with GNU General Public License v3.0 | 6 votes |
/** * 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); }
Example #2
Source File: ChartPanel.java From openstock with GNU General Public License v3.0 | 6 votes |
/** * 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.zoomFillPaint = SerialUtilities.readPaint(stream); this.zoomOutlinePaint = SerialUtilities.readPaint(stream); // we create a new but empty chartMouseListeners list this.chartMouseListeners = new EventListenerList(); // register as a listener with sub-components... if (this.chart != null) { this.chart.addChangeListener(this); } }
Example #3
Source File: ImageWrapperIcon.java From orbit-image-analysis with GNU General Public License v3.0 | 6 votes |
/** * Create a new image-wrapper icon. * * @param image The original image. * @param w The width of the icon. * @param h The height of the icon. */ public ImageWrapperIcon(Image image, int w, int h) { this.imageInputStream = null; this.image = image; this.width = w; this.height = h; this.listenerList = new EventListenerList(); this.cachedImages = new LinkedHashMap<String, BufferedImage>() { @Override protected boolean removeEldestEntry( Map.Entry<String, BufferedImage> eldest) { return size() > 5; } ; }; this.renderImage(this.width, this.height); }
Example #4
Source File: Title.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * Creates a new title. * * @param position the position of the title (<code>null</code> not * permitted). * @param horizontalAlignment the horizontal alignment of the title (LEFT, * CENTER or RIGHT, <code>null</code> not * permitted). * @param verticalAlignment the vertical alignment of the title (TOP, * MIDDLE or BOTTOM, <code>null</code> not * permitted). * @param padding the amount of space to leave around the outside of the * title (<code>null</code> not permitted). */ protected Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding) { ParamChecks.nullNotPermitted(position, "position"); ParamChecks.nullNotPermitted(horizontalAlignment, "horizontalAlignment"); ParamChecks.nullNotPermitted(verticalAlignment, "verticalAlignment"); ParamChecks.nullNotPermitted(padding, "padding"); this.visible = true; this.position = position; this.horizontalAlignment = horizontalAlignment; this.verticalAlignment = verticalAlignment; setPadding(padding); this.listenerList = new EventListenerList(); this.notify = true; }
Example #5
Source File: Title.java From openstock with GNU General Public License v3.0 | 6 votes |
/** * Creates a new title. * * @param position the position of the title (<code>null</code> not * permitted). * @param horizontalAlignment the horizontal alignment of the title (LEFT, * CENTER or RIGHT, <code>null</code> not * permitted). * @param verticalAlignment the vertical alignment of the title (TOP, * MIDDLE or BOTTOM, <code>null</code> not * permitted). * @param padding the amount of space to leave around the outside of the * title (<code>null</code> not permitted). */ protected Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding) { ParamChecks.nullNotPermitted(position, "position"); ParamChecks.nullNotPermitted(horizontalAlignment, "horizontalAlignment"); ParamChecks.nullNotPermitted(verticalAlignment, "verticalAlignment"); ParamChecks.nullNotPermitted(padding, "padding"); this.visible = true; this.position = position; this.horizontalAlignment = horizontalAlignment; this.verticalAlignment = verticalAlignment; setPadding(padding); this.listenerList = new EventListenerList(); this.notify = true; }
Example #6
Source File: Plot.java From openstock with GNU General Public License v3.0 | 6 votes |
/** * Creates a new plot. */ protected Plot() { this.parent = null; this.insets = DEFAULT_INSETS; this.backgroundPaint = DEFAULT_BACKGROUND_PAINT; this.backgroundAlpha = DEFAULT_BACKGROUND_ALPHA; this.backgroundImage = null; this.outlineVisible = true; this.outlineStroke = DEFAULT_OUTLINE_STROKE; this.outlinePaint = DEFAULT_OUTLINE_PAINT; this.foregroundAlpha = DEFAULT_FOREGROUND_ALPHA; this.noDataMessage = null; this.noDataMessageFont = new Font("SansSerif", Font.PLAIN, 12); this.noDataMessagePaint = Color.black; this.drawingSupplier = new DefaultDrawingSupplier(); this.notify = true; this.listenerList = new EventListenerList(); }
Example #7
Source File: ChartPanel.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * 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.zoomFillPaint = SerialUtilities.readPaint(stream); this.zoomOutlinePaint = SerialUtilities.readPaint(stream); // we create a new but empty chartMouseListeners list this.chartMouseListeners = new EventListenerList(); // register as a listener with sub-components... if (this.chart != null) { this.chart.addChangeListener(this); } }
Example #8
Source File: ImageWrapperIcon.java From radiance with BSD 3-Clause "New" or "Revised" License | 6 votes |
/** * Create a new image-wrapper icon. * * @param inputStream The input stream to read the image from. * @param w The width of the icon. * @param h The height of the icon. */ public ImageWrapperIcon(InputStream inputStream, int w, int h) { this.imageInputStream = inputStream; this.width = w; this.height = h; this.listenerList = new EventListenerList(); this.cachedImages = new LinkedHashMap<String, BufferedImage>() { @Override protected boolean removeEldestEntry( Map.Entry<String, BufferedImage> eldest) { return size() > 5; } }; this.renderImage(this.width, this.height); }
Example #9
Source File: SvgBatikResizableIcon.java From radiance with BSD 3-Clause "New" or "Revised" License | 6 votes |
/** * Creates a new resizable icon based on SVG content. * * @param inputStream * Input stream with uncompressed SVG content. * @param initialDim * Initial dimension. * @throws IOException * in case any I/O operation failed. */ private SvgBatikResizableIcon(InputStream inputStream, final Dimension initialDim) throws IOException { super(inputStream, initialDim.width, initialDim.height); this.listenerList = new EventListenerList(); this.addGVTTreeRendererListener(new GVTTreeRendererAdapter() { @Override public void gvtRenderingCompleted(GVTTreeRendererEvent e) { fireAsyncCompleted(Boolean.TRUE); } @Override public void gvtRenderingFailed(GVTTreeRendererEvent arg0) { fireAsyncCompleted(Boolean.FALSE); } }); }
Example #10
Source File: JFreeChart.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * 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); }
Example #11
Source File: JFreeChart.java From ccu-historian with GNU General Public License v3.0 | 6 votes |
/** * 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); }
Example #12
Source File: ZoomManager.java From netbeans with Apache License 2.0 | 6 votes |
/** * Creates a new instance of ZoomManager. * * @param scene the scene to be managed. */ public ZoomManager(Scene scene) { this.scene = scene; listeners = new EventListenerList(); scene.addSceneListener(new Scene.SceneListener(){ public void sceneRepaint() { } public void sceneValidating() { } public void sceneValidated() { int newZoomPercentage = (int)(getScene().getZoomFactor()*100); if(newZoomPercentage != zoomPercentage) { zoomPercentage = newZoomPercentage; fireZoomEvent(zoomPercentage); } } }); }
Example #13
Source File: Timer.java From Bytecoder with Apache License 2.0 | 6 votes |
private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { this.acc = AccessController.getContext(); ObjectInputStream.GetField f = in.readFields(); EventListenerList newListenerList = (EventListenerList) f.get("listenerList", null); if (newListenerList == null) { throw new InvalidObjectException("Null listenerList"); } listenerList = newListenerList; int newInitialDelay = f.get("initialDelay", 0); checkDelay(newInitialDelay, "Invalid initial delay: "); initialDelay = newInitialDelay; int newDelay = f.get("delay", 0); checkDelay(newDelay, "Invalid delay: "); delay = newDelay; repeats = f.get("repeats", false); coalesce = f.get("coalesce", false); actionCommand = (String) f.get("actionCommand", null); }
Example #14
Source File: Timer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { this.acc = AccessController.getContext(); ObjectInputStream.GetField f = in.readFields(); EventListenerList newListenerList = (EventListenerList) f.get("listenerList", null); if (newListenerList == null) { throw new InvalidObjectException("Null listenerList"); } listenerList = newListenerList; int newInitialDelay = f.get("initialDelay", 0); checkDelay(newInitialDelay, "Invalid initial delay: "); initialDelay = newInitialDelay; int newDelay = f.get("delay", 0); checkDelay(newDelay, "Invalid delay: "); delay = newDelay; repeats = f.get("repeats", false); coalesce = f.get("coalesce", false); actionCommand = (String) f.get("actionCommand", null); }
Example #15
Source File: Title.java From ccu-historian with GNU General Public License v3.0 | 6 votes |
/** * Creates a new title. * * @param position the position of the title (<code>null</code> not * permitted). * @param horizontalAlignment the horizontal alignment of the title (LEFT, * CENTER or RIGHT, <code>null</code> not * permitted). * @param verticalAlignment the vertical alignment of the title (TOP, * MIDDLE or BOTTOM, <code>null</code> not * permitted). * @param padding the amount of space to leave around the outside of the * title (<code>null</code> not permitted). */ protected Title(RectangleEdge position, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, RectangleInsets padding) { ParamChecks.nullNotPermitted(position, "position"); ParamChecks.nullNotPermitted(horizontalAlignment, "horizontalAlignment"); ParamChecks.nullNotPermitted(verticalAlignment, "verticalAlignment"); ParamChecks.nullNotPermitted(padding, "padding"); this.visible = true; this.position = position; this.horizontalAlignment = horizontalAlignment; this.verticalAlignment = verticalAlignment; setPadding(padding); this.listenerList = new EventListenerList(); this.notify = true; }
Example #16
Source File: Plot.java From SIMVA-SoS with Apache License 2.0 | 6 votes |
/** * Creates a new plot. */ protected Plot() { this.parent = null; this.insets = DEFAULT_INSETS; this.backgroundPaint = DEFAULT_BACKGROUND_PAINT; this.backgroundAlpha = DEFAULT_BACKGROUND_ALPHA; this.backgroundImage = null; this.outlineVisible = true; this.outlineStroke = DEFAULT_OUTLINE_STROKE; this.outlinePaint = DEFAULT_OUTLINE_PAINT; this.foregroundAlpha = DEFAULT_FOREGROUND_ALPHA; this.noDataMessage = null; this.noDataMessageFont = new Font("SansSerif", Font.PLAIN, 12); this.noDataMessagePaint = Color.black; this.drawingSupplier = new DefaultDrawingSupplier(); this.notify = true; this.listenerList = new EventListenerList(); }
Example #17
Source File: ChartPanel.java From ccu-historian with GNU General Public License v3.0 | 6 votes |
/** * 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.zoomFillPaint = SerialUtilities.readPaint(stream); this.zoomOutlinePaint = SerialUtilities.readPaint(stream); // we create a new but empty chartMouseListeners list this.chartMouseListeners = new EventListenerList(); // register as a listener with sub-components... if (this.chart != null) { this.chart.addChangeListener(this); } }
Example #18
Source File: Axis.java From openstock with GNU General Public License v3.0 | 5 votes |
/** * 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(); }
Example #19
Source File: StateTransitionTracker.java From radiance with BSD 3-Clause "New" or "Revised" License | 5 votes |
public StateTransitionTracker(final JComponent component, ButtonModel model) { this.component = component; this.model = model; this.modelStateInfo = new ModelStateInfo(); this.modelStateInfo.currState = ComponentState.getState(model, component); this.modelStateInfo.currStateNoSelection = ComponentState.getState(model, component, true); this.modelStateInfo.clear(); this.repaintCallback = () -> new SwingRepaintCallback(component); this.isAutoTrackingModelChanges = true; this.eventListenerList = new EventListenerList(); this.focusTimeline = AnimationConfigurationManager.getInstance().timelineBuilder(this.component) .addCallback(this.repaintCallback.getRepaintCallback()) .addCallback(new TimelineCallbackAdapter() { @Override public void onTimelineStateChanged(TimelineState oldState, TimelineState newState, float durationFraction, float timelinePosition) { // notify listeners on focus state transition SwingUtilities.invokeLater( () -> fireFocusStateTransitionEvent(oldState, newState)); } }) .build(); this.focusLoopTimeline = AnimationConfigurationManager.getInstance().timelineBuilder(this.component) .addCallback(this.repaintCallback.getRepaintCallback()) .build(); this.iconGlowTracker = new IconGlowTracker(this.component); this.name = ""; }
Example #20
Source File: AbstractRenderer.java From openstock with GNU General Public License v3.0 | 5 votes |
/** * 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.basePaint = SerialUtilities.readPaint(stream); this.fillPaint = SerialUtilities.readPaint(stream); this.baseFillPaint = SerialUtilities.readPaint(stream); this.outlinePaint = SerialUtilities.readPaint(stream); this.baseOutlinePaint = SerialUtilities.readPaint(stream); this.stroke = SerialUtilities.readStroke(stream); this.baseStroke = SerialUtilities.readStroke(stream); this.outlineStroke = SerialUtilities.readStroke(stream); this.baseOutlineStroke = SerialUtilities.readStroke(stream); this.shape = SerialUtilities.readShape(stream); this.baseShape = SerialUtilities.readShape(stream); this.itemLabelPaint = SerialUtilities.readPaint(stream); this.baseItemLabelPaint = SerialUtilities.readPaint(stream); this.baseLegendShape = SerialUtilities.readShape(stream); this.baseLegendTextPaint = SerialUtilities.readPaint(stream); // listeners are not restored automatically, but storage must be // provided... this.listenerList = new EventListenerList(); }
Example #21
Source File: TriMesh.java From jtk with Apache License 2.0 | 5 votes |
/** * Initialization for use in constructers and serialization (readObject). */ protected void init() { _version = 0; _nnode = 0; _ntri = 0; _nroot = null; _troot = null; _sampledNodes = new HashSet<Node>(256); _triMarkRed = 0; _triMarkBlue = 0; _nodeMarkRed = 0; _nodeMarkBlue = 0; _edgeSet = new EdgeSet(256,0.25); _nodeSet = new NodeSet(256,0.25); _nodeList = new NodeList(); _nmin = null; _dmin = 0.0; _deadTris = new TriList(); _nnodeListeners = 0; _ntriListeners = 0; _listeners = new EventListenerList(); _outerEnabled = false; _xminOuter = 0.0; _yminOuter = 0.0; _xmaxOuter = 0.0; _ymaxOuter = 0.0; _nnodeValues = 0; _lnodeValues = 0; _nodePropertyMaps = new HashMap<String,NodePropertyMap>(); }
Example #22
Source File: TetMesh.java From jtk with Apache License 2.0 | 5 votes |
/** * Initialization for use in constructers and serialization (readObject). */ protected void init() { _version = 0; _nnode = 0; _ntet = 0; _nroot = null; _troot = null; _sampledNodes = new HashSet<Node>(256); _tetMarkRed = 0; _tetMarkBlue = 0; _nodeMarkRed = 0; _nodeMarkBlue = 0; _faceSet = new FaceSet(256,0.25); _edgeSet = new EdgeSet(256,0.25); _nodeList = new NodeList(); _nmin = null; _dmin = 0.0; _deadTets = new TetList(); _nnodeListeners = 0; _ntetListeners = 0; _listeners = new EventListenerList(); _outerEnabled = false; _xminOuter = 0.0; _yminOuter = 0.0; _zminOuter = 0.0; _xmaxOuter = 0.0; _ymaxOuter = 0.0; _zmaxOuter = 0.0; _nnodeValues = 0; _lnodeValues = 0; _nodePropertyMaps = new HashMap<String,NodePropertyMap>(); }
Example #23
Source File: Node.java From netbeans with Apache License 2.0 | 5 votes |
/** Implements {@link Object#clone} to behave correctly if cloning is desired. * But {@link Cloneable} is <em>not</em> declared by default. * <P> * The default implementation checks whether the child list implements * <code>Cloneable</code>, and if so, it clones the children. * If the child list does not support cloning, {@link Children#LEAF} is used * instead for the children. The parent of this node is set to <code>null</code> and an empty set * of listeners is attached to the node. * * @return the cloned version of the node * @exception CloneNotSupportedException if the children cannot be cloned * in spite of implementing <code>Cloneable</code> */ @Override protected Object clone() throws CloneNotSupportedException { Node n = (Node) super.clone(); Children hier2; if (hierarchy instanceof Cloneable) { hier2 = (Children) hierarchy.cloneHierarchy(); } else { hier2 = Children.LEAF; } // attach the hierarchy n.hierarchy = hier2; hier2.attachTo(n); // no parent n.parent = null; // empty set of listeners if (listeners instanceof LookupEventList) { n.listeners = new LookupEventList(internalLookup(false)); } else { n.listeners = new EventListenerList(); } return n; }
Example #24
Source File: Axis.java From SIMVA-SoS with Apache License 2.0 | 5 votes |
/** * 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(); }
Example #25
Source File: AbstractModel.java From netbeans with Apache License 2.0 | 5 votes |
public AbstractModel(ModelSource source) { this.source = source; pcs = new PropertyChangeSupport(this); ues = new ModelUndoableEditSupport(); componentListeners = new EventListenerList(); status = State.VALID; }
Example #26
Source File: TokenHierarchyOperation.java From netbeans with Apache License 2.0 | 5 votes |
private void init() { assert (tokenHierarchy == null); tokenHierarchy = LexerApiPackageAccessor.get().createTokenHierarchy(this); // Create listener list even for non-mutable hierarchies as there may be // custom embeddings created that need to be notified listenerList = new EventListenerList(); rootChildrenLanguages = null; }
Example #27
Source File: Marker.java From ccu-historian with GNU General Public License v3.0 | 5 votes |
/** * 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(); }
Example #28
Source File: CloseableTabbedPane.java From ramus with GNU General Public License v3.0 | 5 votes |
/** * Initializes the <code>CloseableTabbedPane</code> * * @param horizontalTextPosition the horizontal position of the text (e.g. * SwingUtilities.TRAILING or SwingUtilities.LEFT) */ private void init(int horizontalTextPosition) { listenerList = new EventListenerList(); addMouseListener(this); addMouseMotionListener(this); if (getUI() instanceof MetalTabbedPaneUI) setUI(new CloseableMetalTabbedPaneUI(horizontalTextPosition)); else setUI(new CloseableTabbedPaneUI(horizontalTextPosition)); }
Example #29
Source File: Plot.java From SIMVA-SoS with Apache License 2.0 | 5 votes |
/** * 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(); }
Example #30
Source File: Plot.java From openstock with GNU General Public License v3.0 | 5 votes |
/** * 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(); }