View Javadoc

1   /*
2    * Copyright 2006-2016 The JGUIraffe Team.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License")
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package net.sf.jguiraffe.gui.builder.components.model;
17  
18  /**
19   * <p>
20   * An enumeration class that defines the alignment of the text and the icon of a
21   * label or button-like component.
22   * </p>
23   * <p>
24   * This enumeration type is always used to define alignments of GUI controls
25   * that support both a text and an icon. The names of the defined alginment
26   * constants can also be passed to the <code>alignment</code> property of the
27   * tags for those components.
28   * </p>
29   *
30   * @author Oliver Heger
31   * @version $Id: TextIconAlignment.java 205 2012-01-29 18:29:57Z oheger $
32   */
33  public enum TextIconAlignment
34  {
35      /**
36       * Constant for the alignment LEFT: The icon is left to the text. This is
37       * the default alignment.
38       */
39      LEFT,
40  
41      /** Constant for the alignment CENTER: The icon is centered.*/
42      CENTER,
43  
44      /** Constant for the alignment RIGHT: The icon is right to the text. */
45      RIGHT
46  }