public class GCScheme extends Object implements GConstants
Modifier and Type | Field and Description |
---|---|
int |
acbBorder |
int |
acbFirst |
int |
acbLast |
int |
acbTrack |
static int |
ALPHA_MASK |
static int |
BLUE_SCHEME |
int |
btnBorder |
int |
btnDown |
int |
btnFont |
int |
btnOff |
int |
btnOver |
int |
cbxBack |
int |
cbxBorder |
int |
cbxFont |
static int |
COL_MASK |
static int |
CYAN_SCHEME |
static int |
GREEN_SCHEME |
static int |
GREY_SCHEME |
int |
knobBorder |
int |
knobFill |
int |
knobNeedle |
int |
knobTicks |
int |
knobTrack |
int |
lblBack |
int |
lblBorder |
int |
lblFont |
int |
optBack |
int |
optBorder |
int |
optFont |
int |
pnlBack |
int |
pnlBorder |
int |
pnlFont |
int |
pnlTabBack |
static int |
PURPLE_SCHEME |
static int |
RED_SCHEME |
int |
schemeNo |
int |
sdrBorder |
int |
sdrThumb |
int |
sdrTrack |
int |
txfBack |
int |
txfBorder |
int |
txfCursor |
int |
txfFont |
int |
txfSelBack |
static int |
YELLOW_SCHEME |
ADD_DUPLICATE, BACKGROUND, CHANGED, CLICKED, CLOSE_WINDOW, COLLAPSED, CTRL_ANGULAR, CTRL_HORIZONTAL, CTRL_VERTICAL, DESELECTED, DISABLE_AUTO_DRAW, DRAGGED, ENTERED, EXCP_IN_HANDLER, EXIT_APP, EXPANDED, FAMILY, FOREGROUND, HUD_UNSUPPORTED, INVALID_STATUS, JUSTIFICATION, JUSTIFICATION_FULL, JUSTIFICATION_NONE, KEEP_OPEN, MISSING, NONEXISTANT, NOT_PEASYCAM, POSTURE, POSTURE_OBLIQUE, POSTURE_REGULAR, PRESSED, RELEASED, RUNTIME_ERROR, SCROLL_DOWN, SCROLL_LEFT, SCROLL_RIGHT, SCROLL_UP, SCROLLBAR_HORIZONTAL, SCROLLBAR_VERTICAL, SCROLLBARS_AUTOHIDE, SCROLLBARS_BOTH, SCROLLBARS_HORIZONTAL_ONLY, SCROLLBARS_NONE, SCROLLBARS_VERTICAL_ONLY, SELECTED, SET, SIZE, STRIKETHROUGH, STRIKETHROUGH_OFF, STRIKETHROUGH_ON, SUPERSCRIPT, SUPERSCRIPT_SUB, SUPERSCRIPT_SUPER, USER_COL_SCHEME, WEIGHT, WEIGHT_BOLD, WEIGHT_DEMIBOLD, WEIGHT_DEMILIGHT, WEIGHT_EXTRA_LIGHT, WEIGHT_EXTRABOLD, WEIGHT_HEAVY, WEIGHT_LIGHT, WEIGHT_MEDIUM, WEIGHT_REGULAR, WEIGHT_SEMIBOLD, WEIGHT_ULTRABOLD, WIDTH, WIDTH_CONDENSED, WIDTH_EXTENDED, WIDTH_REGULAR, WIDTH_SEMI_CONDENSED, WIDTH_SEMI_EXTENDED
Constructor and Description |
---|
GCScheme()
Create a default (blue) scheme
|
GCScheme(GCScheme gcScheme)
Copy ctor
|
GCScheme(int csn)
Create a scheme for a given scheme number
|
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Get the transparency level
|
static GCScheme |
getColor(PApplet theApplet)
Set the default color scheme
|
static GCScheme |
getColor(PApplet theApplet,
int schemeNo)
Set the color scheme to one of the preset schemes
BLUE / GREEN / RED / PURPLE / YELLOW / CYAN / GREY
or if you have created your own schemes following the instructions
at gui4processing.lagers.org.uk/colorscheme.html then you can enter
the appropriate numeric value of the scheme.
|
void |
setAlpha(int alpha)
Changes the alpha level for all elements of the scheme.
|
static int |
setAlpha(int col,
int alpha) |
public static final int BLUE_SCHEME
public static final int GREEN_SCHEME
public static final int RED_SCHEME
public static final int PURPLE_SCHEME
public static final int YELLOW_SCHEME
public static final int CYAN_SCHEME
public static final int GREY_SCHEME
public static final int COL_MASK
public static final int ALPHA_MASK
public int schemeNo
public int pnlFont
public int pnlTabBack
public int pnlBack
public int pnlBorder
public int btnFont
public int btnOff
public int btnOver
public int btnDown
public int btnBorder
public int sdrTrack
public int sdrThumb
public int sdrBorder
public int txfFont
public int txfBack
public int txfSelBack
public int txfBorder
public int txfCursor
public int lblFont
public int lblBack
public int lblBorder
public int optFont
public int optBack
public int optBorder
public int cbxFont
public int cbxBack
public int cbxBorder
public int acbBorder
public int acbTrack
public int acbFirst
public int acbLast
public int knobBorder
public int knobFill
public int knobTrack
public int knobTicks
public int knobNeedle
public GCScheme()
public GCScheme(int csn)
csn
- public GCScheme(GCScheme gcScheme)
gcScheme
- scheme to copypublic static int setAlpha(int col, int alpha)
public static GCScheme getColor(PApplet theApplet)
theApplet
- public static GCScheme getColor(PApplet theApplet, int schemeNo)
theApplet
- schemeNo
- public void setAlpha(int alpha)
alpha
- in the range 0 (fully transparent) to 255 (fully opaque)public int getAlpha()
Processing library guicomponents by Peter Lager. (C) 2012