nslj.src.display
Class TemporaryBezier

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--nslj.src.display.NslCanvas
                    |
                    +--nslj.src.display.TemporaryBezier
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class TemporaryBezier
extends NslCanvas

See Also:
Serialized Form

Inner classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
 Vector2[] ControlPoints
           
static int dummyv
           
static NslFrame frame
           
 int indexControlPoints
           
 int MaxCtrlPts
           
static java.lang.String xname
           
static java.util.Vector Xvariable
           
static float[] xy
           
static java.lang.String yname
           
static java.util.Vector Yvariable
           
 
Fields inherited from class nslj.src.display.NslCanvas
C_max_x, C_max_y, C_min_x, C_min_y, canvas_name, canvas_type, drawH, drawW, drawX, drawY, dx, dy, max_data_pos, mouseAdapter, nslDisplayFrame, var_in_canvas, variable_list, windowName, x_dimension, y_dimension
 
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
TemporaryBezier()
           
 
Method Summary
 Vector2 BezierII(int degree, Vector2[] V, double t)
           
 double[] ChordLengthParameterize(Vector2[] d, int first, int last)
           
 Vector2 ComputeCenterTangent(Vector2[] d, int center)
           
 Vector2 ComputeLeftTangent(Vector2[] d, int end)
           
 double ComputeMaxError(Vector2[] d, int first, int last, Vector2[] bezCurve, double[] u, int[] splitPoint)
           
 Vector2 ComputeRightTangent(Vector2[] d, int end)
           
 void DrawBezierCurve(int n, Vector2[] curve, java.io.PrintWriter pw)
           
 void FitCubic(Vector2[] d, int first, int last, Vector2 tHat1, Vector2 tHat2, double error, java.io.PrintWriter pw)
           
 void fitting_main(int drawing_time)
           
 Vector2[] GenerateBezier(Vector2[] d, int first, int last, double[] uPrime, Vector2 tHat1, Vector2 tHat2)
           
 double NewtonRaphsonRootFind(Vector2[] Q, Vector2 P, double u)
           
 double[] Reparameterize(Vector2[] d, int first, int last, double[] u, Vector2[] bezCurve)
           
 void TemporaryBezier()
           
 int times(int ti)
           
 Vector2 V2Add(Vector2 a, Vector2 b, Vector2 c)
           
 Vector2 V2AddII(Vector2 a, Vector2 b)
           
 double V2DistanceBetween2Points(Vector2 a, Vector2 b)
           
 double V2Dot(Vector2 a, Vector2 b)
           
 Vector2 V2Scale(Vector2 v, double newlen)
           
 Vector2 V2ScaleIII(Vector2 a, double s)
           
 Vector2 V2SubII(Vector2 a, Vector2 b)
           
 
Methods inherited from class nslj.src.display.NslCanvas
add_variable, collect, copy, delete_variable, draw_box, draw_rectangle, get_display_variable, get_variable_list, getC_max_y, getC_min_y, getWindowName, init, initCanvas, initEpochCanvas, mouseDragged, mousePressed, mouseReleased, nslAddVariable, nslGetName, paint, Print, refresh, set_background, set_canvas_type, set_draw_size, set_draw_size, set_min_max, setSize, setWindowName, toString, update, zoom_draw_size, zoom_draw_size, zoom_in, zoom_out
 
Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext, paint
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setVisible, show, show, size, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dummyv

public static int dummyv

xy

public static float[] xy

Xvariable

public static java.util.Vector Xvariable

Yvariable

public static java.util.Vector Yvariable

frame

public static NslFrame frame

xname

public static java.lang.String xname

yname

public static java.lang.String yname

ControlPoints

public Vector2[] ControlPoints

indexControlPoints

public int indexControlPoints

MaxCtrlPts

public int MaxCtrlPts
Constructor Detail

TemporaryBezier

public TemporaryBezier()
Method Detail

TemporaryBezier

public void TemporaryBezier()

V2SubII

public Vector2 V2SubII(Vector2 a,
                       Vector2 b)

ComputeLeftTangent

public Vector2 ComputeLeftTangent(Vector2[] d,
                                  int end)

ComputeRightTangent

public Vector2 ComputeRightTangent(Vector2[] d,
                                   int end)

ComputeCenterTangent

public Vector2 ComputeCenterTangent(Vector2[] d,
                                    int center)

ChordLengthParameterize

public double[] ChordLengthParameterize(Vector2[] d,
                                        int first,
                                        int last)

ComputeMaxError

public double ComputeMaxError(Vector2[] d,
                              int first,
                              int last,
                              Vector2[] bezCurve,
                              double[] u,
                              int[] splitPoint)

Reparameterize

public double[] Reparameterize(Vector2[] d,
                               int first,
                               int last,
                               double[] u,
                               Vector2[] bezCurve)

NewtonRaphsonRootFind

public double NewtonRaphsonRootFind(Vector2[] Q,
                                    Vector2 P,
                                    double u)

FitCubic

public void FitCubic(Vector2[] d,
                     int first,
                     int last,
                     Vector2 tHat1,
                     Vector2 tHat2,
                     double error,
                     java.io.PrintWriter pw)

GenerateBezier

public Vector2[] GenerateBezier(Vector2[] d,
                                int first,
                                int last,
                                double[] uPrime,
                                Vector2 tHat1,
                                Vector2 tHat2)

BezierII

public Vector2 BezierII(int degree,
                        Vector2[] V,
                        double t)

V2Scale

public Vector2 V2Scale(Vector2 v,
                       double newlen)

V2Add

public Vector2 V2Add(Vector2 a,
                     Vector2 b,
                     Vector2 c)

V2Dot

public double V2Dot(Vector2 a,
                    Vector2 b)

V2AddII

public Vector2 V2AddII(Vector2 a,
                       Vector2 b)

V2ScaleIII

public Vector2 V2ScaleIII(Vector2 a,
                          double s)

V2DistanceBetween2Points

public double V2DistanceBetween2Points(Vector2 a,
                                       Vector2 b)

DrawBezierCurve

public void DrawBezierCurve(int n,
                            Vector2[] curve,
                            java.io.PrintWriter pw)

times

public int times(int ti)

fitting_main

public void fitting_main(int drawing_time)