public class AnIcon extends LiveObject
| Modifier and Type | Field and Description |
|---|---|
int |
height |
static Color |
transparentColor |
int |
width |
int |
xOffset |
int |
yOffset |
| Modifier and Type | Method and Description |
|---|---|
void |
addToPanel(CellPanel cp,
Editor ed,
int which)
Override this to provide the user interface for editing the Object.
|
int |
checkAlphaLevel() |
PixelBuffer |
getImage(PixelBuffer dest) |
PixelBuffer |
getImage(PixelBuffer dest,
Color setTransparentColor) |
Icon |
getImageAsIcon() |
String |
getName()
By default this returns the String "unnamed".
|
void |
setImage(ImageData im) |
action, action, addMeToPanel, addObjectToPanel, editorCanExit, enableEditorScrolling, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, input, isNamed, liveMain, main, makeNewEditor, menuItemSelected, prepareMainPanel, runAsApp, setToEditor, willBeSetToEditorgetParentObject, getParentObject, setParentObjectdecode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNewclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompareTotextDecode, textEncodepublic int xOffset
public int yOffset
public int width
public int height
public static final Color transparentColor
public AnIcon()
public AnIcon(ImageData im)
public PixelBuffer getImage(PixelBuffer dest)
public PixelBuffer getImage(PixelBuffer dest, Color setTransparentColor)
public int checkAlphaLevel()
public void setImage(ImageData im)
public String getName()
LiveObjectgetName in interface NamedgetName in class LiveObjectpublic Icon getImageAsIcon()
public void addToPanel(CellPanel cp, Editor ed, int which)
LiveObjectaddToPanel in class LiveObject