Class symantec.itools.multimedia.Plasma
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class symantec.itools.multimedia.Plasma
Object
   |
   +----Component
           |
           +----Canvas
                   |
                   +----symantec.itools.multimedia.Plasma
  -  public class Plasma
  
-  extends Canvas
  
-  implements Runnable
   
Plasma component.
 Creates an animation of colored amorphous shapes, where colors gradually
 modulate as shapes merge and separate.
  -  Version:
  
 -  1.0, Nov 26, 1996
  
 -  Author:
  
 -  Symantec
 
  
  -  
	symantec.itools.multimedia.Plasma()
   -   Create default plasma component.
 
  
  -  
	addNotify()
   -   Tells this component that it has been added to a container.
  
 -  
	dopalette()
   -   Setup Plasma Palette.
  
 -  
	drawplasma()
   -   Draws plasma data into an internal buffer.
  
 -  
	getPreviewMode()
   -   
  
 -  
	hide()
   -   Makes this component invisible.
  
 -  
	isPreviewMode()
   -   Gets the preview mode flag.
  
 -  
	moveplasma()
   -   Moves Plasma occurance location at random within component.
  
 -  
	paint(Graphics)
   -   Paints this component using the given graphics context.
  
 -  
	removeNotify()
   -   Tells this component that it is being removed from a container.
  
 -  
	reshape(int, int, int, int)
   -   Moves and/or resizes this component.
  
 -  
	run()
   -   Plasma thread body.
  
 -  
	setPreviewMode(boolean)
   -   Sets the preview mode flag.
  
 -  
	setupcos()
   -   Setup Plasma cosine table.
  
 -  
	show()
   -   Makes this component visible.
  
 -  
	startPlasma()
   -   Resume plasma animation.
  
 -  
	stopPlasma()
   -   Suspend plasma animation.
  
 -  
	update(Graphics)
   -   Handles redrawing of this component on the screen.
 
  
Plasma
public Plasma()
  -  Create default plasma component.
  
 
 
  
addNotify
public synchronized void addNotify()
  -  Tells this component that it has been added to a container.
 This is a standard Java AWT method which gets called by the AWT when
 this component is added to a container. Typically, it is used to
 create this component's peer.
 It has been overridden here to start the plasma thread.
  
 
 
    -  Overrides:
    
 -  addNotify in class Canvas
    
 -  See Also:
    
 -  removeNotify
  
 
 
 
dopalette
public void dopalette()
  -  Setup Plasma Palette.  Not generally called directly.
  
 
 
drawplasma
public void drawplasma()
  -  Draws plasma data into an internal buffer.  Not generally called directly.
  
 
 
getPreviewMode
public boolean getPreviewMode()
-  Note: getPreviewMode() is deprecated.
As of JDK version 1.1,
 replaced by isPreviewMode.
  
-  
  
 
  
hide
public synchronized void hide()
  -  Makes this component invisible.
 This is a standard Java AWT method which gets called to hide
 this component. A hidden component cannot be seen by the user nor
 does it take up space in its container, but it does continue to
 exist.
  
 
 
    -  Overrides:
    
 -  hide in class Component
    
 -  See Also:
    
 -  show
  
 
 
 
isPreviewMode
public boolean isPreviewMode()
  -  Gets the preview mode flag. This flag is used by Visual Cafe to
 determine if this component should be run during design time.
  
 
 
    -  See Also:
    
 -  setPreviewMode
  
 
 
 
moveplasma
public void moveplasma()
  -  Moves Plasma occurance location at random within component.  Not generally called directly.
  
 
 
paint
public void paint(Graphics g)
  -  Paints this component using the given graphics context.
 This is a standard Java AWT method which typically gets called
 by the AWT to handle painting this component. It paints this component
 using the given graphics context. The graphics context clipping region
 is set to the bounding rectangle of this component and its <0,0>
 coordinate is this component's top-left corner.
  
 
 
    -  Parameters:
    
 -  g - the graphics context used for painting
    
 -  Overrides:
    
 -  paint in class Canvas
    
 -  See Also:
    
 -  repaint, update
  
 
 
 
removeNotify
public synchronized void removeNotify()
  -  Tells this component that it is being removed from a container.
 This is a standard Java AWT method which gets called by the AWT when
 this component is removed from a container. Typically, it is used to
 destroy the peers of this component and all its subcomponents.
 It has been overridden here to stop the plasma thread.
  
 
 
    -  Overrides:
    
 -  removeNotify in class Component
    
 -  See Also:
    
 -  addNotify
  
 
 
 
reshape
public synchronized void reshape(int x,
                                 int y,
                                 int width,
                                 int height)
  -  Moves and/or resizes this component.
 This is a standard Java AWT method which gets called to move and/or
 resize this component. Components that are in containers with layout
 managers should not call this method, but rely on the layout manager
 instead.
  
 
 
    -  Parameters:
    
 -  x - horizontal position in the parent's coordinate space
    
-  y - vertical position in the parent's coordinate space
    
-  width - the new width
    
-  height - the new height
    
    -  Overrides:
    
 -  reshape in class Component
  
 
 
 
run
public void run()
  -  Plasma thread body.  This method is called by the Java virtual
 machine to when this thread starts.
  
 
 
setPreviewMode
public void setPreviewMode(boolean f)
  -  Sets the preview mode flag.  This flag is used by Visual Cafe to
 determine if this component should be run during design time.
  
 
 
    -  Parameters:
    
 -  f - new preview mode
    
 -  See Also:
    
 -  getPreviewMode
  
 
 
 
setupcos
public void setupcos()
  -  Setup Plasma cosine table.  Not generally called directly.
  
 
 
show
public synchronized void show()
  -  Makes this component visible.
 This is a standard Java AWT method which gets called to show this
 component. If this component was invisible due to a previous hide()
 call it make this component visible again.
  
 
 
    -  Overrides:
    
 -  show in class Component
    
 -  See Also:
    
 -  hide
  
 
 
 
startPlasma
public void startPlasma()
  -  Resume plasma animation.
  
 
 
stopPlasma
public void stopPlasma()
  -  Suspend plasma animation.
  
 
 
update
public void update(Graphics g)
  -  Handles redrawing of this component on the screen.
 This is a standard Java AWT method which gets called by the Java
 AWT (repaint()) to handle repainting this component on the screen.
 The graphics context clipping region is set to the bounding rectangle
 of this component and its <0,0> coordinate is this component's
 top-left corner.
 Typically this method paints the background color to clear the
 component's drawing space, sets graphics context to be the foreground
 color, and then calls paint() to draw the component.
 It is overridden here to reduce flicker by eliminating the uneeded
 clearing of the background.
  
 
 
    -  Parameters:
    
 -  g - the graphics context
    
 -  Overrides:
    
 -  update in class Component
    
 -  See Also:
    
 -  repaint, paint
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index