org.jmat.gui.plotObjects
Class RelativeCoord

java.lang.Object
  |
  +--org.jmat.gui.plotObjects.Coord
        |
        +--org.jmat.gui.plotObjects.RelativeCoord
All Implemented Interfaces:
CommandLinePrintable, Noteable

public class RelativeCoord
extends Coord
implements Noteable


Field Summary
protected  Base base
           
protected  boolean isNoteable
           
 
Fields inherited from class org.jmat.gui.plotObjects.Coord
plotCoord, screenCoord
 
Constructor Summary
RelativeCoord(double[] pC, Base b)
           
 
Method Summary
 RelativeCoord addVector(double[] v)
           
 void addVectorEquals(double[] v)
           
 void addVectorEquals(double vi, int i)
           
static double approx(double val, int decimal)
           
static RelativeCoord barycenter(RelativeCoord A, double p1, Coord B, double p2)
           
 void checkSameRelativesBases(RelativeCoord B)
           
 Base getBase()
           
 int[] getScreenCoordCopy()
           
 void note(java.awt.Graphics comp)
           
 RelativeCoord projection(int dimension)
           
 void setBase(Base b)
           
 void setNotable(boolean b)
           
 void setPlotCoord(double[] pC)
           
 void setPlotCoord(double pCi, int i)
           
 java.lang.String toString()
           
 boolean tryNote(int[] sC)
           
 boolean tryNote(int[] sC, java.awt.Graphics comp)
           
 
Methods inherited from class org.jmat.gui.plotObjects.Coord
getPlotCoordCopy, setScreenCoord, toCommandLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

base

protected Base base

isNoteable

protected boolean isNoteable
Constructor Detail

RelativeCoord

public RelativeCoord(double[] pC,
                     Base b)
Method Detail

barycenter

public static RelativeCoord barycenter(RelativeCoord A,
                                       double p1,
                                       Coord B,
                                       double p2)

getScreenCoordCopy

public int[] getScreenCoordCopy()
Overrides:
getScreenCoordCopy in class Coord

getBase

public Base getBase()

setBase

public void setBase(Base b)

setPlotCoord

public void setPlotCoord(double[] pC)
Overrides:
setPlotCoord in class Coord

setPlotCoord

public void setPlotCoord(double pCi,
                         int i)

projection

public RelativeCoord projection(int dimension)

addVector

public RelativeCoord addVector(double[] v)

addVectorEquals

public void addVectorEquals(double[] v)

addVectorEquals

public void addVectorEquals(double vi,
                            int i)

toString

public java.lang.String toString()
Overrides:
toString in class Coord

setNotable

public void setNotable(boolean b)

tryNote

public boolean tryNote(int[] sC)
Specified by:
tryNote in interface Noteable

tryNote

public boolean tryNote(int[] sC,
                       java.awt.Graphics comp)
Specified by:
tryNote in interface Noteable

note

public void note(java.awt.Graphics comp)
Specified by:
note in interface Noteable

approx

public static double approx(double val,
                            int decimal)

checkSameRelativesBases

public void checkSameRelativesBases(RelativeCoord B)