org.jmol.jcamp
Class ZoneVisu

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by org.jmol.jcamp.ZoneVisu
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class ZoneVisu
extends java.awt.Canvas

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  GraphCharacteristics _graphDataUtils
           
(package private)  double ax
           
(package private)  double ay
           
(package private)  java.awt.Graphics BufGra
           
(package private)  java.awt.Image BufImg
           
(package private)  int decalx_gfx
           
(package private)  int decaly_gfx
           
 double Firstx
           
(package private)  boolean Flag_Clickable_Peaks
           
(package private)  boolean Flag_Grid
           
(package private)  boolean Flag_Integrate
           
(package private)  boolean Flag_Load_Now_Html
           
(package private)  boolean Flag_Reverse
           
(package private)  int hauteur
           
(package private)  int hauteur_bandeau
           
(package private)  int hauteur_gfx
           
(package private)  double Incrx
           
(package private)  int indice
           
(package private)  int largeur
           
(package private)  int largeur_gfx
           
(package private)  double Last_Firstx
           
(package private)  double Last_Lastx
           
(package private)  double Last_RealFirstx
           
(package private)  double Last_RealLastx
           
 double Lastx
           
(package private)  int location_textetitre
           
(package private)  double Maxintegrate
           
 double Maxy
           
 double Miny
           
(package private)  double Multx
           
(package private)  double Multy
           
(package private)  java.lang.String Name_Load_Now_Html
           
(package private)  int Nb_Clickable_Peaks
           
 int nbLignes
           
 int Nbpoints
           
(package private)  int Nbpoints_a_tracer
           
(package private)  java.lang.String[] Peak_Html
           
(package private)  double[] Peak_Start
           
(package private)  double[] Peak_Stop
           
(package private)  int prempoint
           
(package private)  double RealFirstx
           
(package private)  double RealLastx
           
 boolean reverse
           
(package private)  double Sav_Firstx
           
(package private)  double Sav_Lastx
           
(package private)  int Sav_Nbpoints_a_tracer
           
(package private)  java.awt.Graphics SavBufGra
           
(package private)  java.awt.Image SavBufImg
           
(package private)  int shitty_starting_constant
           
(package private)  java.lang.String ShowTitle
           
(package private)  double[] tableau_integrate
           
(package private)  double[] tableau_points
           
 java.lang.String TexteTitre
           
 int typedata
           
(package private)  java.lang.String Un_Nombre
           
(package private)  double x
           
 java.lang.String x_units
           
(package private)  int x1_zoom
           
(package private)  int x2_zoom
           
(package private)  double xd
           
(package private)  double xf
           
 int xLowerLimit
           
 int xUpperLimit
           
(package private)  double y
           
 java.lang.String y_units
           
(package private)  java.lang.String Y_Values
           
 double YFactor
           
(package private)  java.awt.Graphics ZoomBufGra
           
(package private)  java.awt.Image ZoomBufImg
           
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ZoneVisu()
           
 
Method Summary
 double antecedent(double x)
           
 void Determine_Extrem_y()
           
 void Do_Clickable_Peaks(double xvalue)
           
 void Draw_Graphics(double xdeb, double xfin)
           
 void Draw_Texte(java.lang.String tam)
           
 void drawAxis()
           
 boolean drawSpectra()
           
 void drawText()
           
private  void drawXAxis()
           
 double f(double tam)
           
 void Find_Peak()
           
 void Init_File()
           
 void init()
           
 void Integrate()
           
 boolean mouseDown(java.awt.Event evt, int x, int y)
           
 boolean mouseDrag(java.awt.Event evt, int x, int y)
           
 void paint(java.awt.Graphics g)
           
 void Redraw()
           
 java.lang.String Reduce_String_0(java.lang.String tam)
           
 java.lang.String Reduce_String_EndBlanks(java.lang.String tam)
           
 void Reverse()
           
 void setGraphDataUtils(GraphCharacteristics graphDataUtils)
           
private  void setGraphicsColor(java.lang.String color)
          Method to set the color of the graphics output
 void Trace_Integrate()
           
 void Trace_PEAK_TABLE()
           
 void Trace_XYDATA()
           
 java.lang.String trouve_f(double tam)
           
 void update(java.awt.Graphics g)
           
 double x(double tam)
           
 void Zoomback()
           
 void Zoomin()
           
 void Zoomout()
           
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_graphDataUtils

private GraphCharacteristics _graphDataUtils

Firstx

public double Firstx

Lastx

public double Lastx

Miny

public double Miny

Maxy

public double Maxy

YFactor

public double YFactor

xLowerLimit

public int xLowerLimit

xUpperLimit

public int xUpperLimit

nbLignes

public int nbLignes

Nbpoints

public int Nbpoints

TexteTitre

