Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.hartmath.xfunctions
Class Graph3DPanel  view Graph3DPanel download Graph3DPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.hartmath.xfunctions.GenericPanel
                      extended bycom.hartmath.xfunctions.Graph3DPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class Graph3DPanel
extends GenericPanel
implements java.awt.event.ActionListener

Description of the Class


Nested Class Summary
(package private)  class Graph3DPanel.BoundedChangeListener
          Description of the Class
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
(package private)  ButtonPanel buttons
           
(package private)  com.hartmath.xfunctions.graphs.DisplayCanvas canvas
           
(package private)  boolean clear
           
(package private)  javax.swing.JButton clearButton
           
(package private)  com.hartmath.xfunctions.graphs.CoordinateRect coords
           
(package private)  int currentStyle
           
(package private)  javax.swing.JTextField functionInput
           
(package private)  Graph3DCanvas graphcanvas
           
(package private)  javax.swing.JButton graphItButton
           
static int HIDDEN_LINES_REMOVED
          Description of the Field
(package private)  javax.swing.JScrollBar hScroll
           
(package private)  com.hartmath.xfunctions.graphs.NumberInputPanel numberInput
           
(package private)  double[] parameterValues
           
(package private)  com.hartmath.lib.Parser scanner
           
(package private)  com.hartmath.lib.Session session
           
static int SHADED
          Description of the Field
static int SHADED_WITH_WIRES
          Description of the Field
(package private)  javax.swing.ButtonGroup styleButtons
           
(package private)  javax.swing.JRadioButton[] styleCB
           
(package private)  javax.swing.JScrollBar vScroll
           
static int WIREFRAME
          Description of the Field
(package private)  javax.swing.JButton zoomInButton
           
(package private)  javax.swing.JButton zoomOutButton
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
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
Graph3DPanel(java.lang.String fun, java.lang.String x, java.lang.String y, double x0, double x1, double y0, double y1, com.hartmath.lib.Session sess)
          Constructor for the Graph3DPanel object
 
Method Summary
(package private)  void aboutToHide()
           
 void aboutToShow()
          Description of the Method
 void actionPerformed(java.awt.event.ActionEvent evt)
          Description of the Method
private  void doClear()
          Description of the Method
private  void doCompute()
          Description of the Method
private  void doScroll()
          Description of the Method
private  void doZoom(boolean zoomIn)
          Description of the Method
private  void getStyle()
          Gets the style attribute of the Graph3DPanel object
 boolean handleEvent(java.awt.Event evt)
          Description of the Method
 java.awt.Insets insets()
          Returns the insets for this container, which is the space used for borders, the margin, etc.
(package private)  void installExample(java.lang.Object[] data)
          Description of the Method
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scanner

com.hartmath.lib.Parser scanner

coords

com.hartmath.xfunctions.graphs.CoordinateRect coords

graphcanvas

Graph3DCanvas graphcanvas

functionInput

javax.swing.JTextField functionInput

parameterValues

double[] parameterValues

styleCB

javax.swing.JRadioButton[] styleCB

styleButtons

javax.swing.ButtonGroup styleButtons

graphItButton

javax.swing.JButton graphItButton

clearButton

javax.swing.JButton clearButton

zoomInButton

javax.swing.JButton zoomInButton

zoomOutButton

javax.swing.JButton zoomOutButton

vScroll

javax.swing.JScrollBar vScroll

hScroll

javax.swing.JScrollBar hScroll

clear

boolean clear

currentStyle

int currentStyle

session

com.hartmath.lib.Session session

WIREFRAME

public static final int WIREFRAME
Description of the Field

See Also:
Constant Field Values

HIDDEN_LINES_REMOVED

public static final int HIDDEN_LINES_REMOVED
Description of the Field

See Also:
Constant Field Values

SHADED

public static final int SHADED
Description of the Field

See Also:
Constant Field Values

SHADED_WITH_WIRES

public static final int SHADED_WITH_WIRES
Description of the Field

See Also:
Constant Field Values

canvas

com.hartmath.xfunctions.graphs.DisplayCanvas canvas

numberInput

com.hartmath.xfunctions.graphs.NumberInputPanel numberInput

buttons

ButtonPanel buttons
Constructor Detail

Graph3DPanel

public Graph3DPanel(java.lang.String fun,
                    java.lang.String x,
                    java.lang.String y,
                    double x0,
                    double x1,
                    double y0,
                    double y1,
                    com.hartmath.lib.Session sess)
Constructor for the Graph3DPanel object

Method Detail

aboutToShow

public void aboutToShow()
Description of the Method

Overrides:
aboutToShow in class GenericPanel

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Description of the Method

Specified by:
actionPerformed in interface java.awt.event.ActionListener

handleEvent

public boolean handleEvent(java.awt.Event evt)
Description of the Method


installExample

void installExample(java.lang.Object[] data)
Description of the Method

Overrides:
installExample in class GenericPanel

getStyle

private void getStyle()
Gets the style attribute of the Graph3DPanel object


doCompute

private void doCompute()
Description of the Method


doClear

private void doClear()
Description of the Method


doScroll

private void doScroll()
Description of the Method


doZoom

private void doZoom(boolean zoomIn)
Description of the Method


aboutToHide

void aboutToHide()

insets

public java.awt.Insets insets()
Description copied from class: java.awt.Container
Returns the insets for this container, which is the space used for borders, the margin, etc.