1 19 20 package org.netbeans.core.windows; 21 22 import java.awt.Dimension ; 23 import javax.swing.JSplitPane ; 24 import org.netbeans.swing.tabcontrol.TabbedContainer; 25 import org.openide.util.Utilities; 26 27 32 public abstract class Constants { 33 34 35 public static final int EDITOR_AREA_JOINED = 0; 36 public static final int EDITOR_AREA_SEPARATED = 1; 37 38 39 public static final int MODE_STATE_JOINED = 0; 40 public static final int MODE_STATE_SEPARATED = 1; 41 42 43 public static final int MODE_KIND_EDITOR = TabbedContainer.TYPE_EDITOR; 44 public static final int MODE_KIND_VIEW = TabbedContainer.TYPE_VIEW; 45 public static final int MODE_KIND_SLIDING = TabbedContainer.TYPE_SLIDING; 46 47 48 public static final int VERTICAL = JSplitPane.VERTICAL_SPLIT; 49 50 public static final int HORIZONTAL = JSplitPane.HORIZONTAL_SPLIT; 51 52 53 public static final String TOP = JSplitPane.TOP; 54 public static final String BOTTOM = JSplitPane.BOTTOM; 55 public static final String LEFT = JSplitPane.LEFT; 56 public static final String RIGHT = JSplitPane.RIGHT; 57 58 public static final int DIVIDER_SIZE_VERTICAL = 4; 59 public static final int DIVIDER_SIZE_HORIZONTAL = 5; 60 61 62 public static final int DROP_AREA_SIZE = 20; 63 64 65 public static final int DRAG_GESTURE_START_DISTANCE = 10; 66 68 public static final int DRAG_GESTURE_START_TIME = 200; 69 70 72 public static final double DROP_TO_SIDE_RATIO = 0.25D; 73 74 public static final double DROP_BETWEEN_RATIO = 1.0D/3; 75 76 public static final double DROP_AROUND_RATIO = 0.25D; 77 78 80 public static final Dimension DROP_NEW_MODE_SIZE = new Dimension (300, 200); 81 82 83 85 public static final String TOPCOMPONENT_ALLOW_DOCK_ANYWHERE = "TopComponentAllowDockAnywhere"; 87 90 public static final String SEPARATE_WINDOW_PROPERTY = "SeparateWindow"; 91 92 95 public static final boolean SWITCH_MODE_ADD_NO_RESTRICT = Boolean.getBoolean("netbeans.winsys.allow.dock.anywhere"); 98 public static final boolean SWITCH_DND_DISABLE = Boolean.getBoolean("netbeans.winsys.disable_dnd"); 100 public static final boolean SWITCH_DROP_INDICATION_FADE = Boolean.getBoolean("netbeans.winsys.dndfade.on"); 102 public static final boolean SWITCH_STATUSLINE_IN_MENUBAR = Boolean.getBoolean("netbeans.winsys.statusLine.in.menuBar"); 104 105 public static final String SWITCH_IMAGE_SOURCE = System.getProperty("netbeans.winsys.imageSource"); 107 109 public static final boolean SWITCH_HIDE_EMPTY_DOCUMENT_AREA = Boolean.getBoolean("netbeans.winsys.hideEmptyDocArea"); 111 public static final boolean SWITCH_USE_DRAG_IMAGES = Boolean.getBoolean("netbeans.winsys.dragimage") || Utilities.isMac(); 117 118 119 public static final boolean NO_TOOLBARS = Boolean.getBoolean("netbeans.winsys.no_toolbars"); 121 122 public static final String CUSTOM_MENU_BAR_PATH = System.getProperty("netbeans.winsys.menu_bar.path"); 124 125 public static final String CUSTOM_STATUS_LINE_PATH = System.getProperty("netbeans.winsys.status_line.path"); 127 private Constants() {} 128 } 129 | Popular Tags |