1 30 31 package com.jgoodies.forms.util; 32 33 import com.jgoodies.forms.layout.ConstantSize; 34 import com.jgoodies.forms.layout.Size; 35 36 49 50 public abstract class LayoutStyle { 51 52 55 private static LayoutStyle current = WindowsLayoutStyle.INSTANCE; 56 57 58 60 65 public static LayoutStyle getCurrent() { 66 return current; 67 } 68 69 72 public static void setCurrent(LayoutStyle newLayoutStyle) { 73 current = newLayoutStyle; 74 } 75 76 77 79 84 abstract public Size getDefaultButtonWidth(); 85 86 91 abstract public Size getDefaultButtonHeight(); 92 93 98 abstract public ConstantSize getDialogMarginX(); 99 100 105 abstract public ConstantSize getDialogMarginY(); 106 107 112 abstract public ConstantSize getLabelComponentPadX(); 113 114 119 abstract public ConstantSize getRelatedComponentsPadX(); 120 121 126 abstract public ConstantSize getRelatedComponentsPadY(); 127 128 133 abstract public ConstantSize getUnrelatedComponentsPadX(); 134 135 140 abstract public ConstantSize getUnrelatedComponentsPadY(); 141 142 147 abstract public ConstantSize getLinePad(); 148 149 154 abstract public ConstantSize getNarrowLinePad(); 155 156 161 abstract public ConstantSize getParagraphPad(); 162 163 } | Popular Tags |