de.grogra.math
public final class Graytone extends ShareableBase implements ColorMap, IconSource, Icon
| Modifier and Type | Class and Description |
|---|---|
static class |
Graytone.Type |
| Modifier and Type | Field and Description |
|---|---|
static Graytone.Type |
$TYPE |
static SCOType.Field |
value$FIELD |
| Constructor and Description |
|---|
Graytone() |
Graytone(float value) |
Graytone(Tuple3f color) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ChannelMapVisitor visitor) |
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) |
float |
getValue() |
boolean |
isMutable() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state) |
void |
prepareIcon() |
void |
setValue(float value) |
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStamppublic static final Graytone.Type $TYPE
public static final SCOType.Field value$FIELD
public Graytone()
public Graytone(float value)
public Graytone(Tuple3f color)
public void accept(ChannelMapVisitor visitor)
accept in interface ChannelMappublic 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 float getValue()
public 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 setValue(float value)