Package mgui.util
Class Colour1f
java.lang.Object
mgui.util.Colour
mgui.util.Colour1f
- All Implemented Interfaces:
XMLObject
public class Colour1f 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
-
Colour1f
public Colour1f() -
Colour1f
public Colour1f(float red)
-
-
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
-