public class Icons extends LiveObject implements IconFileNamer
| Modifier and Type | Field and Description |
|---|---|
static int |
EDITOR_FOR_COMPOSITE |
Vector |
icons
Each element in this is an AnIcon object.
|
| Constructor and Description |
|---|
Icons() |
| 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.
|
String |
getIconBaseFileName() |
ImageData[] |
getImagesOfType(int typeOfImage) |
int |
getImagesOfType(int typeOfImage,
Vector dest) |
static void |
main(String[] args) |
void |
setToEditor(Editor ed)
This is called when this Object is set as the object the Editor is now editing.
|
void |
textDecode(String text)
You can override this to decode a String representation of the Object as
encoded by textEncode, but it is easier to override decode(TextDecoder te).
|
String |
textEncode()
You can override this to encode the object as a String, but it is easier to override
encode(TextEncoder te).
|
ByteArray |
toICOFile(int typeOfImage) |
Icon |
toIcon()
Get an Icon representing the icons in the list - but return null if there are none in the list.
|
ByteArray |
toICZFile(int typeOfImage) |
String |
toString()
Return a String representation of this object.
|
action, action, addMeToPanel, addObjectToPanel, editorCanExit, enableEditorScrolling, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, getName, input, isNamed, liveMain, makeNewEditor, menuItemSelected, prepareMainPanel, runAsApp, willBeSetToEditorgetParentObject, getParentObject, setParentObjectdecode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNewclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTopublic Vector icons
public static final int EDITOR_FOR_COMPOSITE
public ImageData[] getImagesOfType(int typeOfImage)
public int getImagesOfType(int typeOfImage,
Vector dest)
public ByteArray toICZFile(int typeOfImage)
typeOfImage - public Icon toIcon()
public ByteArray toICOFile(int typeOfImage)
public String textEncode()
EncodableObjecttextEncode in interface TextEncodabletextEncode in class EncodableObjectpublic void textDecode(String text)
EncodableObjecttextDecode in interface TextEncodabletextDecode in class EncodableObjectpublic void addToPanel(CellPanel cp, Editor ed, int which)
LiveObjectaddToPanel in class LiveObjectpublic String toString()
Objectpublic void setToEditor(Editor ed)
LiveObjectsetToEditor in class LiveObjected - the active Editor. By default this does nothing.public String getIconBaseFileName()
getIconBaseFileName in interface IconFileNamerpublic static void main(String[] args) throws IOException
IOException