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, willBeSetToEditor
getParentObject, getParentObject, setParentObject
decode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields, textDecode, textEncode
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
textDecode, textEncode
public 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()
LiveObject
getName
in interface Named
getName
in class LiveObject
public Icon getImageAsIcon()
public void addToPanel(CellPanel cp, Editor ed, int which)
LiveObject
addToPanel
in class LiveObject