org.openbp.common.icon
Interface FlexibleSize

All Known Subinterfaces:
MultiIcon
All Known Implementing Classes:
MultiImageIcon, OverlayIcon

public interface FlexibleSize

JComponents that are implementing this interface are capable of displaying Jaspira multi size icons (MultiIcon), either directly or in one of their child components. Methods of this interface can be used to set the icon size, which should be inherited by qualifying child components.

Author:
Stephan Moritz

Field Summary
static int HUGE
          Standard large size (48 pixel)
static int LARGE
          Standard large size (32 pixel)
static int MEDIUM
          Standard medium size (24 pixel)
static int SMALL
          Standard small size (16 pixel)
static int STANDARD
          Standard size for icons (16 pixel)
static int UNDETERMINED
          Undetermined size
 
Method Summary
 int getIconSize()
          Gets the current icon size.
 void setIconSize(int size)
          Sets the current icon size.
 

Field Detail

UNDETERMINED

static final int UNDETERMINED
Undetermined size

See Also:
Constant Field Values

SMALL

static final int SMALL
Standard small size (16 pixel)

See Also:
Constant Field Values

MEDIUM

static final int MEDIUM
Standard medium size (24 pixel)

See Also:
Constant Field Values

LARGE

static final int LARGE
Standard large size (32 pixel)

See Also:
Constant Field Values

HUGE

static final int HUGE
Standard large size (48 pixel)

See Also:
Constant Field Values

STANDARD

static final int STANDARD
Standard size for icons (16 pixel)

See Also:
Constant Field Values
Method Detail

getIconSize

int getIconSize()
Gets the current icon size.

Returns:
The icon size descriptor (STANDARD/SMALL/ MEDIUM/LARGE/HUGE)

setIconSize

void setIconSize(int size)
Sets the current icon size.

Parameters:
size - The icon size descriptor (STANDARD/SMALL/ MEDIUM/LARGE/HUGE)


Copyright © 2011. All Rights Reserved.