|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Panel | +--java.applet.Applet | +--edu.davidson.tools.SApplet | +--poisson.Poisson
Fields inherited from class edu.davidson.tools.SApplet |
clock,
dataConnections,
dataListeners,
dataSources,
lock |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
LEFT_ALIGNMENT,
RIGHT_ALIGNMENT,
TOP_ALIGNMENT |
Constructor Summary | |
Poisson()
|
Method Summary | |
int |
addConnectorLine(int id1,
int id2)
Add a connecting line between two objects |
int |
addObject(java.lang.String name,
java.lang.String parList)
Create an object and add it to the Physlet. |
void |
destroy()
Used by the browser when the HTML page is closed. |
java.lang.String |
getAppletInfo()
|
int |
getChargeArrayID()
Get the object identifier for the charge density. |
int |
getEnsembleID()
Get the object identifier for ensemble of objects in the poisson applet. |
java.lang.String |
getParameter(java.lang.String key,
java.lang.String def)
|
java.lang.String[][] |
getParameterInfo()
|
int |
getPotentialArrayID()
Get the object identifier for the potential array. |
void |
init()
|
boolean |
set(int id,
java.lang.String name,
java.lang.String parList)
Change the properies of an object. |
boolean |
setAnimationSlave(int masterID,
int slaveID)
Force an object to follow another object on the screen. |
void |
setAutoRefresh(boolean ar)
Repaint whenevers the system parameters are changed. |
void |
setCaption(java.lang.String caption)
Set the caption. |
boolean |
setChargeDensity(int id,
double q)
Set the charge density. |
boolean |
setChi(int id,
double chi)
Set the dielectric permittivity. |
boolean |
setConnector(int id,
int id1,
int id2)
Set the connector line between two objects. |
boolean |
setConstantQ(int id,
double q,
boolean isConstant)
Make keep the charge rather than the voltage on this conductor constant. |
boolean |
setConstraint(int id,
int constraintID)
Set a motion constraint on an object. |
void |
setDefault()
Set the default values: grid=false, fild vectors=false,contours=true, drag=false, no E and no V on mouse drag. |
void |
setDefaultDragable(boolean drag)
Set the dragable property for all subsequent objects. |
void |
setDefaultRGB(int r,
int g,
int b)
Set the color for all subsequent drawing. |
boolean |
setDisplayOffset(int id,
int xOff,
int yOff)
Offset the object's position on the screen from its default drawing position. |
boolean |
setDragable(int id,
boolean isDragable)
Make an object dragable. |
void |
setDrawChargeDensity(boolean isChargeMode)
Set the drawing to chargedensity mode or conductor mode in the UI. |
void |
setFieldResolution(int r)
Set the resoltion for the field vectors. |
boolean |
setFont(int id,
java.lang.String family,
int style,
int size)
change the object's font for any text that is displayed. |
boolean |
setFormat(int id,
java.lang.String format)
change the object's numerical format for any numbers that is displayed. |
void |
setGutter(int g)
Set a gutter of grid points outside the viewing region. |
void |
setMaxIterations(int m)
Set the maximum number of inerations for the Poisson solver. |
void |
setMessage(java.lang.String msg)
Display a message in the yellow message box. |
boolean |
setResizable(int id,
boolean isResizable)
Make an object resizable. |
boolean |
setRGB(int id,
int r,
int g,
int b)
Set the color for an object. |
boolean |
setShowCharge(int id,
boolean isShowCharge)
Show the induced charge. |
void |
setShowContours(boolean isShowContours)
Show the contour lines? |
void |
setShowEOnDrag(boolean isShowEOnDrag)
Show the magnitude of the electric field when the mouse is dragged. |
void |
setShowFieldVectors(boolean isShowField)
Turn field vectors off and on. |
void |
setShowGrid(boolean isShowGrid)
Turn grid off and on. |
void |
setShowRhoOnDrag(boolean isShowRhoOnDrag)
Show the charge density when the mouse is dragged. |
void |
setShowVOnDrag(boolean isShowVOnDrag)
Show the charge voltage when the mouse is dragged. |
void |
setTolerance(double tol)
Set the tolerance of the Poisson solver. |
boolean |
setVisibility(int id,
boolean isVisible)
Make an object visibile. |
boolean |
setVoltage(int id,
double v)
Set the voltage on the conductor. |
void |
setXRange(double xmin,
double xmax)
Set the scale using the horizontal axis. |
void |
setYRange(double ymin,
double ymax)
|
void |
start()
Used by the browser when the HTML page is active. |
Methods inherited from class java.applet.Applet |
getAccessibleContext,
getAppletContext,
getAudioClip,
getAudioClip,
getCodeBase,
getDocumentBase,
getImage,
getImage,
getLocale,
getParameter,
isActive,
newAudioClip,
play,
play,
resize,
resize,
setStub,
showStatus,
stop |
Methods inherited from class java.awt.Panel |
addNotify |
Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
countComponents,
deliverEvent,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents,
getInsets,
getLayout,
getListeners,
getMaximumSize,
getMinimumSize,
getPreferredSize,
insets,
invalidate,
isAncestorOf,
layout,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
preferredSize,
print,
printComponents,
remove,
remove,
removeAll,
removeContainerListener,
removeNotify,
setCursor,
setFont,
setLayout,
update,
validate |
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addHierarchyBoundsListener,
addHierarchyListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
bounds,
checkImage,
checkImage,
contains,
contains,
createImage,
createImage,
disable,
dispatchEvent,
enable,
enable,
enableInputMethods,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getGraphicsConfiguration,
getHeight,
getInputContext,
getInputMethodRequests,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isFocusTraversable,
isLightweight,
isOpaque,
isShowing,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
postEvent,
prepareImage,
prepareImage,
printAll,
remove,
removeComponentListener,
removeFocusListener,
removeHierarchyBoundsListener,
removeHierarchyListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
show,
size,
toString,
transferFocus |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public Poisson()
Method Detail |
public java.lang.String getParameter(java.lang.String key, java.lang.String def)
public void init()
public void destroy()
public void start()
public int addConnectorLine(int id1, int id2)
id1
- The first id of a screen object.id2
- The second id of a screen object.public int addObject(java.lang.String name, java.lang.String parList)
addObject ("circle", "x = 0, y = -1.0, r = 10");
name
- the type of object to be created.parList
- a list of parameters to be setpublic java.lang.String getAppletInfo()
public boolean set(int id, java.lang.String name, java.lang.String parList)
set(id, "sale", "xmin=0, xmax=2, autoscalx=false");
id
- the identifier of the objectname
- the type of property to be created.parList
- a list of parameterspublic boolean setAnimationSlave(int masterID, int slaveID)
masterID
- The id of the master object.slaveID
- The id of the slave object.public void setAutoRefresh(boolean ar)
autoRefresh
- Automatic repaint?public void setCaption(java.lang.String caption)
caption
- The applet caption.public boolean setConnector(int id, int id1, int id2)
id
- the id of the connector object.id1
- the id of the first object.id2
- the id of the second object.true
if successful.public boolean setConstraint(int id, int constraintID)
id
- the ID of the object.constraintID
- the ID of the constraint.true
if successful.public void setDefaultRGB(int r, int g, int b)
r
- 0<=red<=255g
- 0<=green<=255b
- 0<=blue<=255public void setDefault()
public boolean setDisplayOffset(int id, int xOff, int yOff)
id
- The id of the object.xoff
- The x offset.yoff
- The y offset.public void setDefaultDragable(boolean drag)
nd
- NoDrag parameter; nd=0 turns drag off, nd=1 turns drag on.public void setShowFieldVectors(boolean isShowField)
sfv
- ShowFieldVector parameter.public boolean setShowCharge(int id, boolean isShowCharge)
id
- the id of the object.isShowCharge
- propertypublic void setShowContours(boolean isShowContours)
sc
- true
to show contourspublic void setShowGrid(boolean isShowGrid)
sg
- Show grid parameter.public boolean setDragable(int id, boolean isDragable)
id
- The ID of the object.dragable
- propertytrue
if successful.public boolean setResizable(int id, boolean isResizable)
id
- the ID of the object.resizable
- propertytrue
if successful.public boolean setConstantQ(int id, double q, boolean isConstant)
id
- the object identifier.q
- the charge valueisConstant
- true
if charge should be held constant.true
if successful.public boolean setVoltage(int id, double v)
id
- the object identifier.q
- the charge valuetrue
if successful.public boolean setChi(int id, double chi)
id
- the object identifier.chi
- the permittivitytrue
if successful.public boolean setChargeDensity(int id, double q)
id
- the object identifier.q
- the charge valuetrue
if successful.public boolean setVisibility(int id, boolean isVisible)
id
- The ID of the object.visibility
- propertytrue
if successful.public void setFieldResolution(int r)
r
- the resolutionpublic void setGutter(int g)
g
- the gutterpublic boolean setFont(int id, java.lang.String family, int style, int size)
id
- The id of the object.family
- The font family: Helvetica, Times.style
- The style, 0=plain, 1=bold.size
- The size of the font;public boolean setFormat(int id, java.lang.String format)
id
- The id of the object.format
- a string using unix printf conventions.public void setMessage(java.lang.String msg)
msg
- Message to display after the animation stops.public void setMaxIterations(int m)
tol
- public void setTolerance(double tol)
tol
- public void setDrawChargeDensity(boolean isChargeMode)
isChargeMode
- true
if chargedensity mode and false
otherwisepublic void setXRange(double xmin, double xmax)
xmin
- Minimuum value on x axis.xmax
- Maximum value on x axis.public void setYRange(double ymin, double ymax)
public void setShowEOnDrag(boolean isShowEOnDrag)
se
- Show electric field on drag?public void setShowRhoOnDrag(boolean isShowRhoOnDrag)
isShowRhoOnDrag
- Show charge density on drag?public void setShowVOnDrag(boolean isShowVOnDrag)
sv
- Show voltage on drag?public boolean setRGB(int id, int r, int g, int b)
id
- The ID of the object.r
- red.g
- green.b
- blue.public int getPotentialArrayID()
public int getChargeArrayID()
public int getEnsembleID()
public java.lang.String[][] getParameterInfo()
|
Copyright Wolfgang Christian | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |