Interfascia

Class Listing

IFTextField
IFRadioController
IFRadioButton
IFProgressBar
IFLookAndFeel
IFLabel
IFCheckBox
IFButton
GUIEvent
actionPerformed
GUIController

Examples

Text Field
Temperature Converter
Radio Buttons
Custom Widget Color
Button

IFLookAndFeel

The IFLookAndFeel object specifies colors for Interfascia widgets.

Method Summary

IFLookAndFeel(char type)

  • type, the type of look and feel to use (currently, only `DEFAULT` is implemented).

IFLookAndFeel(PApplet parent, char type)

  • parent, the Processing applet that is using the Interfascia library.
  • type, the type of look and feel to use (currently, only `DEFAULT` is implemented).

Field Summary

static final int DEFAULT

  • The default look and feel color scheme.

int baseColor

  • The default background color for Interfascia components.

int borderColor

  • The border color for Interfascia components.

int selectionColor

  • The color used for selected text in an Interfascia text field.

int highlightColor

  • The color for the background of an Interfascia component with mouse or keyboard focus.

int activeColor

  • The color for the background of an Interfascia widget while it is clicked.

int textColor

  • The color for text in an Interfascia GUI component.

int lightGrayColor

  • Light gray, used for the selection dot in `IFRadioButton`.

int darkGrayColor

  • Dark gray, used for the insertion point in `IFTextField` and the check in `IFCheckBox`.

Example

greenLook = new IFLookAndFeel(this, IFLookAndFeel.DEFAULT);
greenLook.baseColor = color(100, 180, 100);
greenLook.highlightColor = color(70, 135, 70);