net.sf.latexdraw.parsers.ps
Class PSDupCommand

java.lang.Object
  extended by net.sf.latexdraw.parsers.ps.PSArithemticCommand
      extended by net.sf.latexdraw.parsers.ps.PSDupCommand

public class PSDupCommand
extends PSArithemticCommand

Defines the dup command.

This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

03/11/08

Version:
3.0
Author:
Arnaud BLOUIN

Constructor Summary
PSDupCommand()
           
 
Method Summary
 void execute(java.util.Deque<java.lang.String> stack, double x)
          Creates n abstract postscript arithmetical command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSDupCommand

public PSDupCommand()
Method Detail

execute

public void execute(java.util.Deque<java.lang.String> stack,
                    double x)
             throws InvalidFormatPSFunctionException
Description copied from class: PSArithemticCommand
Creates n abstract postscript arithmetical command.

Specified by:
execute in class PSArithemticCommand
Parameters:
stack - The current stack of commands.
x - The x variable of the command.
Throws:
InvalidFormatPSFunctionException - If the command format is not valid.