public class Rchart.PlotOption
extends java.lang.Object
| Constructor and Description |
|---|
PlotOption()
constructor
|
PlotOption(boolean isGGPLOT2COMMAND)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAllArguments(java.lang.String[] args)
add arguments to the command/plot function
|
void |
addArgument(java.lang.String argument)
add argument to the command/plot function
|
Rchart.PlotOption |
aes(java.lang.String addarg)
add argument to ggplot2 aesthetics mapping
|
int |
argumentsCount()
get the number of arguments
|
void |
clearArgumentList()
clear argument list
|
java.lang.String |
getArgument(int i)
get argument at index i
|
java.lang.String |
getCommand()
get the string representation of the command
|
void |
removeArgument(java.lang.String arg)
remove argument
|
void |
setArgument(int i,
java.lang.String value)
set argument at index i
|
void |
setCommand(Rchart.GGPLOT2COMMAND command)
set the command
|
void |
setCommand(java.lang.String command)
set the command
|
Rchart.PlotOption |
setLineColor(java.awt.Color col)
set line color
|
Rchart.PlotOption |
setLineColor(int r,
int g,
int b)
set line color
|
Rchart.PlotOption |
setLineType(Rchart.LineType lt)
set line type
|
Rchart.PlotOption |
setLineWidth(double width)
set line width
|
Rchart.PlotOption |
setPointShape(Rchart.PointShape ps)
set point shape
|
java.lang.String |
toString()
get the string representation of the plot option
|
public PlotOption()
public PlotOption(boolean isGGPLOT2COMMAND)
isGGPLOT2COMMAND - true if command is from ggplot2public void setCommand(Rchart.GGPLOT2COMMAND command)
command - public void setCommand(java.lang.String command)
command - public void addArgument(java.lang.String argument)
argument - public void addAllArguments(java.lang.String[] args)
args - argument arraypublic java.lang.String getCommand()
public int argumentsCount()
public java.lang.String getArgument(int i)
i - indexpublic void setArgument(int i,
java.lang.String value)
i - indexvalue - argumentpublic void removeArgument(java.lang.String arg)
arg - argumentpublic void clearArgumentList()
public Rchart.PlotOption setLineColor(int r, int g, int b)
r - red valueg - green valueb - blue valuepublic Rchart.PlotOption setLineColor(java.awt.Color col)
col - colorpublic Rchart.PlotOption setLineWidth(double width)
width - line widthpublic Rchart.PlotOption setPointShape(Rchart.PointShape ps)
ps - point shapepublic Rchart.PlotOption setLineType(Rchart.LineType lt)
lt - line typepublic Rchart.PlotOption aes(java.lang.String addarg)
addarg - argument to addpublic java.lang.String toString()
toString in class java.lang.Object