vlcskineditor
Class Resource

java.lang.Object
  extended by vlcskineditor.Resource
Direct Known Subclasses:
BitmapFont, Font, ImageResource

public abstract class Resource
extends java.lang.Object

Abstract superclass representing a Bitmap, SubBitmap or Font


Field Summary
 java.lang.String id
          Value should be either Bitmap or Font
 Skin s
          Represents the skin to which the resource belongs
 java.lang.String type
           
 
Constructor Summary
Resource()
           
 
Method Summary
 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
abstract  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
abstract  java.lang.String returnCode(java.lang.String indent)
          Creates the XML code representing the resource
abstract  void showOptions()
          Show a dialog to modify the resource's parameters
abstract  void update()
          Update the Resource's attributes according to user input
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

public java.lang.String id
Value should be either Bitmap or Font


type

public java.lang.String type

s

public Skin s
Represents the skin to which the resource belongs

Constructor Detail

Resource

public Resource()
Method Detail

showOptions

public abstract void showOptions()
Show a dialog to modify the resource's parameters


update

public abstract void update()
Update the Resource's attributes according to user input


returnCode

public abstract java.lang.String returnCode(java.lang.String indent)
Creates the XML code representing the resource


getTreeNode

public abstract javax.swing.tree.DefaultMutableTreeNode getTreeNode()
Creates a DefaultMutableTreeNode to be displayed in the resources tree


getParentOf

public 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


renameForCopy

public void renameForCopy(java.lang.String p)
Renames the Resource after the copy process