public java.lang.String TexteTitre

x_units

public java.lang.String x_units

y_units

public java.lang.String y_units

typedata

public int typedata

reverse

public boolean reverse

RealFirstx

double RealFirstx

RealLastx

double RealLastx

Last_RealFirstx

double Last_RealFirstx

Last_RealLastx

double Last_RealLastx

Last_Firstx

double Last_Firstx

Last_Lastx

double Last_Lastx

Sav_Firstx

double Sav_Firstx

Sav_Lastx

double Sav_Lastx

Flag_Clickable_Peaks

boolean Flag_Clickable_Peaks

Nb_Clickable_Peaks

int Nb_Clickable_Peaks

Peak_Start

double[] Peak_Start

Peak_Stop

double[] Peak_Stop

Peak_Html

java.lang.String[] Peak_Html

Flag_Load_Now_Html

boolean Flag_Load_Now_Html

Name_Load_Now_Html

java.lang.String Name_Load_Now_Html

Sav_Nbpoints_a_tracer

int Sav_Nbpoints_a_tracer

Nbpoints_a_tracer

int Nbpoints_a_tracer

prempoint

int prempoint

Y_Values

java.lang.String Y_Values

ShowTitle

java.lang.String ShowTitle

shitty_starting_constant

int shitty_starting_constant

tableau_points

double[] tableau_points

tableau_integrate

double[] tableau_integrate

Incrx

double Incrx

Multx

double Multx

Multy

double Multy

Maxintegrate

double Maxintegrate

x

double x

y

double y

ax

double ax

ay

double ay

xd

double xd

xf

double xf

largeur

int largeur

hauteur

int hauteur

largeur_gfx

int largeur_gfx

hauteur_gfx

int hauteur_gfx

decalx_gfx

int decalx_gfx

decaly_gfx

int decaly_gfx

hauteur_bandeau

int hauteur_bandeau

Flag_Grid

boolean Flag_Grid

Flag_Reverse

boolean Flag_Reverse

Flag_Integrate

boolean Flag_Integrate

location_textetitre

int location_textetitre

BufImg

java.awt.Image BufImg

BufGra

java.awt.Graphics BufGra

SavBufImg

java.awt.Image SavBufImg

SavBufGra

java.awt.Graphics SavBufGra

ZoomBufImg

java.awt.Image ZoomBufImg

ZoomBufGra

java.awt.Graphics ZoomBufGra

x1_zoom

int x1_zoom

x2_zoom

int x2_zoom

indice

int indice

Un_Nombre

java.lang.String Un_Nombre
Constructor Detail

ZoneVisu

public ZoneVisu()
Method Detail

init

public void init()

setGraphDataUtils

public void setGraphDataUtils(GraphCharacteristics graphDataUtils)

Draw_Texte

public void Draw_Texte(java.lang.String tam)

Init_File

public void Init_File()

Determine_Extrem_y

public void Determine_Extrem_y()

Reduce_String_EndBlanks

public java.lang.String Reduce_String_EndBlanks(java.lang.String tam)
Parameters:
tam -
Returns:
String

drawText

public void drawText()

Reduce_String_0

public java.lang.String Reduce_String_0(java.lang.String tam)
Parameters:
tam -
Returns:
String

drawXAxis

private void drawXAxis()

drawAxis

public void drawAxis()

Trace_PEAK_TABLE

public void Trace_PEAK_TABLE()

Trace_Integrate

public void Trace_Integrate()

Trace_XYDATA

public void Trace_XYDATA()

drawSpectra

public boolean drawSpectra()

Draw_Graphics

public void Draw_Graphics(double xdeb,
                          double xfin)

antecedent

public double antecedent(double x)

Find_Peak

public void Find_Peak()

Integrate

public void Integrate()

Zoomin

public void Zoomin()

Zoomback

public void Zoomback()

Zoomout

public void Zoomout()

Redraw

public void Redraw()

Reverse

public void Reverse()

f

public double f(double tam)

x

public double x(double tam)

trouve_f

public java.lang.String trouve_f(double tam)
Parameters:
tam -
Returns:
String

Do_Clickable_Peaks

public void Do_Clickable_Peaks(double xvalue)

mouseDown

public boolean mouseDown(java.awt.Event evt,
                         int x,
                         int y)
Overrides:
mouseDown in class java.awt.Component

mouseDrag

public boolean mouseDrag(java.awt.Event evt,
                         int x,
                         int y)
Overrides:
mouseDrag in class java.awt.Component

setGraphicsColor

private void setGraphicsColor(java.lang.String color)
Method to set the color of the graphics output


paint

public void paint(java.awt.Graphics g)
Overrides:
paint in class java.awt.Canvas

update

public void update(java.awt.Graphics g)
Overrides:
update in class java.awt.Canvas