|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvlcskineditor.Item
vlcskineditor.items.Playtree
public class Playtree
Playtree item
| Field Summary | |
|---|---|
java.lang.String |
bgcolor1
|
java.lang.String |
BGCOLOR1_DEFAULT
|
java.lang.String |
bgcolor2
|
java.lang.String |
BGCOLOR2_DEFAULT
|
java.lang.String |
bgimage
|
java.lang.String |
BGIMAGE_DEFAULT
|
java.lang.String |
closedimage
|
java.lang.String |
CLOSEDIMAGE_DEFAULT
|
java.lang.String |
fgcolor
|
java.lang.String |
FGCOLOR_DEFAULT
|
boolean |
flat
|
boolean |
FLAT_DEFAULT
|
java.lang.String |
font
|
int |
height
|
int |
HEIGHT_DEFAULT
|
java.lang.String |
itemimage
|
java.lang.String |
ITEMIMAGE_DEFAULT
|
java.lang.String |
openimage
|
java.lang.String |
OPENIMAGE_DEFAULT
|
java.lang.String |
playcolor
|
java.lang.String |
PLAYCOLOR_DEFAULT
|
java.lang.String |
selcolor
|
java.lang.String |
SELCOLOR_DEFAULT
|
java.lang.String |
var
|
java.lang.String |
VAR_DEFAULT
|
int |
width
|
int |
WIDTH_DEFAULT
|
| Fields inherited from class vlcskineditor.Item |
|---|
clicked, created, help, HELP_DEFAULT, hovered, id, ID_DEFAULT, lefttop, LEFTTOP_DEFAULT, offsetx, offsety, rightbottom, RIGHTBOTTOM_DEFAULT, s, selected, type, vis, visible, VISIBLE_DEFAULT, x, X_DEFAULT, xkeepratio, XKEEPRATIO_DEFAULT, y, Y_DEFAULT, ykeepratio, YKEEPRATIO_DEFAULT |
| Constructor Summary | |
|---|---|
Playtree(org.w3c.dom.Node n,
Skin s_)
Parses a playtree from a XML node |
|
Playtree(Skin s_)
|
|
Playtree(java.lang.String xmlcode,
Skin s_)
Creates a new instance of Playtree |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
boolean |
contains(int x_,
int y_)
Checks whether the given point is inside the Item |
void |
draw(java.awt.Graphics2D g,
int z)
Draws the item to a graphics context |
void |
draw(java.awt.Graphics2D g_,
int x_,
int y_,
int z)
Draws the item to a graphics context with the offset x,y |
Item |
getItem(java.lang.String id_)
Gets an Item of the given ID |
Item |
getParentOf(java.lang.String id_)
Gets the parent Item of the Item with the given ID |
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Creates a DefaultMutableTreeNode to be displayed in the items tree |
void |
renameForCopy(java.lang.String p)
Renames the Item after the copy process |
void |
resourceRenamed(java.lang.String oldid,
java.lang.String newid)
Changes all references to the resource formerly identfied by oldid to the resources newid |
java.lang.String |
returnCode(java.lang.String indent)
Creates the XML code representing the item |
void |
showOptions()
Show a dialog to modify the items's parameters |
void |
update()
Update the Item's attributes according to the user input |
void |
updateToGlobalVariables()
Invokes the item to update its variables that depend on the global variables, that is e.g. visibility |
boolean |
uses(java.lang.String id_)
Checks whether the resource with the given ID is used by this Item or one of its subitems |
| Methods inherited from class vlcskineditor.Item |
|---|
actionWasEdited, getParentListOf, setClicked, setHover, setOffset, setSelected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final int WIDTH_DEFAULT
public final int HEIGHT_DEFAULT
public final java.lang.String VAR_DEFAULT
public final java.lang.String BGIMAGE_DEFAULT
public final java.lang.String FGCOLOR_DEFAULT
public final java.lang.String PLAYCOLOR_DEFAULT
public final java.lang.String SELCOLOR_DEFAULT
public final java.lang.String BGCOLOR1_DEFAULT
public final java.lang.String BGCOLOR2_DEFAULT
public final boolean FLAT_DEFAULT
public final java.lang.String ITEMIMAGE_DEFAULT
public final java.lang.String OPENIMAGE_DEFAULT
public final java.lang.String CLOSEDIMAGE_DEFAULT
public int width
public int height
public java.lang.String font
public java.lang.String var
public java.lang.String bgimage
public java.lang.String fgcolor
public java.lang.String playcolor
public java.lang.String selcolor
public java.lang.String bgcolor1
public java.lang.String bgcolor2
public boolean flat
public java.lang.String itemimage
public java.lang.String openimage
public java.lang.String closedimage
| Constructor Detail |
|---|
public Playtree(org.w3c.dom.Node n,
Skin s_)
n - The XML nodes_ - The parent skin
public Playtree(java.lang.String xmlcode,
Skin s_)
xmlcode - The XML codes_ - The parent skinpublic Playtree(Skin s_)
| Method Detail |
|---|
public void update()
Item
update in class Itempublic void showOptions()
Item
showOptions in class Itempublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic java.lang.String returnCode(java.lang.String indent)
Item
returnCode in class Itemindent - The indentation string
public void draw(java.awt.Graphics2D g,
int z)
Item
draw in class Itemg - graphics contextz - zoom factor
public void draw(java.awt.Graphics2D g_,
int x_,
int y_,
int z)
Item
draw in class Itemg_ - Graphics contextx_ - X offsety_ - Y offsetz - Zoom factor
public boolean contains(int x_,
int y_)
Item
contains in class Itemx_ - The point's x coordinatey_ - The point's y coordinate
public javax.swing.tree.DefaultMutableTreeNode getTreeNode()
Item
getTreeNode in class Itempublic Item getItem(java.lang.String id_)
Item
getItem in class Itemid_ - The ID of the desired Item
public Item getParentOf(java.lang.String id_)
Item
getParentOf in class Itemid_ - ID of the item whose parent is looked for
public boolean uses(java.lang.String id_)
Item
uses in class Itemid_ - The resource's id
public void renameForCopy(java.lang.String p)
Item
renameForCopy in class Itemp - The rename pattern, where %oldid% will be replaced by the Item's old IDpublic void updateToGlobalVariables()
Item
updateToGlobalVariables in class Item
public void resourceRenamed(java.lang.String oldid,
java.lang.String newid)
Item
resourceRenamed in class Itemoldid - The former ID of the renamed resourcenewid - The new ID of the renamed resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||