Package org.jmol.awt
Class AwtColor
- java.lang.Object
-
- java.awt.Color
-
- org.jmol.awt.AwtColor
-
- All Implemented Interfaces:
java.awt.Paint
,java.awt.Transparency
,java.io.Serializable
,javajs.api.GenericColor
public class AwtColor extends java.awt.Color implements javajs.api.GenericColor
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
opacity
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javajs.api.GenericColor
get3(int r, int g, int b)
javajs.api.GenericColor
get4(int r, int g, int b, int a)
int
getOpacity255()
void
setOpacity255(int a)
-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
-
-
-
-
Method Detail
-
get4
public javajs.api.GenericColor get4(int r, int g, int b, int a)
-
get3
public javajs.api.GenericColor get3(int r, int g, int b)
-
getOpacity255
public int getOpacity255()
- Specified by:
getOpacity255
in interfacejavajs.api.GenericColor
-
setOpacity255
public void setOpacity255(int a)
- Specified by:
setOpacity255
in interfacejavajs.api.GenericColor
-
-