|
|||||||
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 | +--dataGraph.Bar
Bar is part of the Davidson College Physlets project. It is a subclass of SApplet and implements inter-applet communication using the SDataListener interface.
The following embedding parameters are defined:
Parameter | Value | Description |
---|---|---|
Value | 10 | The initial height of the bar. |
Min | 0 | The minimum value. |
Max | 100.0 | The full scale value. |
Vertical | true | Vertical or horizontal display. |
ShowControls | true | Show a text field below the bar. |
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 | |
Bar()
|
Method Summary | |
void |
addData(int id,
double[] x,
double[] y)
|
void |
addData(edu.davidson.tools.SDataSource s,
int id,
double[] x,
double[] y)
|
void |
addDatum(int id,
double x,
double y)
|
void |
addDatum(edu.davidson.tools.SDataSource s,
int id,
double x,
double y)
|
void |
clearSeries(int id)
|
void |
deleteSeries(int id)
|
java.lang.String |
getAppletInfo()
|
SApplet |
getOwner()
|
java.lang.String |
getParameter(java.lang.String key,
java.lang.String def)
|
java.lang.String[][] |
getParameterInfo()
|
void |
init()
|
void |
setAutoscale(boolean scale)
|
void |
setBarWidth(int newWidth)
|
void |
setLabel(java.lang.String newLabel)
|
void |
setMax(double m)
|
void |
setMin(double m)
|
void |
setNegRGB(int r,
int g,
int b)
|
void |
setNumericFormat(java.lang.String str)
|
void |
setOwner(SApplet owner)
|
void |
setPosRGB(int r,
int g,
int b)
|
void |
setValue(double v)
|
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,
start,
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 Bar()
Method Detail |
public java.lang.String getParameter(java.lang.String key, java.lang.String def)
public void init()
public java.lang.String getAppletInfo()
public java.lang.String[][] getParameterInfo()
public void setAutoscale(boolean scale)
public void setLabel(java.lang.String newLabel)
public void setBarWidth(int newWidth)
public void setMax(double m)
public void setMin(double m)
public void setValue(double v)
public void setPosRGB(int r, int g, int b)
public void setNegRGB(int r, int g, int b)
public void setNumericFormat(java.lang.String str)
public void addDatum(int id, double x, double y)
public void addDatum(edu.davidson.tools.SDataSource s, int id, double x, double y)
public void addData(int id, double[] x, double[] y)
public void addData(edu.davidson.tools.SDataSource s, int id, double[] x, double[] y)
public void deleteSeries(int id)
public void clearSeries(int id)
public void setOwner(SApplet owner)
public SApplet getOwner()
|
Copyright Wolfgang Christian | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |