本文整理汇总了Java中org.jmol.util.Logger.setLogLevel方法的典型用法代码示例。如果您正苦于以下问题:Java Logger.setLogLevel方法的具体用法?Java Logger.setLogLevel怎么用?Java Logger.setLogLevel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jmol.util.Logger
的用法示例。
在下文中一共展示了Logger.setLogLevel方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ViewerPanel
import org.jmol.util.Logger; //导入方法依赖的package包/类
public ViewerPanel( final Molecule3D molecule, Color background, Dimension size ) {
setPreferredSize( size );
// configure Jmol's logging so we don't spew to the console
Logger.setLogLevel( PhetApplication.getInstance().isDeveloperControlsEnabled() ? Logger.LEVEL_WARN : Logger.LEVEL_FATAL );
// create the 3D viewer
viewer = JmolViewer.allocateViewer( ViewerPanel.this, new SmarterJmolAdapter(), null, null, null, "-applet", null );
// default settings of the viewer, independent of the molecule displayed
viewer.setColorBackground( toJmolColor( background ) );
viewer.setFrankOn( false ); // hide the "Jmol" watermark in the lower-right corner
viewer.setBooleanProperty( "antialiasDisplay", true );
viewer.setBooleanProperty( "autoBond", false );
viewer.setFloatProperty( "dipoleScale", 0.8f ); // so that molecular dipole isn't clipped by viewer
JmolUtil.unbindMouse( viewer ); // unbind all mouse operations
JmolUtil.bindRotateLeft( viewer ); // bind rotate to left mouse button
setMolecule( molecule );
}
示例2: setLogging
import org.jmol.util.Logger; //导入方法依赖的package包/类
private void setLogging() {
int iLevel = (getValue("logLevel", (getBooleanValue("debug", false) ? "5"
: "4"))).charAt(0) - '0';
if (iLevel != 4)
System.out.println("setting logLevel=" + iLevel
+ " -- To change, use script \"set logLevel [0-5]\"");
Logger.setLogLevel(iLevel);
}
示例3: setDebug
import org.jmol.util.Logger; //导入方法依赖的package包/类
/**
* set debugging on or off
*
* @param TF
*/
public void setDebug(boolean TF) {
Logger.setLogLevel(TF ? Logger.LEVEL_DEBUG : Logger.LEVEL_INFO);
}