|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvlcskineditor.Item
vlcskineditor.items.Image
public class Image
Image item
| Field Summary | |
|---|---|
java.lang.String |
action
|
java.lang.String |
ACTION_DEFAULT
|
java.lang.String |
action2
|
java.lang.String |
ACTION2_DEFAULT
|
java.lang.String |
image
|
java.lang.String |
resize
|
java.lang.String |
RESIZE_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 | |
|---|---|
Image(org.w3c.dom.Node n,
Skin s_)
Parses an image from an XML node |
|
Image(Skin s_)
|
|
Image(java.lang.String xmlcode,
Skin s_)
Creates a new instance of Image |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
actionWasEdited(ActionEditor ae)
Tells the Item that an action attribute has been changed by the ActionEditor ae |
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 |
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Creates a DefaultMutableTreeNode to be displayed in the items tree |
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 |
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 |
|---|
getItem, getParentListOf, getParentOf, renameForCopy, setClicked, setHover, setOffset, setSelected, updateToGlobalVariables |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final java.lang.String RESIZE_DEFAULT
public final java.lang.String ACTION_DEFAULT
public final java.lang.String ACTION2_DEFAULT
public java.lang.String image
public java.lang.String resize
public java.lang.String action
public java.lang.String action2
| Constructor Detail |
|---|
public Image(org.w3c.dom.Node n,
Skin s_)
n - The XML nodes_ - The parent skin
public Image(java.lang.String xmlcode,
Skin s_)
xmlcode - The XML codes_ - The parent skinpublic Image(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 void actionWasEdited(ActionEditor ae)
Itemae
actionWasEdited in class Itemae - The ActionEditor who changed the action attributepublic 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 boolean uses(java.lang.String id_)
Item
uses in class Itemid_ - The resource's id
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 | |||||||||