javax.swing.JLayeredPane.getComponentsInLayer()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(78)

本文整理了Java中javax.swing.JLayeredPane.getComponentsInLayer()方法的一些代码示例,展示了JLayeredPane.getComponentsInLayer()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLayeredPane.getComponentsInLayer()方法的具体详情如下:
包路径:javax.swing.JLayeredPane
类名称:JLayeredPane
方法名:getComponentsInLayer

JLayeredPane.getComponentsInLayer介绍

暂无

代码示例

代码示例来源:origin: nl.cloudfarming.client/cloudfarming-client-geoviewer-jxmap

@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);
}

代码示例来源:origin: threerings/nenya

Component[] comps = pane.getComponentsInLayer(layer.intValue());
for (int ii = 0; ii < ccount; ii++) {
  Component comp = comps[ii];

代码示例来源:origin: com.threerings/nenya

Component[] comps = pane.getComponentsInLayer(layer.intValue());
for (int ii = 0; ii < ccount; ii++) {
  Component comp = comps[ii];

代码示例来源:origin: stackoverflow.com

Component[] comps = layeredPane.getComponentsInLayer(new Integer(Integer.MIN_VALUE));
for (int i = 0; i < comps.length; i++) {
  System.out.println(comps[i].getName());

代码示例来源:origin: nl.cloudfarming.client/cloudfarming-client-geoviewer-jxmap

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;
}

代码示例来源:origin: com.github.insubstantial/substance

if (rootPane == null)
  return false;
Component[] popups = rootPane.getLayeredPane().getComponentsInLayer(
    JLayeredPane.POPUP_LAYER);
if (popups == null)

代码示例来源:origin: org.java.net.substance/substance

if (rootPane == null)
  return false;
Component[] popups = rootPane.getLayeredPane().getComponentsInLayer(
    JLayeredPane.POPUP_LAYER);
if (popups == null)

代码示例来源:origin: net.sf.tinylaf/tinylaf

theFrame.getLayeredPane().getComponentsInLayer(
  JLayeredPane.FRAME_CONTENT_LAYER.intValue());

代码示例来源:origin: org.java.net.substance/substance

if (rootPane != null) {
  Component[] popups = rootPane.getLayeredPane()
      .getComponentsInLayer(JLayeredPane.POPUP_LAYER);
  if (popups != null) {
    int popupIndexToStartWith = SubstanceCoreUtilities

代码示例来源:origin: com.github.insubstantial/substance

if (rootPane != null) {
  Component[] popups = rootPane.getLayeredPane()
      .getComponentsInLayer(JLayeredPane.POPUP_LAYER);
  if (popups != null) {
    int popupIndexToStartWith = SubstanceCoreUtilities

相关文章