📄 zlabel.java
字号:
package jmathlib.toolbox.jmathlib.graphics;
import jmathlib.core.tokens.*;
import jmathlib.core.functions.ExternalFunction;
/**Add text to the z-axis of the current axes*/
public class zlabel extends ExternalFunction
{
public OperandToken evaluate(Token[] operands)
{
//ErrorLogger.debugLine("zlabel evaluate");
if (getNArgIn(operands) != 1)
throwMathLibException("zlabel: number of arguments != 1");
if (!(operands[0] instanceof CharToken))
throwMathLibException("zlabel: argument must be a string");
String zLabel = ((CharToken)operands[0]).toString();
getGraphicsManager().getCurrentFigure().getCurrentAxes().setZLabel(zLabel);
getGraphicsManager().getCurrentFigure().repaint();
return null;
}
}
/*
@GROUP
graphics
@SYNTAX
zlabel(label)
@DOC
Sets the label on the z axis of a graph
@EXAMPLES
<programlisting>
zlabel("z axis")
</programlisting>
@NOTES
@SEE
xlabel, ylabel, title
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -