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, willBeSetToEditor
getParentObject, getParentObject, setParentObject
decode, decoded, decoded, decodeFields, decodeFields, encode, encoded, encoded, encodeFields, encodeFields
_getFieldType, _getSetField, cache, compareTo, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getMyFieldList, getNew
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compareTo
public 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()
EncodableObject
textEncode
in interface TextEncodable
textEncode
in class EncodableObject
public void textDecode(String text)
EncodableObject
textDecode
in interface TextEncodable
textDecode
in class EncodableObject
public void addToPanel(CellPanel cp, Editor ed, int which)
LiveObject
addToPanel
in class LiveObject
public String toString()
Object
public void setToEditor(Editor ed)
LiveObject
setToEditor
in class LiveObject
ed
- the active Editor. By default this does nothing.public String getIconBaseFileName()
getIconBaseFileName
in interface IconFileNamer
public static void main(String[] args) throws IOException
IOException