Class PALplate.interactors.ToolBar
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class PALplate.interactors.ToolBar

java.lang.Object
   |
   +----sub_arctic.lib.min_interactor
           |
           +----sub_arctic.lib.base_interactor
                   |
                   +----sub_arctic.lib.base_parent_interactor
                           |
                           +----PALplate.interactors.component_flow
                                   |
                                   +----PALplate.interactors.backdrop_flow
                                           |
                                           +----PALplate.interactors.ToolBar

public class ToolBar
extends backdrop_flow
This is a ToolBar class. It's basically a flow-layout style class which can handle data from the mud, parse it into information about java classes, and dynamically load those classes. It can also handle dragging , which corresponds to motion of objects in the mud, and make sure that the mud state corresponds to the GUI state when a drag occurse.

Note that defaultImage is static, so all toolbars *share* it.


Variable Index

 o defaultImage

Constructor Index

 o ToolBar()
Loads up the default image for buttons which are in error about the existance of their icon.
 o ToolBar(int, int, int, int)
Loads up the default image for buttons which are in error about the existance of their icon.
 o ToolBar(int, int, int, int, loaded_image)
Loads up the default image for buttons which are in error about the existance of their icon.
 o ToolBar(loaded_image)
Loads up the default image for buttons which are in error about the existance of their icon.
 o ToolBar(loaded_image, loaded_image)
Loads up the default image for buttons which are in error about the existance of their icon.

Method Index

 o addApp(String, String, String, Object)
 o addApp(String, String, String, Object, base_interactor)
 o addApp(Vector)
 o addApp(Vector, base_interactor)
 o addApps(String)
This function takes a string in the form described in the mud architecture docs and parses it out into a set of objects each of which is instantiated and added to the ToolBar.
 o addApps(String, base_interactor)
This function takes a string in the form described in the mud architecture docs and parses it out into a set of objects each of which is instantiated and added to the the parent
 o addApps(String, boolean)
Just a wrapper for the standard addApps which lets you say whether to remove anything currently present first.
 o addApps(String, callback_object)
This function takes a string in the form described in the mud architecture docs and parses it out into a set of objects each of which is instantiated and added to the ToolBar.
 o removeAll()
 o removeApp(Vector)
 o setBackgroundImage(loaded_image)
 o setBackgroundImage(String, String)
 o setBackgroundImage(URL)

Variables

 o defaultImage
  protected static loaded_image defaultImage

Constructors

 o ToolBar
  public ToolBar()
Loads up the default image for buttons which are in error about the existance of their icon.
 o ToolBar
  public ToolBar(int x,
                 int y,
                 int w,
                 int h)
Loads up the default image for buttons which are in error about the existance of their icon.
Parameters:
x - The initial x position of the toolbar
y - The initial y position of the toolbar
w - The initial width of the toolbar
h - The initial height of the toolbar
 o ToolBar
  public ToolBar(int x,
                 int y,
                 int w,
                 int h,
                 loaded_image bg)
Loads up the default image for buttons which are in error about the existance of their icon.
Parameters:
x - The initial x position of the toolbar
y - The initial y position of the toolbar
w - The initial width of the toolbar
h - The initial height of the toolbar
bg - An image to display as a baackground behind all elements of the panel
 o ToolBar
  public ToolBar(loaded_image bg)
Loads up the default image for buttons which are in error about the existance of their icon.
Parameters:
bg - An image to display as a baackground behind all elements of the panel
 o ToolBar
  public ToolBar(loaded_image bg,
                 loaded_image dflt)
Loads up the default image for buttons which are in error about the existance of their icon.
Parameters:
bg - An image to display as a baackground behind all elements of the panel
dflt - The default image for buttons in error about the existance of their icons

Methods

 o removeAll
  public void removeAll()
 o addApps
  public void addApps(String names,
                      boolean RemoveAllFirst)
Just a wrapper for the standard addApps which lets you say whether to remove anything currently present first. Says nothing about
 o addApps
  public void addApps(String names)
This function takes a string in the form described in the mud architecture docs and parses it out into a set of objects each of which is instantiated and added to the ToolBar.
Parameters:
names - The output from a mud command such as @getContents
 o addApps
  public static void addApps(String names,
                             base_interactor parent)
This function takes a string in the form described in the mud architecture docs and parses it out into a set of objects each of which is instantiated and added to the the parent
Parameters:
names - The output from a mud command such as @getContents
base_parent_interactor - parent The object to which the classes should be added.
 o addApps
  public static void addApps(String names,
                             callback_object cb)
This function takes a string in the form described in the mud architecture docs and parses it out into a set of objects each of which is instantiated and added to the ToolBar.
Parameters:
names - The output from a mud command such as @getContents
 o addApp
  public void addApp(Vector info)
 o addApp
  public static void addApp(Vector info,
                            base_interactor parent)
 o addApp
  public void addApp(String mudobjnum,
                     String type,
                     String action,
                     Object args)
 o addApp
  public static void addApp(String mudobjnum,
                            String type,
                            String action,
                            Object args,
                            base_interactor parent)
 o removeApp
  public void removeApp(Vector info)
 o setBackgroundImage
  public void setBackgroundImage(loaded_image bg)
 o setBackgroundImage
  public void setBackgroundImage(String offset,
                                 String name)
 o setBackgroundImage
  public void setBackgroundImage(URL url)

All Packages  Class Hierarchy  This Package  Previous  Next  Index