Modifier and Type | Field and Description |
---|---|
static MenuItem[] |
clipItems |
static Object |
clipObject |
static Control |
clipOwner |
static Control |
debugControl |
static boolean |
debugFlag |
static boolean |
doubleBuffer |
static int |
doubleClickTime |
static int |
doubleSizedFontHeight
This value defaults to 24 but can be changed to affect the return value of isDoubleSizedFont().
|
static boolean |
firstPress |
static boolean |
globalEditable |
static boolean |
globalEnabled |
static int |
PEN_STATUS_DID_HOLD_DOWN |
static int |
PEN_STATUS_GOT_PEN_DOWN |
static int |
PEN_STATUS_PEN_IS_ON |
static Point |
pressPoint |
static int |
TAG_BOOLEAN_KEEP_BELOW_SIP |
static int |
TAG_HOVER_TIME_INT |
static int |
TAG_LAST_USER_DATA
You can use tags from TAG_USER_DATA up to and including TAG_LAST_USER_DATA, which
spans 1000 tags.
|
static int |
TAG_USER_DATA
You can use tags from TAG_USER_DATA up to and including TAG_LAST_USER_DATA, which
spans 1000 tags.
|
static int |
TAKE_FIRST_PRESS |
static String |
unnamed
This is set to be the current PenEvent in the onPenEvent() handler.
|
Constructor and Description |
---|
ControlBase() |
Modifier and Type | Method and Description |
---|---|
static ImageData |
doubleSizeIt(ImageData im)
Double size the image only if it has a dimension less than 18
and if the font is double sized.
|
static int |
getGuiTextHeight() |
static boolean |
isDoubleSized()
Deprecated.
use isDoubleSizedFont() if you must.
|
static boolean |
isDoubleSizedFont()
Deprecated.
it is best you use getGuiTextHeight() and base your icon sizing on that rather than on
this method.
|
static IImage |
loadImage(String imageName)
A convenience method for loading a picture via the cache - throwing an Exception
if it could not be found and could not be loaded.
|
static IImage |
tryLoadImage(String imageName,
IImage defaultImage)
A convenience method for loading a picture via the cache.
|
public static final int PEN_STATUS_GOT_PEN_DOWN
public static final int PEN_STATUS_DID_HOLD_DOWN
public static final int PEN_STATUS_PEN_IS_ON
public static boolean doubleBuffer
public static final int TAG_BOOLEAN_KEEP_BELOW_SIP
public static final int TAKE_FIRST_PRESS
public static final int TAG_USER_DATA
public static final int TAG_LAST_USER_DATA
public static final int TAG_HOVER_TIME_INT
public static boolean globalEnabled
public static boolean globalEditable
public static int doubleClickTime
public static Point pressPoint
public static boolean firstPress
public static Control clipOwner
public static String unnamed
public static Control debugControl
public static boolean debugFlag
public static Object clipObject
public static MenuItem[] clipItems
public static int doubleSizedFontHeight
public static IImage loadImage(String imageName)
imageName
- the name of the image. If it is null then null will be returned.public static int getGuiTextHeight()
public static boolean isDoubleSizedFont()
public static boolean isDoubleSized()
public static ImageData doubleSizeIt(ImageData im)
im
- the image.public static IImage tryLoadImage(String imageName, IImage defaultImage)
imageName
- the name of the image. If it is null then the defaultImage will be
returned.defaultImage
- a default image to return if the image could not be found and could not be loaded.