equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
32 import java.awt.event.MouseListener; |
32 import java.awt.event.MouseListener; |
33 import java.awt.event.MouseMotionListener; |
33 import java.awt.event.MouseMotionListener; |
34 import java.awt.image.BufferedImage; |
34 import java.awt.image.BufferedImage; |
35 import javax.swing.JComponent; |
35 import javax.swing.JComponent; |
36 |
36 |
|
37 @SuppressWarnings("serial") // Superclass is not serializable across versions |
37 final class DiagramComponent extends JComponent implements MouseListener, MouseMotionListener { |
38 final class DiagramComponent extends JComponent implements MouseListener, MouseMotionListener { |
38 |
39 |
39 private final ColorPanel panel; |
40 private final ColorPanel panel; |
40 private final boolean diagram; |
41 private final boolean diagram; |
41 |
42 |