Package samer.maths
Class VectorPlotter
- java.lang.Object
-
- samer.core.util.heavy.VCanvas
-
- samer.tools.Plotter
-
- samer.maths.VectorPlotter
-
- All Implemented Interfaces:
- java.util.Observer
- Direct Known Subclasses:
- MatrixPlotter, VectorEditor
public class VectorPlotter extends Plotter implements java.util.Observer
A Viewer that draws a variety of graphs from data in a vector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class samer.tools.Plotter
Plotter.Pen
-
-
Field Summary
Fields Modifier and Type Field and Description static int
CLOSED
static int
FILL
static int
FILL3D
static int
LINE
static int
STEP
static int
STEPS
-
Constructor Summary
Constructors Modifier Constructor and Description protected
VectorPlotter(java.util.Observable o)
VectorPlotter(java.util.Observable o, Vec s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
attach()
void
detach()
void
execute(java.lang.String c, Environment env)
void
getCommands(Registry r)
java.awt.Dimension
getPreferredSize()
void
paint(java.awt.Graphics g)
protected void
realized()
void
scale()
void
setVec(Vec v)
void
update(java.awt.Graphics g)
void
update(java.util.Observable o, java.lang.Object s)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class samer.tools.Plotter
clear, drawAxes, exposeMaps, getPen, getPen, setAxes, setAxesColor, sized
-
-
-
-
Field Detail
-
CLOSED
public static final int CLOSED
- See Also:
- Constant Field Values
-
FILL
public static final int FILL
- See Also:
- Constant Field Values
-
FILL3D
public static final int FILL3D
- See Also:
- Constant Field Values
-
LINE
public static final int LINE
- See Also:
- Constant Field Values
-
STEP
public static final int STEP
- See Also:
- Constant Field Values
-
STEPS
public static final int STEPS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VectorPlotter
protected VectorPlotter(java.util.Observable o)
-
VectorPlotter
public VectorPlotter(java.util.Observable o, Vec s)
-
-
Method Detail
-
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Overrides:
getPreferredSize
in classPlotter
-
realized
protected void realized()
-
update
public void update(java.util.Observable o, java.lang.Object s)
- Specified by:
update
in interfacejava.util.Observer
-
attach
public void attach()
-
detach
public void detach()
-
getCommands
public void getCommands(Registry r)
-
execute
public void execute(java.lang.String c, Environment env) throws java.lang.Exception
- Throws:
java.lang.Exception
-
setVec
public void setVec(Vec v)
-
scale
public void scale()
-
update
public void update(java.awt.Graphics g)
-
-