本文整理汇总了Java中com.intellij.util.ui.JBUI.size方法的典型用法代码示例。如果您正苦于以下问题:Java JBUI.size方法的具体用法?Java JBUI.size怎么用?Java JBUI.size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.util.ui.JBUI
的用法示例。
在下文中一共展示了JBUI.size方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createArrowButton
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
protected JButton createArrowButton() {
final Color bg = myComboBox.getBackground();
final Color fg = myComboBox.getForeground();
JButton button = new BasicArrowButton(SwingConstants.SOUTH, bg, fg, fg, fg) {
@Override
public void paint(Graphics g2) {
Icon icon = MacIntelliJIconCache.getIcon("comboRight", false, myComboBox.hasFocus(), myComboBox.isEnabled());
icon.paintIcon(this, g2, 0, 0);
}
@Override
public Dimension getPreferredSize() {
return JBUI.size(DEFAULT_ICON.getIconWidth(), DEFAULT_ICON.getIconHeight());
}
};
button.setBorder(BorderFactory.createEmptyBorder());
button.setOpaque(false);
return button;
}
示例2: getPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@NotNull
@Override
public Dimension getPreferredSize() {
final Dimension preferredSize = super.getPreferredSize();
return myDurationWidth < 0 || ((TestTreeView)myTree).isExpandableHandlerVisibleForCurrentRow(myRow)
? preferredSize
: JBUI.size(preferredSize.width + myDurationWidth, preferredSize.height);
}
示例3: MySeparator
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
public MySeparator() {
if (myOrientation == SwingConstants.HORIZONTAL) {
mySize = JBUI.size(6, 24);
}
else {
mySize = JBUI.size(24, 6);
}
}
示例4: createCenterPanel
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Nullable
@Override
protected JComponent createCenterPanel() {
final DirectoryProjectGenerator[] generators = Extensions.getExtensions(DirectoryProjectGenerator.EP_NAME);
setTitle(generators.length == 0 ? "Create Project" : "Select Project Type");
final DefaultActionGroup root = createRootStep();
final Pair<JPanel, JBList> panel = FlatWelcomeFrame.createActionGroupPanel(root, getRootPane(), null);
final Dimension size = JBUI.size(666, 385);
final JPanel component = panel.first;
component.setMinimumSize(size);
component.setPreferredSize(size);
new AnAction() {
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
close(CANCEL_EXIT_CODE);
}
}.registerCustomShortcutSet(KeyEvent.VK_ESCAPE, 0, component);
myList = panel.second;
UiNotifyConnector.doWhenFirstShown(myList, new Runnable() {
@Override
public void run() {
ScrollingUtil.ensureSelectionExists(myList);
}
});
return component;
}
示例5: getPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getPreferredSize() {
return JBUI.size(600, 400);
}
示例6: getPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getPreferredSize() {
return JBUI.size(1024, 768);
}
示例7: getPanelPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
protected Dimension getPanelPreferredSize() {
return JBUI.size(800, 600);
}
示例8: getPreferredScrollableViewportSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
protected Dimension getPreferredScrollableViewportSize() {
return JBUI.size(250, 400);
}
示例9: getMinimumSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getMinimumSize() {
return JBUI.size(24, MIN_ICON_HEIGHT);
}
示例10: getPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getPreferredSize() {
return JBUI.size(1200, 768);
}
示例11: getMinimumSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getMinimumSize() {
return JBUI.size(300, 300);
}
示例12: getPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getPreferredSize() {
return JBUI.size(100, 32);
}
示例13: getWindowPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
protected Dimension getWindowPreferredSize() {
return JBUI.size(600, 350);
}
示例14: getPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getPreferredSize() {
return JBUI.size(55, 11);
}
示例15: getPreferredSize
import com.intellij.util.ui.JBUI; //导入方法依赖的package包/类
@Override
public Dimension getPreferredSize() {
return JBUI.size(600, 300);
}