de.grogra.math
public class RGBColor extends Color3f implements ColorMap, IconSource, Icon, Manageable, Shareable
| Modifier and Type | Field and Description |
|---|---|
static ManageableType |
$TYPE |
static RGBColor |
BLACK
RGBColor whose color is Color.BLACK. |
static RGBColor |
BLUE
RGBColor whose color is Color.BLUE. |
static RGBColor |
CYAN
RGBColor whose color is Color.CYAN. |
static RGBColor |
DARK_GRAY
RGBColor whose color is Color.DARK_GRAY. |
static RGBColor |
GRAY
RGBColor whose color is Color.GRAY. |
static RGBColor |
GREEN
RGBColor whose color is Color.GREEN. |
static RGBColor |
LIGHT_GRAY
RGBColor whose color is Color.LIGHT_GRAY. |
static RGBColor |
MAGENTA
RGBColor whose color is Color.MAGENTA. |
static RGBColor |
ORANGE
RGBColor whose color is Color.ORANGE. |
static RGBColor |
PINK
RGBColor whose color is Color.PINK. |
static RGBColor |
RED
RGBColor whose color is Color.RED. |
static RGBColor |
WHITE
RGBColor whose color is Color.WHITE. |
static RGBColor |
YELLOW
RGBColor whose color is Color.YELLOW. |
| Constructor and Description |
|---|
RGBColor() |
RGBColor(float red,
float green,
float blue) |
RGBColor(Tuple3f color) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ChannelMapVisitor visitor) |
void |
addReference(SharedObjectReference ref) |
void |
appendReferencesTo(java.util.List out) |
java.lang.Object |
clone() |
void |
fieldModified(PersistenceField field,
int[] indices,
Transaction t) |
int |
getAverageColor() |
float |
getFloatValue(ChannelData data,
int channel) |
Icon |
getIcon(java.awt.Dimension size,
int state) |
java.awt.Rectangle |
getIconBounds() |
IconSource |
getIconSource() |
java.awt.Image |
getImage() |
java.awt.Image |
getImage(int w,
int h) |
java.net.URL |
getImageSource() |
ManageableType |
getManageableType() |
java.lang.Object |
getObjectValue(ChannelData data,
int channel) |
java.awt.Dimension |
getPreferredIconSize(boolean small) |
SharedObjectProvider |
getProvider() |
int |
getStamp()
Returns a stamp for this object.
|
void |
initProvider(SharedObjectProvider provider) |
boolean |
isMutable() |
boolean |
isPredefined() |
Manageable |
manageableReadResolve() |
java.lang.Object |
manageableWriteReplace() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state) |
void |
prepareIcon() |
void |
removeReference(SharedObjectReference ref) |
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toStringpublic static final ManageableType $TYPE
public static final RGBColor BLACK
RGBColor whose color is Color.BLACK.public static final RGBColor BLUE
RGBColor whose color is Color.BLUE.public static final RGBColor CYAN
RGBColor whose color is Color.CYAN.public static final RGBColor DARK_GRAY
RGBColor whose color is Color.DARK_GRAY.public static final RGBColor GRAY
RGBColor whose color is Color.GRAY.public static final RGBColor GREEN
RGBColor whose color is Color.GREEN.public static final RGBColor LIGHT_GRAY
RGBColor whose color is Color.LIGHT_GRAY.public static final RGBColor MAGENTA
RGBColor whose color is Color.MAGENTA.public static final RGBColor ORANGE
RGBColor whose color is Color.ORANGE.public static final RGBColor PINK
RGBColor whose color is Color.PINK.public static final RGBColor RED
RGBColor whose color is Color.RED.public static final RGBColor WHITE
RGBColor whose color is Color.WHITE.public static final RGBColor YELLOW
RGBColor whose color is Color.YELLOW.public RGBColor()
public RGBColor(float red,
float green,
float blue)
public RGBColor(Tuple3f color)
public void accept(ChannelMapVisitor visitor)
accept in interface ChannelMappublic void addReference(SharedObjectReference ref)
addReference in interface Shareablepublic void appendReferencesTo(java.util.List out)
appendReferencesTo in interface Shareablepublic void fieldModified(PersistenceField field, int[] indices, Transaction t)
fieldModified in interface Manageablepublic int getAverageColor()
getAverageColor in interface ColorMappublic float getFloatValue(ChannelData data, int channel)
getFloatValue in interface ChannelMappublic Icon getIcon(java.awt.Dimension size, int state)
getIcon in interface IconSourcepublic java.awt.Rectangle getIconBounds()
getIconBounds in interface Iconpublic IconSource getIconSource()
getIconSource in interface Iconpublic java.net.URL getImageSource()
getImageSource in interface Iconpublic ManageableType getManageableType()
getManageableType in interface Manageablepublic java.lang.Object getObjectValue(ChannelData data, int channel)
getObjectValue in interface ChannelMappublic java.awt.Dimension getPreferredIconSize(boolean small)
getPreferredIconSize in interface IconSourcepublic SharedObjectProvider getProvider()
getProvider in interface Shareablepublic int getStamp()
ManageablegetStamp in interface ChannelMapgetStamp in interface Manageablepublic void initProvider(SharedObjectProvider provider)
initProvider in interface Shareablepublic boolean isPredefined()
public Manageable manageableReadResolve()
manageableReadResolve in interface Manageablepublic java.lang.Object manageableWriteReplace()
manageableWriteReplace in interface Manageablepublic void paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state)
public void prepareIcon()
prepareIcon in interface Iconpublic void removeReference(SharedObjectReference ref)
removeReference in interface Shareable