protected Rectangle getMaxWindowI5d() { final GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); final Rectangle maxWindow = ge.getMaximumWindowBounds(); final Dimension ijSize = ij != null ? ij.getSize() : new Dimension(0, 0); maxWindow.y += ijSize.height; maxWindow.height -= ijSize.height; return maxWindow; }
Rectangle getMaxWindow(int xloc, int yloc) { Rectangle bounds = GUI.getMaxWindowBounds(); if (xloc>bounds.x+bounds.width || yloc>bounds.y+bounds.height) { Rectangle bounds2 = getSecondaryMonitorBounds(xloc, yloc); if (bounds2!=null) return bounds2; } Dimension ijSize = ij!=null?ij.getSize():new Dimension(0,0); if (bounds.height>600) { bounds.y += ijSize.height; bounds.height -= ijSize.height; } return bounds; }
Rectangle getMaxWindow(int xloc, int yloc) { Rectangle bounds = GUI.getMaxWindowBounds(); if (xloc>bounds.x+bounds.width || yloc>bounds.y+bounds.height) { Rectangle bounds2 = getSecondaryMonitorBounds(xloc, yloc); if (bounds2!=null) return bounds2; } Dimension ijSize = ij!=null?ij.getSize():new Dimension(0,0); if (bounds.height>600) { bounds.y += ijSize.height; bounds.height -= ijSize.height; } return bounds; }
Dimension size = imageJ.getSize();
Dimension size = imageJ.getSize();
public void dragOver(DropTargetDragEvent e) { if (IJ.debugMode) IJ.log("DragOver: "+e.getLocation()); Point loc = e.getLocation(); int buttonSize = Toolbar.getButtonSize(); int width = IJ.getInstance().getSize().width; openAsVirtualStack = width-loc.x<=buttonSize; if (openAsVirtualStack) IJ.showStatus("<<Open as Virtual Stack>>"); else IJ.showStatus("<<Drag and Drop>>"); }
public void dragOver(DropTargetDragEvent e) { if (IJ.debugMode) IJ.log("DragOver: "+e.getLocation()); Point loc = e.getLocation(); int buttonSize = Toolbar.getButtonSize(); int width = IJ.getInstance().getSize().width; openAsVirtualStack = width-loc.x<=buttonSize; if (openAsVirtualStack) IJ.showStatus("<<Open as Virtual Stack>>"); else IJ.showStatus("<<Drag and Drop>>"); }
pack(); setVisible(true); Dimension size = getSize(); if (size!=null) { if (IJ.debugMode) IJ.log("size: "+size);
pack(); setVisible(true); Dimension size = getSize(); if (size!=null) { if (IJ.debugMode) IJ.log("size: "+size);