Interface FPConstants


public interface FPConstants

This interface declares various constants that are used in the FacePamphlet application. To use the constants in this interface, all you need to do is add FPConstants to the implements clause for your class.


Field Summary
static int APPLICATION_HEIGHT
          The height of the application window.
static int APPLICATION_WIDTH
          The width of the application window.
static double BOTTOM_MARGIN
          The number of pixels in the vertical margin between the bottom of the canvas display area and the baseline of the Message display in the profile.
static double IMAGE_HEIGHT
          The maximum height (in pixels) that profile images should be displayed.
static String IMAGE_KEY
          The standardized constant for the key that represents the user's image.
static double IMAGE_STATUS_SEP
          The number of vertical pixels in the vertical margin between the bottom of the Image and the top of the Status component in the profile.
static String INTERESTS_KEY
          The standardized constant for the key that represents the user's interests.
static double LEFT_MARGIN
          The number of pixels in the horizontal margin between the left side of the canvas display area and the Name, Image, Status, and Message components that are displayed in the profile.
static String MESSAGE_FONT
          Name of font used to display the application message at the bottom of the display canvas.
static double NAME_IMAGE_SEP
          The number of pixels in the vertical margin between the baseline of the Name component and the top of the Image displayed in the profile.
static String NAME_KEY
          The standardized constant for the key that represents the full name of a user.
static String PASSWORD_KEY
          The standardized constant for the key that represents the user's password.
static String PROFILE_IMAGE_FONT
          Name of font used to display the text "No Image" in user profiles that do not contain an actual image.
static String PROFILE_NAME_FONT
          Name of font used to display the name in a user's profile.
static String PROFILE_STATUS_FONT
          Name of font used to display the status in a user's profile.
static double RIGHT_MARGIN
          The number of pixels in the horizontal margin between the right side of the canvas display area and the Name, Image, and Status components that are displayed in the profile.
static String STATUS_KEY
          The standardized constant for the key that represents the user's status.
static double TOP_MARGIN
          The number of pixels in the vertical margin between the top of the canvas display area and the top (NOT the baseline) of the Name component that is displayed in the profile.
static String WALL_KEY
          The standardized constant for the key that represents the user's wall.
 

Field Detail

APPLICATION_WIDTH

static final int APPLICATION_WIDTH
The width of the application window.

See Also:
Constant Field Values

APPLICATION_HEIGHT

static final int APPLICATION_HEIGHT
The height of the application window.

See Also:
Constant Field Values

MESSAGE_FONT

static final String MESSAGE_FONT
Name of font used to display the application message at the bottom of the display canvas.

See Also:
Constant Field Values

PROFILE_NAME_FONT

static final String PROFILE_NAME_FONT
Name of font used to display the name in a user's profile.

See Also:
Constant Field Values

PROFILE_IMAGE_FONT

static final String PROFILE_IMAGE_FONT
Name of font used to display the text "No Image" in user profiles that do not contain an actual image.

See Also:
Constant Field Values

PROFILE_STATUS_FONT

static final String PROFILE_STATUS_FONT
Name of font used to display the status in a user's profile.

See Also:
Constant Field Values

IMAGE_HEIGHT

static final double IMAGE_HEIGHT
The maximum height (in pixels) that profile images should be displayed. The maximum width is the width of the graphics window minus the margins.

See Also:
Constant Field Values

LEFT_MARGIN

static final double LEFT_MARGIN
The number of pixels in the horizontal margin between the left side of the canvas display area and the Name, Image, Status, and Message components that are displayed in the profile.

See Also:
Constant Field Values

RIGHT_MARGIN

static final double RIGHT_MARGIN
The number of pixels in the horizontal margin between the right side of the canvas display area and the Name, Image, and Status components that are displayed in the profile.

See Also:
Constant Field Values

TOP_MARGIN

static final double TOP_MARGIN
The number of pixels in the vertical margin between the top of the canvas display area and the top (NOT the baseline) of the Name component that is displayed in the profile.

See Also:
Constant Field Values

NAME_IMAGE_SEP

static final double NAME_IMAGE_SEP
The number of pixels in the vertical margin between the baseline of the Name component and the top of the Image displayed in the profile.

See Also:
Constant Field Values

IMAGE_STATUS_SEP

static final double IMAGE_STATUS_SEP
The number of vertical pixels in the vertical margin between the bottom of the Image and the top of the Status component in the profile.

See Also:
Constant Field Values

BOTTOM_MARGIN

static final double BOTTOM_MARGIN
The number of pixels in the vertical margin between the bottom of the canvas display area and the baseline of the Message display in the profile.

See Also:
Constant Field Values

NAME_KEY

static final String NAME_KEY
The standardized constant for the key that represents the full name of a user. The name field is public and can be read even by callers who are not friends with the owner.

See Also:
Constant Field Values

PASSWORD_KEY

static final String PASSWORD_KEY
The standardized constant for the key that represents the user's password. The password field is private, which means that it can be read and written only by the user who owns that id.

See Also:
Constant Field Values

IMAGE_KEY

static final String IMAGE_KEY
The standardized constant for the key that represents the user's image. The image field is protected, which means that it can be read only by friends of the owner.

See Also:
Constant Field Values

STATUS_KEY

static final String STATUS_KEY
The standardized constant for the key that represents the user's status. The status field is protected, which means that it can be read only by friends of the owner.

See Also:
Constant Field Values

WALL_KEY

static final String WALL_KEY
The standardized constant for the key that represents the user's wall. The text of the wall field is treated specially by the server: only friends can read the text, but any user can append a message to it using the addMessageToWall method in the FPRepository class.

See Also:
Constant Field Values

INTERESTS_KEY

static final String INTERESTS_KEY
The standardized constant for the key that represents the user's interests. The text of the interests field is public, which makes it possible to find people by looking for matching interests.

See Also:
Constant Field Values