mkv.MyGUI
Class MyGUIStyle

java.lang.Object
  extended bymkv.MyGUI.MyGUIStyle

public class MyGUIStyle
extends java.lang.Object

MyGUIStyle is a simple collection of colours and a font(s) that is used to give a constant look and feel to all elements drawn through processing.

Version: 0.01
Created by John Beech
Website: http://mkv25.net/

Current features include:


Field Summary
 int background
           
 int buttonFace
           
 int buttonHighlight
           
 int buttonShadow
           
 int buttonText
           
 int disabled
           
 int face
           
 processing.core.PFont font
           
 int fontSize
           
 int highlight
           
 int highlightText
           
 int icon
           
 int padding
           
 int scrollBar
           
 int shadow
           
 int strokeWeight
           
 
Constructor Summary
MyGUIStyle(processing.core.PApplet root)
           
MyGUIStyle(processing.core.PApplet root, int tint)
           
MyGUIStyle(processing.core.PApplet root, processing.core.PFont font, int fontSize, int buttonFace, int buttonHighlight, int buttonShadow, int buttonText)
           
MyGUIStyle(processing.core.PApplet root, processing.core.PFont font, int fontSize, int background, int buttonFace, int buttonHighlight, int buttonShadow, int buttonText, int icon, int face, int highlight, int shadow, int disabled, int highlightText, int scrollBar)
           
 
Method Summary
 MyGUIStyle copy()
           
 void setDefaultColors()
           
 void setFont(processing.core.PFont newFont)
           
 void setFont(processing.core.PFont newFont, int newFontSize)
           
 void setPadding(int pad)
           
 void setStrokeWeight(int weight)
           
 void setTransparency(float a)
           
 void setTransparency(int a)
           
 void tintColor(int c)
           
 int tintColor(int c, int tint)
           
 int tintColor(int c, int tint, float str)
           
 void tintDefault(int c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

font

public processing.core.PFont font

fontSize

public int fontSize

strokeWeight

public int strokeWeight

padding

public int padding

background

public int background

buttonFace

public int buttonFace

buttonHighlight

public int buttonHighlight

buttonShadow

public int buttonShadow

buttonText

public int buttonText

icon

public int icon

highlight

public int highlight

face

public int face

shadow

public int shadow

disabled

public int disabled

highlightText

public int highlightText

scrollBar

public int scrollBar
Constructor Detail

MyGUIStyle

public MyGUIStyle(processing.core.PApplet root)

MyGUIStyle

public MyGUIStyle(processing.core.PApplet root,
                  int tint)

MyGUIStyle

public MyGUIStyle(processing.core.PApplet root,
                  processing.core.PFont font,
                  int fontSize,
                  int background,
                  int buttonFace,
                  int buttonHighlight,
                  int buttonShadow,
                  int buttonText,
                  int icon,
                  int face,
                  int highlight,
                  int shadow,
                  int disabled,
                  int highlightText,
                  int scrollBar)

MyGUIStyle

public MyGUIStyle(processing.core.PApplet root,
                  processing.core.PFont font,
                  int fontSize,
                  int buttonFace,
                  int buttonHighlight,
                  int buttonShadow,
                  int buttonText)
Method Detail

setDefaultColors

public void setDefaultColors()

setFont

public void setFont(processing.core.PFont newFont)

setFont

public void setFont(processing.core.PFont newFont,
                    int newFontSize)

setStrokeWeight

public void setStrokeWeight(int weight)

setPadding

public void setPadding(int pad)

tintColor

public void tintColor(int c)

tintDefault

public void tintDefault(int c)

tintColor

public int tintColor(int c,
                     int tint)

tintColor

public int tintColor(int c,
                     int tint,
                     float str)

setTransparency

public void setTransparency(float a)

setTransparency

public void setTransparency(int a)

copy

public MyGUIStyle copy()