本文整理了Java中ij.gui.Toolbar.repaint()
方法的一些代码示例,展示了Toolbar.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Toolbar.repaint()
方法的具体详情如下:
包路径:ij.gui.Toolbar
类名称:Toolbar
方法名:repaint
暂无
代码示例来源:origin: sc.fiji/TrakEM2_
SwingUtilities.invokeLater(new Runnable() { public void run() {
fr.setVisible(false);
fr.dispose();
if (null != ij.gui.Toolbar.getInstance()) ij.gui.Toolbar.getInstance().repaint();
}});
frame = null;
代码示例来源:origin: imagej/ImageJA
public static void removeMacroTools() {
if (instance!=null) {
if (instance.getToolId()>=CUSTOM1)
instance.setTool(RECTANGLE);
instance.resetTools();
instance.repaint();
}
}
代码示例来源:origin: net.imagej/ij
public static void removeMacroTools() {
if (instance!=null) {
if (instance.getToolId()>=CUSTOM1)
instance.setTool(RECTANGLE);
instance.resetTools();
instance.repaint();
}
}
代码示例来源:origin: imagej/ImageJA
repaint();
if (!previousName.equals(getToolName())) {
IJ.notifyEventListeners(IJEventListener.TOOL_CHANGED);;
repaint();
代码示例来源:origin: net.imagej/ij
repaint();
if (!previousName.equals(getToolName())) {
IJ.notifyEventListeners(IJEventListener.TOOL_CHANGED);;
repaint();
代码示例来源:origin: sc.fiji/bUnwarpJ_
/**
* Restore the initial conditions.
*/
public void restoreAll ()
{
ungrayImage(sourcePh.getPointAction());
ungrayImage(targetPh.getPointAction());
cancelSource();
cancelTarget();
tb.restorePreviousToolbar();
if(null != Toolbar.getInstance())
Toolbar.getInstance().repaint();
ProgressBar.resetProgressBar();
Runtime.getRuntime().gc();
} /* end restoreAll */
代码示例来源:origin: imagej/ImageJA
tb.repaint();
代码示例来源:origin: net.imagej/ij
tb.repaint();
代码示例来源:origin: net.imagej/ij
public void itemStateChanged(ItemEvent e) {
Choice choice = (Choice)e.getSource();
String item = choice.getSelectedItem();
Color color = getColor(item, Color.black);
if (choice==fchoice)
Toolbar.setForegroundColor(color);
else if (choice==bchoice)
Toolbar.setBackgroundColor(color);
else if (choice==schoice) {
Roi.setColor(color);
ImagePlus imp = WindowManager.getCurrentImage();
if (imp!=null && imp.getRoi()!=null) imp.draw();
Toolbar.getInstance().repaint();
}
}
代码示例来源:origin: imagej/ImageJA
public void itemStateChanged(ItemEvent e) {
Choice choice = (Choice)e.getSource();
String item = choice.getSelectedItem();
Color color = getColor(item, Color.black);
if (choice==fchoice)
Toolbar.setForegroundColor(color);
else if (choice==bchoice)
Toolbar.setBackgroundColor(color);
else if (choice==schoice) {
Roi.setColor(color);
ImagePlus imp = WindowManager.getCurrentImage();
if (imp!=null && imp.getRoi()!=null) imp.draw();
Toolbar.getInstance().repaint();
}
}
代码示例来源:origin: net.imagej/ij
ImagePlus imp = WindowManager.getCurrentImage();
if (imp!=null) imp.draw();
Toolbar.getInstance().repaint();
代码示例来源:origin: imagej/ImageJA
ImagePlus imp = WindowManager.getCurrentImage();
if (imp!=null) imp.draw();
Toolbar.getInstance().repaint();
代码示例来源:origin: sc.fiji/fiji-lib
toolID = toolbar.getToolId(getToolName());
if (previousID == toolID)
toolbar.repaint();
代码示例来源:origin: imagej/ImageJA
Roi.setColor(sc);
redraw = true;
Toolbar.getInstance().repaint();
代码示例来源:origin: net.imagej/ij
Roi.setColor(sc);
redraw = true;
Toolbar.getInstance().repaint();
内容来源于网络,如有侵权,请联系作者删除!