net.sf.latexdraw.parsers.ps
Class PSValue

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

public class PSValue
extends PSArithemticCommand

Defines a postscript value model.

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

Field Summary
protected  double value
          The value.
 
Constructor Summary
PSValue(double v)
          Creates of postscript value.
 
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
 

Field Detail

value

protected double value
The value.

Constructor Detail

PSValue

public PSValue(double v)
Creates of postscript value.

Parameters:
v - The value.
Since:
3.0
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.