File: BottomBarSize.java

package info (click to toggle)
mac-widgets 0.10.0%2Bsvn416-dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,968 kB
  • ctags: 2,003
  • sloc: java: 9,909; makefile: 13; sh: 12
file content (28 lines) | stat: -rw-r--r-- 946 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.explodingpixels.macwidgets;

/**
 * An enumeration encapsulating the possible sizes of a Bottom Bar. The sizes called out in the
 * <a href="http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/chapter_18_section_4.html#//apple_ref/doc/uid/20000961-SW6">Apple Human Interface Guideline</a>
 * are 22 pixel and 32 pixel areas. These correspond to the {@link #SMALL} and {@link #LARGE}
 * sizes. The {@link #EXTRA_SMALL} size isn't officially in the HIG, but can be seen in use in
 * Safari's status bar for example.
 */
public enum BottomBarSize {

    EXTRA_SMALL(14), SMALL(22), LARGE(32);

    private int fHeight;

    BottomBarSize(int height) {
        fHeight = height;
    }

    /**
     * Gets the height in pixels that this size represents.
     *
     * @return the height in pixels that this size represents.
     */
    public int getHeight() {
        return fHeight;
    }
}