/** * {@inheritDoc} */ @Override public void removeAll() { synchronized (getTreeLock()) { for (Component c : getComponents()) { unregisterStatusBar(c); } super.removeAll(); } } };
/** * {@inheritDoc} */ @Override public void removeAll() { synchronized (getTreeLock()) { for (Component c : getComponents()) { unregisterStatusBar(c); } super.removeAll(); } } };
/** * {@inheritDoc} */ @Override public void removeAll() { synchronized (getTreeLock()) { for (Component c : getComponents()) { unregisterStatusBar(c); } super.removeAll(); } } };
/** * {@inheritDoc} */ @Override public void removeAll() { synchronized (getTreeLock()) { for (Component c : getComponents()) { unregisterStatusBar(c); } super.removeAll(); } } };
/** * {@inheritDoc} */ @Override public void removeAll() { synchronized (getTreeLock()) { for (Component c : getComponents()) { unregisterStatusBar(c); } super.removeAll(); } } };
/** * Updates the legend Adds all the Legend colors and descriptions to the * legend */ void updateLegend() { if (currentlyShowing != null && !currentlyShowing.isEmpty()) { legendColorPanel.removeAll(); for (LegendPalette.Entry legendColor : currentlyShowing.iterator().next().getEntries()) { JLabel colorLabel = new JLabel("#"); colorLabel.setBackground(legendColor.getColor()); colorLabel.setForeground(legendColor.getColor()); colorLabel.setPreferredSize(COLOR_BLOCK_DIMENSION); legendColorPanel.add(colorLabel); legendColorPanel.add(new JLabel(legendColor.getDescription())); } repaint(); revalidate(); } }
topPanel.removeAll(); titledPanel.remove(topPanel); titledPanel.putClientProperty(JXTitledPanel.LEFT_DECORATION, left);
private void stopContext(DrawingContext context) { // remove toolbar & widgets: drawingPanel.removeContext(context); toolsPanel.removeAll(); toolsPanel.getParent().repaint(); toolsPanel.getParent().validate(); LOGGER.info(Bundle.app_log_stop_drawing_context(context.getDescription())); GeoEvent.getProducer().triggerEvent(GeoEvent.TOOLS_PANEL, Boolean.FALSE); this.context = null; }
topPanel.removeAll(); titledPanel.remove(topPanel); titledPanel.putClientProperty(JXTitledPanel.LEFT_DECORATION, left);
topPanel.removeAll(); titledPanel.remove(topPanel); titledPanel.putClientProperty(JXTitledPanel.LEFT_DECORATION, left);
topPanel.removeAll(); titledPanel.remove(topPanel); titledPanel.putClientProperty(JXTitledPanel.LEFT_DECORATION, left);
topPanel.removeAll(); titledPanel.remove(topPanel); titledPanel.putClientProperty(JXTitledPanel.LEFT_DECORATION, left);