private static boolean isDarkLaF() { return UIManager.getBoolean("nb.dark.theme"); //NOI18N }
/** * @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 ); }
/** * 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 ); }
/** * 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 ); }
/** * 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 ); }
/** * 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 ); } }
/** * @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 ); }
/** * @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 ); }
protected ClockIcon() { final boolean isDark = UIManager.getBoolean("dark-skin"); colrOutline = isDark ? colrOutlineDark : colrOutlineLight; colrInner = isDark ? colrInnerDark : colrInnerLight; }
/** * @param orient either HORIZONTAL or VERTICAL */ public Axis(int orient, int flags) { this(orient, flags, UIManager.getBoolean("dark-skin")); }
public void installDefaults() { Boolean highContrast = UIManager.getBoolean("Theme.highContrast"); if (highContrast) { super.installDefaults(); } }
@Override public void uninstallDefaults() { Boolean highContrast = UIManager.getBoolean("Theme.highContrast"); if (highContrast) { super.uninstallDefaults(); } }
@Override protected void installDefaults() { super.installDefaults(); this.substanceContentOpaque = UIManager .getBoolean("TabbedPane.contentOpaque"); this.modifiedTimelines = new HashMap<Component, Timeline>(); this.currSelectedIndex = this.tabPane.getSelectedIndex(); }
@Override public void installDefaults() { Boolean highContrast = UIManager.getBoolean("Theme.highContrast"); if (highContrast) { super.installDefaults(); } }
@Override protected void installDefaults() { super.installDefaults(); this.substanceContentOpaque = UIManager .getBoolean("TabbedPane.contentOpaque"); this.modifiedTimelines = new HashMap<Component, Timeline>(); this.currSelectedIndex = this.tabPane.getSelectedIndex(); }
protected void installDefaults() { super.installDefaults(); ((JMenu)menuItem).setDelay(200); crossMenuMnemonic = UIManager.getBoolean("Menu.crossMenuMnemonic"); }
/** * {@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 ); }
@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")); }
@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")); }
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); } }