|
|||||||||
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 com.iisc.jwc.jschart.JSChart
JSChart is an applet to display charts from the JSServer.
Field Summary |
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 | |
JSChart()
Constructs a JSChart applet. |
|
JSChart(java.lang.String[] args)
Constructs a JSChart with the specified paramaters. |
Method Summary | |
void |
connect()
Attempts a connection to the server using the host, user, and password parameters provided by the set methods. |
void |
connect(java.lang.String host,
java.lang.String user,
java.lang.String password)
Attempts a connection to the server using the host, user, and password parameters provided by the user. |
boolean |
connected()
Returns true if JSChart is connected to the server or false if it is not connected. |
void |
deleteChart()
Deletes a chart referenced from values contained in the set methods. |
void |
destroy()
Called by the browser or applet viewer to inform this applet that it is being reclaimed and that it should destroy any resources that it has allocated. |
void |
disconnect()
Disconnect from the server. |
void |
displayError(java.lang.String str)
Display a message instead of a chart image. |
void |
drawChart()
Draws a chart using information obtained from set methods. |
void |
drawNewChart()
Allows the user to create a new chart using the information obtained from set methods. |
java.lang.String |
getBackgroundColor()
Returns the background color string. |
java.lang.String |
getBookName()
Returns the name of the book the chart references. |
java.lang.String |
getBookPassword()
Returns the book's password. |
java.lang.String |
getChartName()
Returns the name of the chart to reference. |
java.lang.String |
getHost()
Returns the name of the host for this session. |
java.lang.String |
getPassword()
Returns the user's password for this session. |
int |
getPort()
Returns the host port number for this session. |
java.lang.String |
getRange()
Returns the chart range the user specified. |
java.lang.String |
getSheetName()
Returns the name of the sheet the chart references. |
boolean |
getSmartFit()
Returns true or false depending on whether smart fit is enabled or not. |
java.lang.String |
getTemplateName()
Returns the name of the chart template the user specified. |
int |
getThrottle()
Returns the number of seconds the client will wait before responding to a server chart update. |
boolean |
getThrowExceptions()
Returns true or false depending on whether exceptions are being thrown or not. |
java.lang.String |
getUser()
Returns the name of the user for this session. |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
Repaints the component when the image has changed. |
void |
init()
Called by the browser or applet viewer to inform this applet that it has been loaded into the system. |
static void |
main(java.lang.String[] args)
Launches JSChart as an application. |
void |
paint(java.awt.Graphics g)
Paints this component. |
void |
setBackgroundColor(java.lang.String rgb)
Specifies the background color using this method. |
void |
setBookName(java.lang.String bookname)
Specify the book the chart is located in. |
void |
setBookPassword(java.lang.String password)
Specifies the book password. |
void |
setChartName(java.lang.String chartname)
Specifies the name of the chart. |
void |
setHost(java.lang.String host)
Sets the hostname for this session. |
void |
setPassword(java.lang.String password)
Sets the password for this session. |
void |
setPort(int port)
Sets the port number for this session. |
void |
setRange(java.lang.String range)
Specifies the range the chart should reference when creating a new chart. |
void |
setSheetName(java.lang.String sheetname)
Specifies the sheet in which the chart is located. |
void |
setSmartFit(boolean smartfit)
Specifies whether to attempt to smart fit the chart to the space available. |
void |
setTemplateName(java.lang.String templatename)
Specifies the name and path of the chart template. |
void |
setThrottle(int secs)
Sets the number of seconds the client will wait before responding to a server chart update. |
void |
setThrowExceptions(boolean throwexceptions)
Specifies whether JSChart should throw exceptions to the calling application. |
void |
setUser(java.lang.String user)
Sets the user for this session. |
void |
start()
Called by the browser or applet viewer to inform this applet that it should start its execution. |
void |
stop()
Called by the browser or applet viewer to inform this applet that it should stop its execution. |
void |
update(java.awt.Graphics g)
The AWT calls the update method in response to a call to repaint. |
void |
updateImage()
|
Methods inherited from class java.applet.Applet |
getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, 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, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, validate |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JSChart()
public JSChart(java.lang.String[] args) throws java.lang.Exception
args
- Command line arguments.
java.lang.Exception
- Used to indicate that the "usage" has been presented to the user or bad option(s).Method Detail |
public void connect() throws com.iisc.jwc.jschart.ChartException
ChartException
- An excption occured while connecting to the server.public void connect(java.lang.String host, java.lang.String user, java.lang.String password) throws com.iisc.jwc.jschart.ChartException
host
- Name of JSServer machine.user
- JSServer user.password
- The user password.
ChartException
- An excption occured while connecting to the server.public boolean connected()
public void deleteChart() throws com.iisc.jwc.jschart.ChartException
ChartException
- An exception occured while deleting the chart.public void destroy()
public void disconnect() throws com.iisc.jwc.jschart.ChartException
ChartException
- An excption occured while disconnecting from the server.public void displayError(java.lang.String str)
str
- The error message to display.public void drawChart() throws com.iisc.jwc.jschart.ChartException
ChartException
- An exception occured while drawing the chart.public void drawNewChart() throws com.iisc.jwc.jschart.ChartException
ChartException
- An exception occured while drawing the chart.public java.lang.String getBackgroundColor()
public java.lang.String getBookName()
public java.lang.String getBookPassword()
public java.lang.String getChartName()
public java.lang.String getHost()
public java.lang.String getPassword()
public int getPort()
public java.lang.String getRange()
public java.lang.String getSheetName()
public boolean getSmartFit()
public java.lang.String getTemplateName()
public int getThrottle()
public boolean getThrowExceptions()
public java.lang.String getUser()
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
img
- The image being observed.infoflags
- The bitwise inclusive OR of the following flags: WIDTH, HEIGHT, PROPERTIES, SOMEBITS, FRAMEBITS, ALLBITS, ERROR, ABORTx
- The x coordinate.y
- The y coordinate.width
- The width.height
- The height.
public void init()
public static void main(java.lang.String[] args)
Command Line Argument | Description |
bookname | The workbook filename |
bookpassword | The workbook password |
bookname | The workbook filename |
sheetname | The workbook sheet name |
chartname | The name of the chart on the sheet |
charttemplate | Template filename for creating new chart |
chartrange | The chart range when creating new chart |
smartfit | Best fit algorithm for available space |
stretchfit | Chart stretched to fit application area |
throttle | Number of seconds to throttle updates |
background | Background application color (html ref) |
throwexceptions | Enable throwing exceptions |
args
- Command line arguments.public void paint(java.awt.Graphics g)
g
- The graphics context to use for painting. .public void setBackgroundColor(java.lang.String rgb)
rgb
- Hexidecimal or octal string with defining background rgb.public void setBookName(java.lang.String bookname)
bookname
- The name of the book including the optional path.public void setBookPassword(java.lang.String password)
password
- The book passwordpublic void setChartName(java.lang.String chartname)
chartname
- The name of the chart.public void setHost(java.lang.String host)
host
- The name of the host machine.public void setPassword(java.lang.String password)
password
- The user password.public void setPort(int port)
port
- The port number to connect to on the host machine.public void setRange(java.lang.String range)
range
- The chart rangepublic void setSheetName(java.lang.String sheetname)
sheetname
- The name of the sheet.public void setSmartFit(boolean smartfit)
smartfit
- True if smart fit required, false if not.public void setTemplateName(java.lang.String templatename)
templatename
- The name of the chart template.public void setThrottle(int secs)
secs
- Number of seconds between chart updates.public void setThrowExceptions(boolean throwexceptions)
throwexceptions
- True if chart exceptions should be thrown; false if not.public void setUser(java.lang.String user)
user
- The user name.public void start()
public void stop()
public void update(java.awt.Graphics g)
g
- The specified context to use for updating.public void updateImage()
|
Email JSheet Support | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |