net.sf.drawj2d.cmd
Class RodCmd
- java.lang.Object
-
- net.sf.drawj2d.cmd.RodCmd
-
- All Implemented Interfaces:
- Command
public class RodCmd extends java.lang.Object implements Command
RodCmdimplements the "rod" command, which draws a rectangle defined by its axis (starting point and orientation), length and width. Sets the cursor to the end point on the axis, L from the starting point.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ThingcmdCode(Interp interp, Thing[] argv)ThecmdCodemethod takes an interpreter and an array of Things, performs some calculations, and returns aThingrepresenting the computed value, ornull.
-
-
-
Constructor Detail
-
RodCmd
public RodCmd(API api)
-
-
Method Detail
-
cmdCode
public Thing cmdCode(Interp interp, Thing[] argv) throws HeclException
Description copied from interface:CommandThecmdCodemethod takes an interpreter and an array of Things, performs some calculations, and returns aThingrepresenting the computed value, ornull.- Specified by:
cmdCodein interfaceCommand- Parameters:
interp- anInterpvalueargv- aThing[]value- Returns:
- A
Thingrepresenting the computed value, ornull. - Throws:
HeclException- if an error occurs
-
-
DataMelt 3.0 © DataMelt by jWork.ORG