private static final int getDefaultPosition() { int r=UIManager.getInt("TitledBorder.position"); if((r<=0)||(r>6)) r=2; // TOP return r; }
/** * @return a horizontal padding, in pixels. */ public int getHorizontalPadding() { return UIManager.getInt( CHANNELLABELS_PADDING ); }
/** * Returns the minimal width of the channel labels. * * @return a minimal width, in pixels. */ public int getMinimalWidth() { return UIManager.getInt( CHANNELLABELS_MINIMAL_WIDTH ); }
/** * Returns the major tick height. * * @return a height, in pixels. */ public int getMajorTickHeight() { return UIManager.getInt( TIMELINE_MAJOR_TICK_HEIGHT ); }
/** * Create a MultiSplitLayout with the specified model. * * #see setModel */ public MultiSplitLayout(Node model) { this.model = model; this.dividerSize = UIManager.getInt("SplitPane.dividerSize"); if (this.dividerSize == 0) { this.dividerSize = 7; } }
/** * @return a translucency alpha value, >= 0.0 && <= 100.0f */ public float getAnnotationAlpha() { int value = UIManager.getInt( SIGNALVIEW_ANNOTATION_ALPHA ); return value / 100.0f; }
/** * Returns the gutter width. * * @return a width, in pixels. */ public int getGutterWidth() { return UIManager.getInt( CHANNELLABELS_GUTTER_WIDTH ); }
/** * Returns the minor tick height. * * @return a height, in pixels. */ public int getMinorTickHeight() { return UIManager.getInt( TIMELINE_MINOR_TICK_HEIGHT ); }
/** * Returns the height of the time line component. * * @return a height, in pixels, > 0. */ public int getPreferredHeight() { return UIManager.getInt( TIMELINE_HEIGHT ); }
/** * Returns the height of the individual ticks. * * @return a height, in pixels. */ public int getTickHeight() { return UIManager.getInt( TIMELINE_TICK_HEIGHT ); }
/** * Returns the spacing between two signal elements. * * @return a signal element spacing, in pixels. */ public int getSignalElementSpacing() { return UIManager.getInt( SIGNAL_ELEMENT_SPACING ); }
/** * Returns the padding used for the group summary. * * @return a (horizontal + vertical) padding, in pixels. */ public int getGroupSummaryPadding() { return UIManager.getInt( SIGNALVIEW_GROUP_SUMMARY_PADDING ); }
/** * Returns the arc width. * * @return an arc width, in pixels. */ public int getArcWidth() { return UIManager.getInt( CHANNELLABELS_ARC_WIDTH ); }
/** * Returns the new signal height. * * @return the new signal height, in pixels. */ public int getSignalHeight() { int defaultValue = UIManager.getInt( UIManagerKeys.DIGITAL_SIGNAL_HEIGHT ); return NumberUtils.safeParseInt( this.signalHeightEditor.getText(), defaultValue ); }
/** * Returns the new element height. * * @return the new element height, in pixels. */ public int getElementHeight() { int defaultValue = UIManager.getInt( UIManagerKeys.CHANNEL_HEIGHT ); return NumberUtils.safeParseInt( this.heightEditor.getText(), defaultValue ); }
protected void installDefaults() { progressBar.setOpaque(true); LookAndFeel.installBorder(progressBar, "ProgressBar.border"); LookAndFeel.installColorsAndFont(progressBar, "ProgressBar.background", "ProgressBar.foreground", "ProgressBar.font"); cellLength=UIManager.getInt("ProgressBar.cellLength"); cellSpacing=UIManager.getInt("ProgressBar.cellSpacing"); selectionForeground=UIManager.getColor("ProgressBar.selectionForeground"); selectionBackground=UIManager.getColor("ProgressBar.selectionBackground"); }
@Override protected void installDefaults() { super.installDefaults(); this.displayedValue = progressBar.getValue(); LookAndFeel.installProperty(progressBar, "opaque", Boolean.FALSE); this.speed = (20.0f * UIManager.getInt("ProgressBar.repaintInterval")) / UIManager.getInt("ProgressBar.cycleTime"); float borderThickness = SubstanceSizeUtils .getBorderStrokeWidth(SubstanceSizeUtils .getComponentFontSize(this.progressBar)); this.margin = (int) Math.ceil(1.5 * borderThickness); }
/** Installs the defaults */ protected void installDefaults() { super.installDefaults(); LookAndFeel.installColorsAndFont(desktopIcon, "DesktopIcon.background", "DesktopIcon.foreground", "DesktopIcon.font"); desktopIcon.setOpaque(true); width = UIManager.getInt("DesktopIcon.width"); }