java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.math.Graytone
- All Implemented Interfaces:
Icon
,IconSource
,ChannelMap
,ColorMap
,Manageable
,Shareable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ChannelMapVisitor visitor) int
float
getFloatValue
(ChannelData data, int channel) getImage()
getImage
(int w, int h) getObjectValue
(ChannelData data, int channel) getPreferredIconSize
(boolean small) float
getValue()
boolean
void
paintIcon
(Component c, Graphics2D g, int x, int y, int w, int h, int state) void
void
setValue
(float value) Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.math.ChannelMap
getStamp
-
Field Details
-
$TYPE
-
value$FIELD
-
-
Constructor Details
-
Graytone
public Graytone(float value) -
Graytone
public Graytone() -
Graytone
-
-
Method Details
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
getValue
public float getValue() -
setValue
public void setValue(float value) -
getAverageColor
public int getAverageColor()- Specified by:
getAverageColor
in interfaceColorMap
-
getFloatValue
- Specified by:
getFloatValue
in interfaceChannelMap
-
getObjectValue
- Specified by:
getObjectValue
in interfaceChannelMap
-
getIcon
- Specified by:
getIcon
in interfaceIconSource
-
getPreferredIconSize
- Specified by:
getPreferredIconSize
in interfaceIconSource
-
paintIcon
-
getIconSource
- Specified by:
getIconSource
in interfaceIcon
-
prepareIcon
public void prepareIcon()- Specified by:
prepareIcon
in interfaceIcon
-
isMutable
public boolean isMutable() -
getImage
-
getImage
-
getImageSource
- Specified by:
getImageSource
in interfaceIcon
-
getIconBounds
- Specified by:
getIconBounds
in interfaceIcon
-
accept
- Specified by:
accept
in interfaceChannelMap
-