Package mgui.util
Class Colour2f
java.lang.Object
mgui.util.Colour
mgui.util.Colour2f
- All Implemented Interfaces:
XMLObject
public class Colour2f extends Colour
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description float
getAlpha()
float
getBlue()
int
getDims()
float
getGreen()
float
getIntensity()
float
getRed()
static XMLObject
getXMLInstance(org.xml.sax.Attributes attributes)
void
setAlpha(int a)
void
setBlue(int g)
void
setGreen(int b)
void
setIntensity(int i)
void
setRed(int r)
Methods inherited from class mgui.util.Colour
getColor, getColor3f, getColor4f, getColour, getDim, getDTD, getLocalName, getShortXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLElementStart, handleXMLString, set, setAlpha, setBlue, setDim, setGreen, setIntensity, setRed, writeXML, writeXML, writeXML
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Colour2f
public Colour2f() -
Colour2f
public Colour2f(float red, float green)
-
-
Method Details
-
getDims
public int getDims() -
getAlpha
public float getAlpha() -
getBlue
public float getBlue() -
getGreen
public float getGreen() -
getIntensity
public float getIntensity()- Overrides:
getIntensity
in classColour
-
getRed
public float getRed() -
setAlpha
public void setAlpha(int a) -
setBlue
public void setBlue(int g) -
setGreen
public void setGreen(int b) -
setIntensity
public void setIntensity(int i)- Overrides:
setIntensity
in classColour
-
setRed
public void setRed(int r) -
getXMLInstance
-