|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel java.applet.Applet javax.swing.JApplet net.algart.model3d.common.movement.MovingSpheresApplet
public class MovingSpheresApplet extends javax.swing.JApplet implements ParameterGetter, StatusShower
Java applet, allowing to customize and view the model (in animation mode) in a browser.
This class is based on 3 built-in objects MovingSpheresModel
,
MovingSpheresView
and MovingSpheresController
,
and add to them only the following operations:
Please see the source code for more details.
AlgART Laboratory 2010
Modifier and Type | Class and Description |
---|
Nested classes/interfaces inherited from class javax.swing.JApplet |
---|
javax.swing.JApplet.AccessibleJApplet |
Nested classes/interfaces inherited from class java.applet.Applet |
---|
java.applet.Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
java.awt.Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Modifier and Type | Field and Description |
---|---|
boolean |
appletReady
|
protected MovingSpheresController |
controller
|
protected MovingSpheresModel |
model
|
protected MovingSpheresView |
view
|
Fields inherited from class javax.swing.JApplet |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
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 and Description |
---|
MovingSpheresApplet()
|
Modifier and Type | Method and Description |
---|---|
void |
addElasticBall(double x,
double y,
double z,
double r,
double vX,
double vY,
double vZ)
|
void |
addInitialItems()
|
void |
addNonintersectingRandomElasticBallsInBunker(int count,
double averageRadius,
double standardDeviation,
double minRadius,
double maxRadius)
|
protected MovingSpheresController |
createController()
|
protected MovingSpheresModel |
createModel()
|
protected MovingSpheresView |
createView()
|
double |
getAccelerationLimit()
|
java.lang.String |
getAppletInfo()
|
double |
getBallDensity()
|
double |
getBallElasticityModulus()
|
double |
getBallFrictionCoefficient()
|
double |
getBunkerMaxX()
|
double |
getBunkerMaxY()
|
double |
getBunkerMaxZ()
|
double |
getBunkerMinX()
|
double |
getBunkerMinY()
|
double |
getBunkerMinZ()
|
java.lang.String |
getBunkerWallColor()
|
double |
getCoordinateOriginX()
|
double |
getCoordinateOriginY()
|
double |
getCoordinateOriginZ()
|
double |
getDeltaT()
|
double |
getEarthGravity()
|
java.lang.String |
getItemColor()
|
double |
getMediumResistanceCoefficient()
|
int |
getMovementIntegratorCode()
|
double |
getNumberOfParallelTasks()
|
double |
getRefreshTime()
|
double |
getScale()
|
double |
getT()
|
double |
getVelocityLimit()
|
boolean |
getViscousForces()
|
double |
getZCut()
|
void |
init()
|
void |
removeAll()
|
void |
resetRandSeed()
|
void |
rotate(double xAngleInDegree,
double yAngleInDegree,
double zAngleInDegree)
|
void |
setAccelerationLimit(double accelerationLimit)
|
void |
setBallDensity(double ballDensity)
|
void |
setBallElasticityModulus(double ballElasticityModulus)
|
void |
setBallFrictionCoefficient(double ballFrictionCoefficient)
|
void |
setBunkerMaxX(double bunkerMaxX)
|
void |
setBunkerMaxY(double bunkerMaxY)
|
void |
setBunkerMaxZ(double bunkerMaxZ)
|
void |
setBunkerMinX(double bunkerMinX)
|
void |
setBunkerMinY(double bunkerMinY)
|
void |
setBunkerMinZ(double bunkerMinZ)
|
void |
setBunkerWallColor(java.lang.String bunkerWallColor)
|
void |
setCoordinatesOrigin(double originX,
double originY,
double originZ)
|
void |
setDefaultPositionIJ()
|
void |
setDefaultPositionIK()
|
void |
setDeltaT(double deltaT)
|
void |
setEarthGravity(double earthGravity)
|
void |
setItemColor(java.lang.String itemColor)
|
void |
setMediumResistanceCoefficient(double mediumResistanceCoefficient)
|
void |
setMovementIntegrator(int movementIntegratorCode)
|
void |
setNumberOfParallelTasks(int numberOfParallelTasks)
|
void |
setOrientation(double ix,
double iy,
double iz,
double jx,
double jy,
double jz)
|
void |
setRandSeed(long seed)
|
void |
setRefreshTime(double refreshTime)
|
void |
setScale(double value)
|
void |
setT(double t)
|
void |
setVelocityLimit(double velocityLimit)
|
void |
setViscousForces(boolean viscousForces)
|
void |
setZCut(double value)
|
void |
start()
|
void |
startMovement()
|
void |
stop()
|
void |
stopMovement()
|
java.lang.String |
toString()
|
boolean |
tryStop(long timeoutInMilliseconds)
|
protected void |
waitForSafeModeForChangingModel()
|
Methods inherited from class javax.swing.JApplet |
---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
Methods inherited from class java.applet.Applet |
---|
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.awt.Container |
---|
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, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, 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, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.algart.model3d.common.movement.ParameterGetter |
---|
getParameter |
Methods inherited from interface net.algart.model3d.common.movement.StatusShower |
---|
showStatus |
Field Detail |
---|
public final boolean appletReady
protected MovingSpheresModel model
protected MovingSpheresView view
protected MovingSpheresController controller
Constructor Detail |
---|
public MovingSpheresApplet()
Method Detail |
---|
public void init()
init
in class java.applet.Applet
public void start()
start
in class java.applet.Applet
public void stop()
stop
in class java.applet.Applet
public boolean tryStop(long timeoutInMilliseconds)
public void startMovement()
public void stopMovement()
public void resetRandSeed()
public void setRandSeed(long seed)
public double getBunkerMinX()
public void setBunkerMinX(double bunkerMinX)
public double getBunkerMaxX()
public void setBunkerMaxX(double bunkerMaxX)
public double getBunkerMinY()
public void setBunkerMinY(double bunkerMinY)
public double getBunkerMaxY()
public void setBunkerMaxY(double bunkerMaxY)
public double getBunkerMinZ()
public void setBunkerMinZ(double bunkerMinZ)
public double getBunkerMaxZ()
public void setBunkerMaxZ(double bunkerMaxZ)
public double getEarthGravity()
public void setEarthGravity(double earthGravity)
public double getBallDensity()
public void setBallDensity(double ballDensity)
public double getBallElasticityModulus()
public void setBallElasticityModulus(double ballElasticityModulus)
public double getBallFrictionCoefficient()
public void setBallFrictionCoefficient(double ballFrictionCoefficient)
public double getMediumResistanceCoefficient()
public void setMediumResistanceCoefficient(double mediumResistanceCoefficient)
public boolean getViscousForces()
public void setViscousForces(boolean viscousForces)
public double getAccelerationLimit()
public void setAccelerationLimit(double accelerationLimit)
public double getVelocityLimit()
public void setVelocityLimit(double velocityLimit)
public double getT()
public void setT(double t)
public double getDeltaT()
public void setDeltaT(double deltaT)
public void removeAll()
removeAll
in class java.awt.Container
public void addInitialItems()
public void addElasticBall(double x, double y, double z, double r, double vX, double vY, double vZ)
public void addNonintersectingRandomElasticBallsInBunker(int count, double averageRadius, double standardDeviation, double minRadius, double maxRadius)
public double getNumberOfParallelTasks()
public void setNumberOfParallelTasks(int numberOfParallelTasks)
public int getMovementIntegratorCode()
public void setMovementIntegrator(int movementIntegratorCode)
public java.lang.String getItemColor()
public void setItemColor(java.lang.String itemColor)
public java.lang.String getBunkerWallColor()
public void setBunkerWallColor(java.lang.String bunkerWallColor)
public double getCoordinateOriginX()
public double getCoordinateOriginY()
public double getCoordinateOriginZ()
public void setCoordinatesOrigin(double originX, double originY, double originZ)
public double getScale()
public void setScale(double value)
public void setOrientation(double ix, double iy, double iz, double jx, double jy, double jz)
public void rotate(double xAngleInDegree, double yAngleInDegree, double zAngleInDegree)
public double getZCut()
public void setZCut(double value)
public void setDefaultPositionIJ()
public void setDefaultPositionIK()
public double getRefreshTime()
public void setRefreshTime(double refreshTime)
public java.lang.String getAppletInfo()
getAppletInfo
in class java.applet.Applet
public java.lang.String toString()
toString
in class java.awt.Component
protected MovingSpheresModel createModel()
protected MovingSpheresView createView()
protected MovingSpheresController createController()
protected void waitForSafeModeForChangingModel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Glavlinza Линзы ежедневной замены acuvue moist for astigmatism Glavlinza. www.glavlinza.ru |