本文整理了Java中ij.ImageJ.getSize()
方法的一些代码示例,展示了ImageJ.getSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageJ.getSize()
方法的具体详情如下:
包路径:ij.ImageJ
类名称:ImageJ
方法名:getSize
暂无
代码示例来源:origin: sc.fiji/Image_5D
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;
}
代码示例来源:origin: net.imagej/ij
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;
}
代码示例来源:origin: imagej/ImageJA
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;
}
代码示例来源:origin: net.imagej/ij
Dimension size = imageJ.getSize();
代码示例来源:origin: imagej/ImageJA
Dimension size = imageJ.getSize();
代码示例来源:origin: net.imagej/ij
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>>");
}
代码示例来源:origin: imagej/ImageJA
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>>");
}
代码示例来源:origin: imagej/ImageJA
pack();
setVisible(true);
Dimension size = getSize();
if (size!=null) {
if (IJ.debugMode) IJ.log("size: "+size);
代码示例来源:origin: net.imagej/ij
pack();
setVisible(true);
Dimension size = getSize();
if (size!=null) {
if (IJ.debugMode) IJ.log("size: "+size);
内容来源于网络,如有侵权,请联系作者删除!