Package org.jmol.awt
Class AwtColor
java.lang.Object
java.awt.Color
org.jmol.awt.AwtColor
- All Implemented Interfaces:
Paint,Transparency,Serializable,javajs.api.GenericColor
- See Also:
-
Field Summary
FieldsFields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOWFields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavajs.api.GenericColorget3(int r, int g, int b) javajs.api.GenericColorget4(int r, int g, int b, int a) intvoidsetOpacity255(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javajs.api.GenericColor
getRGB
-
Field Details
-
opacity
private int opacity
-
-
Constructor Details
-
AwtColor
public AwtColor(int rgb) -
AwtColor
public AwtColor(int r, int g, int b) -
AwtColor
public AwtColor(int r, int g, int b, int a)
-
-
Method Details
-
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:
getOpacity255in interfacejavajs.api.GenericColor
-
setOpacity255
public void setOpacity255(int a) - Specified by:
setOpacity255in interfacejavajs.api.GenericColor
-