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
|
|
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.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 |
GIF
public static final java.lang.String GIF
JPEG
public static final java.lang.String JPEG
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 serveruser - 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.comiPort - The port number that the server is listening on usually 14444 by defaultsUser - The username for this connection. This is the MapleNet usernamesPassword - The users password for completing the connection
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)