public abstract class UpperLowerG2DCanvasApplet extends UpperLowerCanvasApplet
MM2DCanvas
aligned in a column
and one
ControlPanel
below.UpperLowerCanvasApplet.ScreenshotButton
BaseApplet.DynamicResetButton, BaseApplet.ResetButton, BaseApplet.ScreenShotFrame
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
m_lowerCanvas, m_lowerCanvasLabel, m_lowerCanvasPane, m_lowerCanvasTitlePane, m_lowerSubInsetPane, m_upperCanvas, m_upperCanvasLabel, m_upperCanvasPane, m_upperCanvasTitlePane, m_upperSubInsetPane
BIG_APPLET_THEME, BIG_THEME, CVS_DATE, CVS_DATE_FORMAT, CVS_REVISION, DEFAULT_APPLET_SIZE_THEME, m_animation, m_canvasPane, m_canvasTabbedPanel, m_centerPane, m_centerSplitPanel, m_controlsPane, m_controlTabbedPanel, m_exerciseSupport, popup_print, SMALL_APPLET_THEME, SMALL_THEME, TINY_APPLET_THEME, TINY_THEME
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
BOTTOM_CENTER_PANE, BOTTOM_LEFT_PANE, BOTTOM_NORTH_PANE, BOTTOM_PANE, BOTTOM_RIGHT_PANE, BOTTOM_SOUTH_PANE, CONTROL_PANE, TOP_PANE
ABOUT_ICON_POSITION_BOTTOM_LEFT_VALUE, ABOUT_ICON_POSITION_BOTTOM_RIGHT_VALUE, ABOUT_ICON_POSITION_PARAMETER, ABOUT_ICON_POSITION_TOP_LEFT_VALUE, ABOUT_ICON_POSITION_TOP_RIGHT_VALUE, APPLET_HEIGHT_PARAMETER, APPLET_WIDTH_PARAMETER, BUTTON_TEXT_PARAMETER, EMBED_INPUT_HELP_PARAMETER, EMBEDDING_MODE_PARAMETER, ENABLE_INPUT_HELP_PARAMETER, EXTENSIONS_PARAMETER, INPUT_HELP_TREAT_OP_NUMBER_AS_FUNCTION_PARAMETER, LANGUAGE_PARAMETER, RESOURCE_REF_PARAMETER_PREFIX, SHOW_BOTTOM_BUTTONS_PARAMETER, SHOW_CENTER_BORDER_PARAMETER, SHOW_HELP_BUTTONS_PARAMETER, SHOW_TITLE_PARAMETER, THEME_PARAMETER, TITLE_PARAMETER, USE_JAVA_HELP_PARAMETER, USE_MUMIE_THEME_PARAMETER
Constructor and Description |
---|
UpperLowerG2DCanvasApplet() |
Modifier and Type | Method and Description |
---|---|
void |
adjustWorld2Screen()
Sets the world to screen maps according to the given dimensions.
|
void |
getCanvasParameters()
parse parameters that set the world dimensions.
|
MMG2DCanvas |
getLowerCanvas2D() |
MMG2DCanvas |
getUpperCanvas2D() |
double |
getWorldCenterXLower()
Returns the x world coordinate that is at the center of the lower canvas.
|
double |
getWorldCenterXUpper()
Returns the x world coordinate that is at the center of the upper canvas.
|
double |
getWorldCenterYLower()
Returns the y world coordinate that is at the center of the lower canvas.
|
double |
getWorldCenterYUpper()
Returns the y world coordinate that is at the center of the lower canvas.
|
double |
getWorldHeightLower()
Returns the height in world coordinates that is displayed by the lower canvas.
|
double |
getWorldHeightUpper()
Returns the height in world coordinates that is displayed by the upper canvas.
|
double |
getWorldWidthLower()
Returns the width in world coordinates that is displayed by the lower canvas.
|
double |
getWorldWidthUpper()
Returns the width in world coordinates that is displayed by the upper canvas.
|
void |
init()
Constant for the canvas margin.
|
void |
reset()
Calls super method and resets the history of the canvases.
|
void |
setWorldCenterXLower(double d)
Sets the x world coordinate that is at the center of the lower canvas.
|
void |
setWorldCenterXUpper(double d)
Sets the x world coordinate that is at the center of the upper canvas.
|
void |
setWorldCenterYLower(double d)
Sets the y world coordinate that is at the center of the lower canvas.
|
void |
setWorldCenterYUpper(double d)
Sets the y world coordinate that is at the center of the upper canvas.
|
void |
setWorldHeightLower(double d)
Sets the height in world coordinates that is displayed by the lower canvas.
|
void |
setWorldHeightUpper(double d)
Sets the height in world coordinates that is displayed by the upper canvas.
|
void |
setWorldWidthLower(double d)
Sets the width in world coordinates that is displayed by the lower canvas.
|
void |
setWorldWidthUpper(double d)
Sets the width in world coordinates that is displayed by the upper canvas.
|
addScreenShotButton, getLowerCanvas, getUpperCanvas, initializeObjects, setLowerCanvasSubInset, setLowerCanvasTitle, setUpperCanvasSubInset, setUpperCanvasTitle
addControl, addControl, addControl, addControl, addControl, addDynamicResetButton, addMessage, addMMObjectAsContainerContent, addMMObjectAsContainerContent, addResetButton, addText, addText, addText, addText, addVector, addVector, clearInternalFields, createExerciseSupport, createRuntimeSupport, destroy, displaySpecialCase, fireTrainingChecked, fireTrainingDataGenerated, fireUserEvent, getAppletClass, getAppletContentPane, getAppletFrame, getCanvasPane, getCanvasTabbedPanel, getCenterPane, getCenterTabbedPanel, getControlPanel, getControlTabbedPanel, getExerciseSupport, getJApplet, getLocale, getMathletRuntime, getMessage, getMessage, getMyContentPane, getPackageName, getParameter, getParameter, getParameterInfo, getResetButton, getRuntimeSupport, getShortName, getString, hasErrors, insertHSpace, insertLineBreak, insertLineBreaks, insertTab, insertTabs, insertVSpace, isDebugMode, isFrameVisible, isHomeworkMode, isInitialized, isOfflineMode, isOnlineMode, isPreviewMode, postInit, readParameter, removeAnimationPanel, removeControl, removeMMObject, reportError, resetDemo, resetTraining, save, selectData, selectSubtask, setAnimationPanel, setBottomButtonsVisible, setCenterAlignment, setControlPanelHeight, setControlPanelWidth, setLeftAlignment, setLoggerLevel, setRightAlignment, setTitle, setTitle, setTitleVisible, setupLogging, setupLogging, showAppletFrame, showConfirmDialog, showDialog, showErrorDialog, showMessageDialog, showMessageDialog, showMessageDialog, showScreenshotFrom, start, stop, unload, unload, updateMathletUI, warn, wasStartedAsApplet
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void init()
UpperLowerCanvasApplet
init
in interface BasicAppletContext
init
in class UpperLowerCanvasApplet
Applet.init()
public MMG2DCanvas getUpperCanvas2D()
public MMG2DCanvas getLowerCanvas2D()
public void getCanvasParameters()
public void adjustWorld2Screen()
public void reset()
reset
in class UpperLowerCanvasApplet
public double getWorldCenterXUpper()
public double getWorldCenterXLower()
public double getWorldCenterYUpper()
public double getWorldCenterYLower()
public double getWorldHeightUpper()
public double getWorldHeightLower()
public double getWorldWidthUpper()
public double getWorldWidthLower()
public void setWorldCenterXUpper(double d)
public void setWorldCenterXLower(double d)
public void setWorldCenterYUpper(double d)
public void setWorldCenterYLower(double d)
public void setWorldHeightUpper(double d)
public void setWorldHeightLower(double d)
public void setWorldWidthUpper(double d)
public void setWorldWidthLower(double d)
Further documentation and examples can be found under www.mathletfactory.de.