@Override public void mouseReleased(MouseEvent e) { final Point point = e.getPoint(); if (this.startPressedPoint != null) { this.mouseMovementX = (int) (point.getX() - this.startPressedPoint.getX()); this.mouseMovementY = (int) (point.getY() - this.startPressedPoint.getY()); } handleMouseReleasedPanMode(); clearMouseMovement(); this.drawOldStateImage = false; // // show layers // for (Component c : this.layerPanelContainer.getComponentsInLayer(LAYER_ACTIVE)) { if (c.equals(this.activePanel) && this.activePanel.isVisible()) { c.setVisible(true); } } this.drawingLayerPanel.hideDrawingPanel(); repaint(); dispatchToMap(e); }
Component[] comps = pane.getComponentsInLayer(layer.intValue()); for (int ii = 0; ii < ccount; ii++) { Component comp = comps[ii];
Component[] comps = pane.getComponentsInLayer(layer.intValue()); for (int ii = 0; ii < ccount; ii++) { Component comp = comps[ii];
Component[] comps = layeredPane.getComponentsInLayer(new Integer(Integer.MIN_VALUE)); for (int i = 0; i < comps.length; i++) { System.out.println(comps[i].getName());
private void createPanImage() { // create a still image of the current state of this map panel. This // image is following the mouse and thus // providing a visual clue that panning occurs // hide the underlying map panel when making the snapshot mapPanel.setVisible(false); layerListPanel.setVisible(false); this.layeredPaneDragImage = createImage(layerPanelContainer, BufferedImage.TYPE_INT_ARGB_PRE); mapPanel.setVisible(true); layerListPanel.setVisible(true); this.drawingLayerPanel.paint(this.layeredPaneDragImage.getGraphics()); // // hide object layers // for (Component c : this.layerPanelContainer.getComponentsInLayer(LAYER_ACTIVE)) { c.setVisible(false); } this.drawingLayerPanel.setVisible(true); // a separate flag indicating whether or not to draw the drag image is // needed. // mouseDragging is not sufficient because it is reset before the new // map is available. this.drawOldStateImage = true; }
if (rootPane == null) return false; Component[] popups = rootPane.getLayeredPane().getComponentsInLayer( JLayeredPane.POPUP_LAYER); if (popups == null)
if (rootPane == null) return false; Component[] popups = rootPane.getLayeredPane().getComponentsInLayer( JLayeredPane.POPUP_LAYER); if (popups == null)
theFrame.getLayeredPane().getComponentsInLayer( JLayeredPane.FRAME_CONTENT_LAYER.intValue());
if (rootPane != null) { Component[] popups = rootPane.getLayeredPane() .getComponentsInLayer(JLayeredPane.POPUP_LAYER); if (popups != null) { int popupIndexToStartWith = SubstanceCoreUtilities
if (rootPane != null) { Component[] popups = rootPane.getLayeredPane() .getComponentsInLayer(JLayeredPane.POPUP_LAYER); if (popups != null) { int popupIndexToStartWith = SubstanceCoreUtilities