All Packages Class Hierarchy This Package Previous Next Index
Class sso.Graphic
java.lang.Object
|
+----sso.Persistant
|
+----sso.Graphic
- public class Graphic
- extends Persistant
-
image_uri
-
-
propertyChangeListeners
-
-
x_width
-
-
y_length
-
-
z_height
-
-
Graphic()
- Constructor.
-
addPropertyChangeListener(PropertyChangeListener)
- Register the property change listeners.
-
createGraphic()
- Factory method.
-
createRows()
- Create the rows needed to store the graphic.
-
getDefaultGraphic()
- Get a default graphic object (promote reuse).
-
getDirectionIndex(int)
- Helpful method for determining facing graphic.
-
getHeight()
- Get height.
-
getLength()
- Get length.
-
getModifierIndex(int)
- Helpful method for determining facing graphic.
-
getURI(int)
- Get graphic.
-
getWidth()
- Get width.
-
init()
- Initializer for factory method.
-
load()
- Internals for loading Graphic.
-
loadGraphic(int)
- Load the graphic from the database.
-
propChange(String)
- Fire a property change event.
-
removePropertyChangeListener(PropertyChangeListener)
- Unregister a property change listener.
-
setHeight(int)
- Set height.
-
setLength(int)
- Set length.
-
setURI(int, String)
- Set graphic.
-
setWidth(int)
- Set width.
-
store()
- Store the graphic in the database.
-
unregister()
- Unregister Graphic
x_width
protected int x_width
y_length
protected int y_length
z_height
protected int z_height
image_uri
protected String image_uri[][]
propertyChangeListeners
protected Vector propertyChangeListeners
Graphic
protected Graphic()
- Constructor. Never called directly.
Use a factor method instead.
createGraphic
public static Graphic createGraphic()
- Factory method. Intended for creating new objects.
For loading objects from the database, use the loadGraphic() method.
init
protected void init()
- Initializer for factory method.
- Overrides:
- init in class Persistant
getWidth
public int getWidth()
- Get width.
setWidth
public void setWidth(int width)
- Set width.
getLength
public int getLength()
- Get length.
setLength
public void setLength(int length)
- Set length.
getHeight
public int getHeight()
- Get height.
setHeight
public void setHeight(int height)
- Set height.
getURI
public String getURI(int mode)
- Get graphic.
setURI
public void setURI(int mode,
String uri)
- Set graphic.
getDirectionIndex
public int getDirectionIndex(int mode)
- Helpful method for determining facing graphic.
getModifierIndex
public int getModifierIndex(int mode)
- Helpful method for determining facing graphic.
getDefaultGraphic
protected static Graphic getDefaultGraphic()
- Get a default graphic object (promote reuse).
createRows
protected void createRows()
- Create the rows needed to store the graphic.
- Overrides:
- createRows in class Persistant
store
public void store()
- Store the graphic in the database.
- Overrides:
- store in class Persistant
loadGraphic
public static Graphic loadGraphic(int id)
- Load the graphic from the database.
load
protected void load()
- Internals for loading Graphic.
- Overrides:
- load in class Persistant
unregister
public void unregister()
- Unregister Graphic
- Overrides:
- unregister in class Persistant
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener pl)
- Register the property change listeners.
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener pl)
- Unregister a property change listener.
propChange
protected void propChange(String propname)
- Fire a property change event.
All Packages Class Hierarchy This Package Previous Next Index