com.maplesoft.client
Class MapleImage2DPlot

java.lang.Object
  |
  +--com.maplesoft.client.MapleStatement
        |
        +--com.maplesoft.client.MapleImageBase
              |
              +--com.maplesoft.client.MapleImageFunctionPlot
                    |
                    +--com.maplesoft.client.MapleImage2DPlot

public class MapleImage2DPlot
extends MapleImageFunctionPlot

Produces an 2D Plot Image from a specified Maple Function.
See MapleImageFunctionPlot for all the base attributes that can be set.


Field Summary
static java.lang.String GIF
           
static java.lang.String JPEG
           
 
Fields inherited from class com.maplesoft.client.MapleImageFunctionPlot
CURVEMODE_COMPLEX, CURVEMODE_FUNCTION, CURVEMODE_IMPLICIT
 
Fields inherited from class com.maplesoft.client.MapleImageBase
FORMAT_GIF, FORMAT_JPEG
 
Constructor Summary
MapleImage2DPlot()
          Creates a MapleImagePlot with default connection info.
MapleImage2DPlot(HostInfo host, UserInfo user)
          Creates a MapleImagePlot that for the given host and user
MapleImage2DPlot(java.lang.String sHost, int iPort, java.lang.String sUser, java.lang.String sPassword)
          Creates a MapleImagePlot that for the given host and user
 
Method Summary
 java.awt.Image getPlot()
          Creates an Image by sending a plot request to the server using the options specified.
 void setFunction(java.lang.String sFunc)
          Define the function to be plotted.
 
Methods inherited from class com.maplesoft.client.MapleImageFunctionPlot
getCurveMode, getFunction, setCurveMode
 
Methods inherited from class com.maplesoft.client.MapleImageBase
getFormat, getHeight, getNumpoints, getOptions, getOptions, getOptions, getPlotColor, getPlotLegend, getPlotTitle, getWidth, getXAxisLabel, getYAxisLabel, isThreeD, setDimensions, setDomain, setDomain, setDomain, setFormat, setHeight, setNumpoints, setOptions, setOptions, setPlotColor, setPlotLegend, setPlotTitle, setRange, setRange, setRange, setThreeD, setType, setWidth, setXAxisLabel, setYAxisLabel
 
Methods inherited from class com.maplesoft.client.MapleStatement
doMaple, execute, execute, getHost, getLock, getResponse, getResponseArray, getUser, getXMLString, getXMLStringArray, releaseLock, setHost, setHost, setUser, setUser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GIF

public static final java.lang.String GIF

JPEG

public static final java.lang.String JPEG
Constructor Detail

MapleImage2DPlot

public MapleImage2DPlot()
Creates a MapleImagePlot with default connection info.
A Host and User must be specified before a plot can be created.

MapleImage2DPlot

public MapleImage2DPlot(HostInfo host,
                        UserInfo user)
Creates a MapleImagePlot that for the given host and user
Parameters:
host - A HostInfo object containing the name of the server
user - A UserInfo object containing the username/password for the connection

MapleImage2DPlot

public MapleImage2DPlot(java.lang.String sHost,
                        int iPort,
                        java.lang.String sUser,
                        java.lang.String sPassword)
Creates a MapleImagePlot that for the given host and user
Parameters:
sHost - The name of the server such as abc.com
iPort - The port number that the server is listening on usually 14444 by default
sUser - The username for this connection. This is the MapleNet username
sPassword - The users password for completing the connection
Method Detail

setFunction

public void setFunction(java.lang.String sFunc)
Define the function to be plotted. The function should be specified in Maple syntax
Overrides:
setFunction in class MapleImageFunctionPlot
See Also:
MapleImageFunctionPlot.setFunction(String)

getPlot

public java.awt.Image getPlot()
                       throws MapleException,
                              MapleStatementException
Creates an Image by sending a plot request to the server using the options specified.
Overrides:
getPlot in class MapleImageBase
Returns:
java.awt.Image
Throws:
MapleException - if it cannot connect to server, if the user is invalid or if the host is unknown.
MapleStatementException - if it cannot the request cannot be processed by the server (ie Plot options are incorrect)