java.lang.Object
javax.vecmath.Tuple3f
javax.vecmath.Color3f
de.grogra.math.RGBColor
- All Implemented Interfaces:
Icon
,IconSource
,ChannelMap
,ColorMap
,Manageable
,Shareable
,Serializable
,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ManageableType
static final RGBColor
RGBColor
whose color isColor.BLACK
.static final RGBColor
RGBColor
whose color isColor.BLUE
.static final RGBColor
RGBColor
whose color isColor.CYAN
.static final RGBColor
RGBColor
whose color isColor.DARK_GRAY
.static final RGBColor
RGBColor
whose color isColor.GRAY
.static final RGBColor
RGBColor
whose color isColor.GREEN
.static final RGBColor
RGBColor
whose color isColor.LIGHT_GRAY
.static final RGBColor
RGBColor
whose color isColor.MAGENTA
.static final RGBColor
RGBColor
whose color isColor.ORANGE
.static final RGBColor
RGBColor
whose color isColor.PINK
.static final RGBColor
RGBColor
whose color isColor.RED
.static final RGBColor
RGBColor
whose color isColor.WHITE
.static final RGBColor
RGBColor
whose color isColor.YELLOW
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ChannelMapVisitor visitor) void
void
appendReferencesTo
(List out) clone()
void
fieldModified
(PersistenceField field, int[] indices, Transaction t) int
float
getFloatValue
(ChannelData data, int channel) getImage()
getImage
(int w, int h) getObjectValue
(ChannelData data, int channel) getPreferredIconSize
(boolean small) int
getStamp()
Returns a stamp for this object.void
initProvider
(SharedObjectProvider provider) boolean
boolean
void
paintIcon
(Component c, Graphics2D g, int x, int y, int w, int h, int state) void
void
Methods inherited from class javax.vecmath.Tuple3f
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, toString
-
Field Details
-
BLACK
RGBColor
whose color isColor.BLACK
. -
BLUE
RGBColor
whose color isColor.BLUE
. -
CYAN
RGBColor
whose color isColor.CYAN
. -
DARK_GRAY
RGBColor
whose color isColor.DARK_GRAY
. -
GRAY
RGBColor
whose color isColor.GRAY
. -
GREEN
RGBColor
whose color isColor.GREEN
. -
LIGHT_GRAY
RGBColor
whose color isColor.LIGHT_GRAY
. -
MAGENTA
RGBColor
whose color isColor.MAGENTA
. -
ORANGE
RGBColor
whose color isColor.ORANGE
. -
PINK
RGBColor
whose color isColor.PINK
. -
RED
RGBColor
whose color isColor.RED
. -
YELLOW
RGBColor
whose color isColor.YELLOW
. -
WHITE
RGBColor
whose color isColor.WHITE
. -
$TYPE
-
-
Constructor Details
-
RGBColor
public RGBColor(float red, float green, float blue) -
RGBColor
public RGBColor() -
RGBColor
-
-
Method Details
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
clone
-
isPredefined
public boolean isPredefined() -
getAverageColor
public int getAverageColor()- Specified by:
getAverageColor
in interfaceColorMap
-
getProvider
- Specified by:
getProvider
in interfaceShareable
-
appendReferencesTo
- Specified by:
appendReferencesTo
in interfaceShareable
-
getFloatValue
- Specified by:
getFloatValue
in interfaceChannelMap
-
getObjectValue
- Specified by:
getObjectValue
in interfaceChannelMap
-
fieldModified
- Specified by:
fieldModified
in interfaceManageable
-
getStamp
public int getStamp()Description copied from interface:Manageable
Returns a stamp for this object. Each modification to this object increments the stamp. The initial stamp is non-negative.- Specified by:
getStamp
in interfaceChannelMap
- Specified by:
getStamp
in interfaceManageable
- Returns:
- a stamp
-
manageableReadResolve
- Specified by:
manageableReadResolve
in interfaceManageable
-
manageableWriteReplace
- Specified by:
manageableWriteReplace
in interfaceManageable
-
getIcon
- Specified by:
getIcon
in interfaceIconSource
-
getPreferredIconSize
- Specified by:
getPreferredIconSize
in interfaceIconSource
-
paintIcon
-
getIconSource
- Specified by:
getIconSource
in interfaceIcon
-
isMutable
public boolean isMutable() -
prepareIcon
public void prepareIcon()- Specified by:
prepareIcon
in interfaceIcon
-
getImage
-
getImage
-
getImageSource
- Specified by:
getImageSource
in interfaceIcon
-
getIconBounds
- Specified by:
getIconBounds
in interfaceIcon
-
accept
- Specified by:
accept
in interfaceChannelMap
-