Lines Matching refs:position

50             ComponentPlacement type, int position, Container parent) {
55 checkPosition(position);
58 (position == SwingConstants.EAST ||
59 position == SwingConstants.WEST)) {
60 int indent = getIndent(component1, position);
69 public int getContainerGap(JComponent component, int position,
74 checkPosition(position);
83 int position) {
84 if (position == SwingConstants.EAST ||
85 position == SwingConstants.WEST) {
102 * @param position Position doing layout along.
107 int position, int offset) {
108 offset -= getButtonGap(source, position);
110 offset -= getButtonGap(target, flipDirection(position));
126 * @param position Position doing layout along.
130 protected int getButtonGap(JComponent source, int position, int offset) {
131 offset -= getButtonGap(source, position);
139 public int getButtonGap(JComponent c, int position) {
145 return getInset(c, position);
151 private void checkPosition(int position) {
152 if (position != SwingConstants.NORTH &&
153 position != SwingConstants.SOUTH &&
154 position != SwingConstants.WEST &&
155 position != SwingConstants.EAST) {
160 protected int flipDirection(int position) {
161 switch(position) {
180 protected int getIndent(JComponent c, int position) {
187 if (isLeftAligned(button, position)) {
189 } else if (isRightAligned(button, position)) {
216 private boolean isLeftAligned(AbstractButton button, int position) {
217 if (position == SwingConstants.WEST) {
227 private boolean isRightAligned(AbstractButton button, int position) {
228 if (position == SwingConstants.EAST) {
238 private int getInset(JComponent c, int position) {
239 return getInset(c.getInsets(), position);
242 private int getInset(Insets insets, int position) {
246 switch(position) {