本文整理了Java中javax.swing.UIManager.getInt()
方法的一些代码示例,展示了UIManager.getInt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UIManager.getInt()
方法的具体详情如下:
包路径:javax.swing.UIManager
类名称:UIManager
方法名:getInt
暂无
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-bu
private static final int getDefaultPosition()
{
int r=UIManager.getInt("TitledBorder.position");
if((r<=0)||(r>6)) r=2; // TOP
return r;
}
代码示例来源:origin: jawi/ols
/**
* @return a horizontal padding, in pixels.
*/
public int getHorizontalPadding()
{
return UIManager.getInt( CHANNELLABELS_PADDING );
}
代码示例来源:origin: jawi/ols
/**
* Returns the minimal width of the channel labels.
*
* @return a minimal width, in pixels.
*/
public int getMinimalWidth()
{
return UIManager.getInt( CHANNELLABELS_MINIMAL_WIDTH );
}
代码示例来源:origin: jawi/ols
/**
* Returns the major tick height.
*
* @return a height, in pixels.
*/
public int getMajorTickHeight()
{
return UIManager.getInt( TIMELINE_MAJOR_TICK_HEIGHT );
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
/**
* 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;
}
}
代码示例来源:origin: jawi/ols
/**
* @return a translucency alpha value, >= 0.0 && <= 100.0f
*/
public float getAnnotationAlpha()
{
int value = UIManager.getInt( SIGNALVIEW_ANNOTATION_ALPHA );
return value / 100.0f;
}
代码示例来源:origin: jawi/ols
/**
* Returns the gutter width.
*
* @return a width, in pixels.
*/
public int getGutterWidth()
{
return UIManager.getInt( CHANNELLABELS_GUTTER_WIDTH );
}
代码示例来源:origin: jawi/ols
/**
* Returns the minor tick height.
*
* @return a height, in pixels.
*/
public int getMinorTickHeight()
{
return UIManager.getInt( TIMELINE_MINOR_TICK_HEIGHT );
}
代码示例来源:origin: jawi/ols
/**
* Returns the height of the time line component.
*
* @return a height, in pixels, > 0.
*/
public int getPreferredHeight()
{
return UIManager.getInt( TIMELINE_HEIGHT );
}
代码示例来源:origin: jawi/ols
/**
* Returns the height of the individual ticks.
*
* @return a height, in pixels.
*/
public int getTickHeight()
{
return UIManager.getInt( TIMELINE_TICK_HEIGHT );
}
代码示例来源:origin: jawi/ols
/**
* Returns the spacing between two signal elements.
*
* @return a signal element spacing, in pixels.
*/
public int getSignalElementSpacing()
{
return UIManager.getInt( SIGNAL_ELEMENT_SPACING );
}
代码示例来源:origin: jawi/ols
/**
* 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 );
}
代码示例来源:origin: jawi/ols
/**
* Returns the arc width.
*
* @return an arc width, in pixels.
*/
public int getArcWidth()
{
return UIManager.getInt( CHANNELLABELS_ARC_WIDTH );
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
public Dimension getPreviewWindowDimension(Container parent,
Component component, int componentIndex) {
return new Dimension(UIManager.getInt("DesktopIcon.width"), UIManager
.getInt("DesktopIcon.width"));
}
}
代码示例来源:origin: jawi/ols
/**
* 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 );
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
public SplitPaneDivider(BasicSplitPaneUI ui)
{
super(ui);
this.ui=ui;
standardSize=UIManager.getInt("SplitPane.dividerSize");
oneTouchSize=UIManager.getInt("SplitPane.oneTouchDividerSize");
setLayout(new MetalDividerLayout());
}
代码示例来源:origin: jawi/ols
/**
* 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 );
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
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");
}
代码示例来源:origin: com.github.insubstantial/substance
@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);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
/** 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");
}
内容来源于网络,如有侵权,请联系作者删除!