Class mjr.pstree.GIFNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mjr.pstree.GIFNode

java.lang.Object
   |
   +----sprite.Sprite
           |
           +----graph.Node
                   |
                   +----mjr.pstree.GIFNode

public class GIFNode
extends Node
A Node that is drawn with a 12x12 image of a sphere. The GIF node takes a vector of images that must be loaded before passed to its constuctor.

Variable Index

 o BLUE
 o CYAN
 o GREEN
 o IMAGES
 o MAGENTA
 o RED
 o YELLOW
 o currentImage
 o image
 o images

Constructor Index

 o GIFNode(GraphArea, int, int, Vector)

Method Index

 o Draw(Graphics)
 o mjr()
 o setImage(int)

Variables

 o images
  protected Vector images
 o image
  protected Image image
 o IMAGES
  public final static String IMAGES[]
 o currentImage
  protected int currentImage
 o BLUE
  public final static int BLUE
 o YELLOW
  public final static int YELLOW
 o RED
  public final static int RED
 o MAGENTA
  public final static int MAGENTA
 o GREEN
  public final static int GREEN
 o CYAN
  public final static int CYAN

Constructors

 o GIFNode
  public GIFNode(GraphArea area,
                 int x,
                 int y,
                 Vector images)

Methods

 o setImage
  public void setImage(int newImage)
 o Draw
  public void Draw(Graphics g)
Overrides:
Draw in class Node
 o mjr
  public static void mjr()

All Packages  Class Hierarchy  This Package  Previous  Next  Index