|
Orbital library | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Canvas orbital.awt.Plot2D
public class Plot2D
This class is a View-Bean for a ChartModel, it displays 2-dimensional graphs.
Attributes for Matrix
color
- java.awt.Color
object that defines the painting color.
Function
color
- java.awt.Color
object that defines the painting color.precisionPoints
- java.lang.Integer
object that defines the number of points
used for intermediate values and thus defines a precision.
If, however, a value for precision
is specified this option is ignored.precision
- java.lang.Double
object that defines the precision with which
intermediate values will be calculated.Function
[] resp. vectorial Function are the same as for Function.
An instance of Function[] represents a parametric plot, a vectorial Function (one that returns Vectors)
is displayed like a parametric plot.
For each of those the element 0 specifies the function for the x-value at the times t
and the element 1 specifies the function for the y-value at the times t.
The time t is then in the specified range of the component with index 0.
ChartModel
,
Serialized FormNested 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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.print.Printable |
---|
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Plot2D()
|
|
Plot2D(ChartModel model)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
protected void |
drawAxis(java.awt.Graphics g)
|
protected void |
drawGraph(java.awt.Graphics g,
Function f,
java.util.Map attribs)
|
protected void |
drawGraph(java.awt.Graphics g,
Matrix A,
java.util.Map attribs)
|
ChartModel |
getModel()
|
java.awt.Dimension |
getPreferredSize()
|
boolean |
isAutoScaling()
|
boolean |
isFullScaling()
|
void |
paint(java.awt.Graphics gg)
|
int |
print(java.awt.Graphics gg,
java.awt.print.PageFormat pf,
int pi)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
setAutoScaling(boolean fixed_autoScalingOnly)
|
void |
setFullScaling(boolean fullScalingMarks)
|
void |
setModel(ChartModel model)
|
protected void |
setWindow(Arithmetic minxo,
Arithmetic minyo,
Arithmetic maxxo,
Arithmetic maxyo)
|
void |
update(java.awt.Graphics g)
|
protected void |
window(java.awt.Graphics2D g,
double minx,
double miny,
double maxx,
double maxy)
|
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, 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, 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, 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, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, 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 |
Constructor Detail |
---|
public Plot2D(ChartModel model)
public Plot2D()
Method Detail |
---|
public ChartModel getModel()
public void setModel(ChartModel model)
public boolean isAutoScaling()
public void setAutoScaling(boolean fixed_autoScalingOnly)
public boolean isFullScaling()
public void setFullScaling(boolean fullScalingMarks)
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Component
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
in class java.awt.Component
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
in class java.awt.Component
public int print(java.awt.Graphics gg, java.awt.print.PageFormat pf, int pi) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
public void paint(java.awt.Graphics gg)
paint
in class java.awt.Canvas
public void update(java.awt.Graphics g)
update
in class java.awt.Canvas
protected void window(java.awt.Graphics2D g, double minx, double miny, double maxx, double maxy)
protected void setWindow(Arithmetic minxo, Arithmetic minyo, Arithmetic maxxo, Arithmetic maxyo)
protected void drawAxis(java.awt.Graphics g)
protected void drawGraph(java.awt.Graphics g, Matrix A, java.util.Map attribs)
protected void drawGraph(java.awt.Graphics g, Function f, java.util.Map attribs)
|
Orbital library 1.3.0: 11 Apr 2009 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |