Changeset 12389 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-10T19:26:28+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterTableModel.java
r12387 r12389 6 6 import static org.openstreetmap.josm.tools.I18n.trn; 7 7 8 import java.awt.Color;9 import java.awt.Font;10 import java.awt.Graphics;11 8 import java.awt.Graphics2D; 12 9 import java.util.ArrayList; … … 16 13 import java.util.List; 17 14 18 import javax.swing.BorderFactory;19 import javax.swing.JLabel;20 15 import javax.swing.JOptionPane; 21 16 import javax.swing.table.AbstractTableModel; … … 31 26 import org.openstreetmap.josm.data.osm.OsmPrimitive; 32 27 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 28 import org.openstreetmap.josm.gui.widgets.OSDLabel; 33 29 import org.openstreetmap.josm.tools.Utils; 34 30 … … 424 420 425 421 /** 426 * On screen display label427 */428 private static class OSDLabel extends JLabel {429 OSDLabel(String text) {430 super(text);431 setOpaque(true);432 setForeground(Color.black);433 setBackground(new Color(0, 0, 0, 0));434 setFont(getFont().deriveFont(Font.PLAIN));435 setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10));436 }437 438 @Override439 public void paintComponent(Graphics g) {440 g.setColor(new Color(255, 255, 255, 140));441 g.fillRoundRect(getX(), getY(), getWidth(), getHeight(), 10, 10);442 super.paintComponent(g);443 }444 }445 446 /**447 422 * Draws a text on the map display that indicates that filters are active. 448 423 * @param g The graphics to draw that text on.
Note:
See TracChangeset
for help on using the changeset viewer.