Java Code Examples for com.intellij.util.ui.JBUI#size()
The following examples show how to use
com.intellij.util.ui.JBUI#size() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NewRecentProjectPanel.java From consulo with Apache License 2.0 | 6 votes |
public NewRecentProjectPanel(Disposable parentDisposable, boolean welcomeScreen) { super(parentDisposable); myRootPanel.setBorder(JBUI.Borders.empty()); if(welcomeScreen) { myRootPanel.setBackground(SwingUIDecorator.get(SwingUIDecorator::getSidebarColor)); myScrollPane.setOpaque(false); myScrollPane.getViewport().setOpaque(false); myTargetComponent.setOpaque(false); myList.setOpaque(false); JBDimension size = JBUI.size(300, 460); myScrollPane.setSize(size); myScrollPane.setMinimumSize(size); myScrollPane.setPreferredSize(size); } }
Example 2
Source File: DarculaEditorTextFieldUI.java From consulo with Apache License 2.0 | 6 votes |
@Override public Dimension getMinimumSize(JComponent c) { EditorTextField editorTextField = (EditorTextField)c; Editor editor = editorTextField.getEditor(); Dimension size = JBUI.size(1, 10); if (editor != null) { size.height = editor.getLineHeight(); size.height = Math.max(size.height, JBUIScale.scale(16)); JBInsets.addTo(size, editorTextField.getInsets()); JBInsets.addTo(size, editor.getInsets()); } return size; }
Example 3
Source File: DPIAwareSliderUI.java From consulo with Apache License 2.0 | 5 votes |
@Override protected Dimension getThumbSize() { Dimension size = new Dimension(); if (slider.getOrientation() == JSlider.VERTICAL) { size.width = 20; size.height = 11; } else { size.width = 11; size.height = 20; } return JBUI.size(size); }
Example 4
Source File: UiInspectorAction.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getPreferredSize() { return JBUI.size(150); }
Example 5
Source File: DesktopProjectStructureDialog.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getDefaultSize() { return JBUI.size(1024, 768); }
Example 6
Source File: DPIAwareSliderUI.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getMinimumVerticalSize() { return JBUI.size(21, 36); }
Example 7
Source File: DPIAwareSliderUI.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getMinimumHorizontalSize() { return JBUI.size(36, 21); }
Example 8
Source File: DPIAwareSliderUI.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getPreferredVerticalSize() { return JBUI.size(21, 200); }
Example 9
Source File: DPIAwareSliderUI.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getPreferredHorizontalSize() { return JBUI.size(200, 21); }
Example 10
Source File: DPIAwareArrowButton.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getMinimumSize() { return JBUI.size(super.getMinimumSize()); }
Example 11
Source File: DPIAwareArrowButton.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getPreferredSize() { return JBUI.size(super.getPreferredSize()); }
Example 12
Source File: BasicStatusBarUI.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getMaximumSize(JComponent c) { return JBUI.size(Integer.MAX_VALUE, 23); }
Example 13
Source File: UiInspectorAction.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getMinimumSize() { return JBUI.size(120); }
Example 14
Source File: DesktopColorPicker.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getPreferredSize() { return JBUI.size(100, 32); }
Example 15
Source File: DesktopColorPicker.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getMinimumSize() { return JBUI.size(300, 300); }
Example 16
Source File: SlideComponent.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getMinimumSize() { return myVertical ? JBUI.size(22, 50) : JBUI.size(50, 22); }
Example 17
Source File: SlideComponent.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getPreferredSize() { return myVertical ? JBUI.size(22, 100) : JBUI.size(100, 22); }
Example 18
Source File: RecentProjectPanel.java From consulo with Apache License 2.0 | 4 votes |
protected Dimension getPreferredScrollableViewportSize() { return JBUI.size(250, 400); }
Example 19
Source File: FileTypeConfigurable.java From consulo with Apache License 2.0 | 4 votes |
@Override public Dimension getPreferredSize() { return JBUI.size(0, 20); }
Example 20
Source File: ThreeDiffSplitter.java From consulo with Apache License 2.0 | 4 votes |
public Dimension getPreferredSize() { return JBUI.size(30, 1); }