本文整理了Java中javax.swing.UIManager.getBoolean()
方法的一些代码示例,展示了UIManager.getBoolean()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIManager.getBoolean()
方法的具体详情如下:
包路径:javax.swing.UIManager
类名称:UIManager
方法名:getBoolean
暂无
代码示例来源:origin: org.netbeans.api/org-openide-util-ui
private static boolean isDarkLaF() {
return UIManager.getBoolean("nb.dark.theme"); //NOI18N
}
代码示例来源:origin: jawi/ols
/**
* @return <code>true</code> if a shadow should be drawn behind the labels,
* <code>false</code> otherwise.
*/
public boolean isDrawTextShadow()
{
return UIManager.getBoolean( CHANNELLABELS_DRAW_TEXT_SHADOW );
}
代码示例来源:origin: jawi/ols
/**
* Returns whether or not the analog scope signal itself is rendered in
* anti-aliased mode.
*
* @return <code>true</code> if anti-aliasing should be applied to the scope
* rendering, <code>false</code> otherwise.
*/
public boolean isRenderGroupSummaryAntiAliased()
{
return UIManager.getBoolean( SIGNALVIEW_GROUP_SUMMARY_RENDER_AA );
}
代码示例来源:origin: jawi/ols
/**
* Returns whether or not the analog scope signal itself is rendered in
* anti-aliased mode.
*
* @return <code>true</code> if anti-aliasing should be applied to the scope
* rendering, <code>false</code> otherwise.
*/
public boolean isRenderScopeSignalAntiAliased()
{
return UIManager.getBoolean( SIGNALVIEW_ANALOG_SCOPE_RENDER_AA );
}
代码示例来源:origin: jawi/ols
/**
* Returns whether or not the alternative rendering style for annotations
* should be used.
*
* @return <code>true</code> if an alternative rendering style for annotations
* should be used, <code>false</code> otherwise.
*/
public boolean isRenderAnnotationAlternatively()
{
return UIManager.getBoolean( SIGNALVIEW_ANNOTATION_USE_ALTSTYLE );
}
代码示例来源:origin: jawi/ols
/**
* Returns whether or not the "sloppy" rendering for scopes and signal groups
* should be used.
*
* @return <code>true</code> if sloppy rendering is allowed,
* <code>false</code> otherwise.
*/
public boolean isSloppyScopeRenderingAllowed()
{
return !UIManager.getBoolean( DISABLE_SLOPPY_SCOPE_PAINTING );
}
}
代码示例来源:origin: jawi/ols
/**
* @return <code>true</code> if the analog scope is by default visible,
* <code>false</code> if it is default hidden.
*/
public boolean isAnalogScopeDefaultVisible()
{
return UIManager.getBoolean( UIManagerKeys.ANALOG_SCOPE_VISIBLE_DEFAULT );
}
代码示例来源:origin: jawi/ols
/**
* @return <code>true</code> if a shadow should be drawn behind the text,
* <code>false</code> otherwise.
*/
public boolean isDrawTextShadow()
{
return UIManager.getBoolean( TIMELINE_DRAW_TEXT_SHADOW );
}
代码示例来源:origin: de.sciss/scisslib
protected ClockIcon() {
final boolean isDark = UIManager.getBoolean("dark-skin");
colrOutline = isDark ? colrOutlineDark : colrOutlineLight;
colrInner = isDark ? colrInnerDark : colrInnerLight;
}
代码示例来源:origin: de.sciss/scisslib
/**
* @param orient either HORIZONTAL or VERTICAL
*/
public Axis(int orient, int flags) {
this(orient, flags, UIManager.getBoolean("dark-skin"));
}
代码示例来源:origin: com.jidesoft/jide-oss
public void installDefaults() {
Boolean highContrast = UIManager.getBoolean("Theme.highContrast");
if (highContrast) {
super.installDefaults();
}
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
public void uninstallDefaults() {
Boolean highContrast = UIManager.getBoolean("Theme.highContrast");
if (highContrast) {
super.uninstallDefaults();
}
}
代码示例来源:origin: org.java.net.substance/substance
@Override
protected void installDefaults() {
super.installDefaults();
this.substanceContentOpaque = UIManager
.getBoolean("TabbedPane.contentOpaque");
this.modifiedTimelines = new HashMap<Component, Timeline>();
this.currSelectedIndex = this.tabPane.getSelectedIndex();
}
代码示例来源:origin: com.jidesoft/jide-oss
@Override
public void installDefaults() {
Boolean highContrast = UIManager.getBoolean("Theme.highContrast");
if (highContrast) {
super.installDefaults();
}
}
代码示例来源:origin: com.github.insubstantial/substance
@Override
protected void installDefaults() {
super.installDefaults();
this.substanceContentOpaque = UIManager
.getBoolean("TabbedPane.contentOpaque");
this.modifiedTimelines = new HashMap<Component, Timeline>();
this.currSelectedIndex = this.tabPane.getSelectedIndex();
}
代码示例来源:origin: net.sf.tinylaf/tinylaf
protected void installDefaults() {
super.installDefaults();
((JMenu)menuItem).setDelay(200);
crossMenuMnemonic = UIManager.getBoolean("Menu.crossMenuMnemonic");
}
代码示例来源:origin: jawi/ols
/**
* {@inheritDoc}
*/
@Override
public void setCapturedData( final AcquisitionResult aCapturedData )
{
final DataSetImpl old = this.dataSet;
final boolean retainAnnotations = UIManager.getBoolean( "ols.retain.annotations.boolean" );
setDataSet( new DataSetImpl( aCapturedData, old, retainAnnotations ) );
// Mark this project as modified...
setChanged( true );
}
代码示例来源:origin: atarw/material-ui-swing
@Override
public void installUI (JComponent c) {
super.installUI (c);
JMenu menu = (JMenu) c;
menu.setFont (UIManager.getFont ("Menu.font"));
menu.setBorder (UIManager.getBorder ("Menu.border"));
menu.setBackground (UIManager.getColor ("Menu.background"));
menu.setForeground (UIManager.getColor ("Menu.foreground"));
menu.setOpaque (UIManager.getBoolean ("Menu.opaque"));
}
代码示例来源:origin: atarw/material-ui-swing
@Override
public void installUI (JComponent c) {
super.installUI (c);
AbstractButton button = (AbstractButton) c;
button.setOpaque (UIManager.getBoolean ("Button.opaque"));
button.setBorder (UIManager.getBorder ("Button.border"));
button.setBackground (UIManager.getColor ("Button.background"));
button.setForeground (UIManager.getColor ("Button.foreground"));
button.setFont (UIManager.getFont ("Button.font"));
}
代码示例来源:origin: com.github.arnabk/pgslookandfeel
public static void drawRolloverButtonBorder(Graphics g, int x, int y, int w, int h) {
if (UIManager.getBoolean("Button.rolloverVistaStyle")) {
drawButtonBorder(g, x, y, w - 1, h - 1, PgsLookAndFeel.getGlow());
} else {
drawButtonBorder(g, x + 1, y + 1, w - 3, h - 3, rolloverBorderStroke, PgsLookAndFeel.getGlow());
PgsUtils.drawButtonBorder(g, x, y, w, h);
}
}
内容来源于网络,如有侵权,请联系作者删除!