|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvlcskineditor.Resource
vlcskineditor.resources.ImageResource
vlcskineditor.resources.Bitmap
public class Bitmap
Handles Bitmap resources
| Field Summary | |
|---|---|
java.lang.String |
alphacolor
|
java.lang.String |
ALPHACOLOR_DEFAULT
|
java.lang.String |
file
|
int |
fps
|
int |
FPS_DEFAULT
|
int |
nbframes
|
java.util.List<SubBitmap> |
SubBitmaps
|
| Fields inherited from class vlcskineditor.resources.ImageResource |
|---|
image |
| Fields inherited from class vlcskineditor.Resource |
|---|
id, s, type |
| Constructor Summary | |
|---|---|
Bitmap(org.w3c.dom.Node n,
Skin s_)
Creates a new Bitmap from a XML node |
|
Bitmap(Skin s_,
java.io.File f_)
Creates a new Bitmap from a given file. |
|
Bitmap(java.lang.String xmlcode,
Skin s_)
Creates a new Bitmap from xml code |
|
Bitmap(java.lang.String id_,
java.lang.String file_,
java.lang.String alphacolor_,
int nbframes_,
int fps_,
Skin s_)
Creates a new Bitmap from given attributes |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
Resource |
getParentOf(java.lang.String id_)
If a Resource does contain another Resource of the given id (e.g. a SubBitmap) the containing Resource is returned |
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Creates a DefaultMutableTreeNode to be displayed in the resources tree |
void |
renameForCopy(java.lang.String p)
Renames the Resource after the copy process |
java.lang.String |
returnCode(java.lang.String indent)
Creates the XML code representing the resource |
void |
showOptions()
Show a dialog to modify the resource's parameters |
void |
update()
Update the Resource's attributes according to user input |
boolean |
updateImage()
Regenerates the image represented by the Bitmap object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String file
public final java.lang.String ALPHACOLOR_DEFAULT
public java.lang.String alphacolor
public int nbframes
public final int FPS_DEFAULT
public int fps
public java.util.List<SubBitmap> SubBitmaps
| Constructor Detail |
|---|
public Bitmap(org.w3c.dom.Node n,
Skin s_)
n - The XML nodes_ - The skin in which the Bitmap is used
public Bitmap(java.lang.String xmlcode,
Skin s_)
xmlcode - The XML code from which the Bitmap should be created. One line per tag.s_ - The skin in which the Bitmap is used. This is necessary in order that the image file can be located relatively to the skin file.
public Bitmap(java.lang.String id_,
java.lang.String file_,
java.lang.String alphacolor_,
int nbframes_,
int fps_,
Skin s_)
id_ - The ID of the new Bitmapfile_ - The relative path to the image file.alphacolor_ - The alphacolor of the Bitmap. Format is #RRGGBB.nbframes_ - If the Bitmap is animated this defines the number of frames.fps_ - If the Bitmap is animated this defines the frames displayed per second.s_ - The skin in which the Bitmap is used.
This is necessary in order that the image file can be located relatively to the skin file.
public Bitmap(Skin s_,
java.io.File f_)
s_ - The skin in which the Bitmap is used.
This is necessary in order that the image file can be located relatively to the skin file.f_ - The image file represented by this Bitmap.| Method Detail |
|---|
public boolean updateImage()
public void update()
Resource
update in class Resourcepublic void showOptions()
Resource
showOptions in class Resourcepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic java.lang.String returnCode(java.lang.String indent)
Resource
returnCode in class Resourcepublic javax.swing.tree.DefaultMutableTreeNode getTreeNode()
Resource
getTreeNode in class Resourcepublic Resource getParentOf(java.lang.String id_)
Resource
getParentOf in class Resourcepublic void renameForCopy(java.lang.String p)
Resource
renameForCopy in class Resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||