jfract V1.0a

org.jfract.abstractBeans
Class AbstractPointAttractor

java.lang.Object
  |
  +--org.jfract.abstractBeans.AbstractPointAttractor
All Implemented Interfaces:
BeanPanelManagable, java.util.EventListener, JBeanableGetable, MapPointAttractor, java.awt.event.MouseListener, java.lang.Runnable, java.io.Serializable

public abstract class AbstractPointAttractor
extends java.lang.Object
implements java.io.Serializable, BeanPanelManagable, JBeanableGetable, java.lang.Runnable, MapPointAttractor

the henon attractor

See Also:
Serialized Form

Field Summary
private  boolean alive
           
private  boolean erase
           
private  java.awt.Graphics gfx
          The graphics object
private  java.awt.image.BufferedImage img
           
private  JBeanable jBeanable
           
private  Location location
           
protected  double magnificationX
           
protected  double magnificationY
           
private  java.lang.Thread me
           
private  PointDouble point
           
private  java.util.Vector point_vector
           
private  PointDouble pointToDraw
           
private  int size
           
private  int sleepTime
           
private  double zoomFactor
           
 
Constructor Summary
AbstractPointAttractor()
           
 
Method Summary
 void animate()
           
private  void createImg()
          Create the image
 void drawBean(java.awt.Graphics g)
          Draw the bean in the BeanPanel
 void drawPoint(PointDouble point)
           
 void erasePoint(PointDouble point)
           
 void fillVector()
           
 java.awt.Graphics getGfx()
           
 JBeanable getJBeanable()
           
 Location getLocation()
           
 double getMagnificationX()
           
 double getMagnificationY()
           
 int getSize()
           
 int getSleepTime()
           
 double getZoomFactor()
           
 void initComponant()
          Define here the way you put the componant in the BeanPanel container Object
 void mouseClicked(java.awt.event.MouseEvent e)
          Invoked when the mouse has been clicked on a component.
 void mouseEntered(java.awt.event.MouseEvent e)
          Invoked when the mouse enters a component.
 void mouseExited(java.awt.event.MouseEvent e)
          Invoked when the mouse exits a component.
 void mousePressed(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been pressed on a component.
 void mouseReleased(java.awt.event.MouseEvent e)
          Invoked when a mouse button has been released on a component.
 void reDrawBean()
          redraw bean used to refresh the BeanPanel
 void run()
          When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
 void setLocation(Location location)
           
 void setMagnificationX(double magnificationX)
           
 void setMagnificationY(double magnificationY)
           
 void setSize(int size)
           
 void setSleepTime(int sleepTime)
           
 void setZoomFactor(double zoomFactor)
           
 void stopAnimate()
           
 void updateImg()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 
Methods inherited from interface org.jfract.abstractBeans.MapPointAttractor
getDefaultLocation, getFirstPoint, getNextPoint, getProjection
 

Field Detail

jBeanable

private JBeanable jBeanable

me

private java.lang.Thread me

alive

private boolean alive

point_vector

private java.util.Vector point_vector

point

private PointDouble point

pointToDraw

private PointDouble pointToDraw

erase

private boolean erase

img

private java.awt.image.BufferedImage img

location

private Location location

gfx

private java.awt.Graphics gfx
The graphics object

magnificationX

protected double magnificationX

magnificationY

protected double magnificationY

size

private int size

sleepTime

private int sleepTime

zoomFactor

private double zoomFactor
Constructor Detail

AbstractPointAttractor

public AbstractPointAttractor()
Method Detail

setMagnificationX

public void setMagnificationX(double magnificationX)

setMagnificationY

public void setMagnificationY(double magnificationY)

getGfx

public java.awt.Graphics getGfx()

setLocation

public void setLocation(Location location)

getLocation

public Location getLocation()

getMagnificationX

public double getMagnificationX()

getMagnificationY

public double getMagnificationY()

setSleepTime

public void setSleepTime(int sleepTime)

getSleepTime

public int getSleepTime()

setSize

public void setSize(int size)

getSize

public int getSize()

getZoomFactor

public double getZoomFactor()

setZoomFactor

public void setZoomFactor(double zoomFactor)

fillVector

public void fillVector()

run

public void run()
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

The general contract of the method run is that it may take any action whatsoever.

Specified by:
run in interface java.lang.Runnable
See Also:
Thread.run()

drawPoint

public void drawPoint(PointDouble point)

erasePoint

public void erasePoint(PointDouble point)

createImg

private void createImg()
Create the image

getJBeanable

public JBeanable getJBeanable()
Specified by:
getJBeanable in interface JBeanableGetable

updateImg

public void updateImg()

drawBean

public void drawBean(java.awt.Graphics g)
Description copied from interface: BeanPanelManagable
Draw the bean in the BeanPanel
Specified by:
drawBean in interface BeanPanelManagable

reDrawBean

public void reDrawBean()
Description copied from interface: BeanPanelManagable
redraw bean used to refresh the BeanPanel
Specified by:
reDrawBean in interface BeanPanelManagable

initComponant

public void initComponant()
Description copied from interface: BeanPanelManagable
Define here the way you put the componant in the BeanPanel container Object
Specified by:
initComponant in interface BeanPanelManagable

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse has been clicked on a component.
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component.
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component.
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component.
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component.
Specified by:
mouseExited in interface java.awt.event.MouseListener

animate

public void animate()

stopAnimate

public void stopAnimate()

jfract V1.0a

Generee le 27.09.2002 08:21:59 PM