org.extex.interpreter.primitives.register.transform
Class Transform

java.lang.Object
  extended by org.extex.interpreter.primitives.register.transform.Transform
All Implemented Interfaces:
java.io.Serializable

public class Transform
extends java.lang.Object
implements java.io.Serializable

Transform (transformation with six values).

Version:
$Revision: 7274 $
Author:
Michael Niedermair
See Also:
Serialized Form

Constructor Summary
Transform()
          Creates a new object.
Transform(Context context, TokenSource source, Typesetter typesetter)
          Creates a new object.
Transform(double v1, double v2, double v3, double v4, double v5, double v6)
          Creates a new object.
Transform(Real v1, Real v2, Real v3, Real v4, Real v5, Real v6)
          Creates a new object.
Transform(java.lang.String s)
          Creates a new object.
 
Method Summary
 Real get(int idx)
          Return the idx-value for the transfomation
 void set(int idx, Real value)
          Setter for the value with index idx
 void set(Transform value)
          Setter for the value.
 java.lang.String toString()
          Return the value as String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Transform

public Transform()
Creates a new object.


Transform

public Transform(Context context,
                 TokenSource source,
                 Typesetter typesetter)
          throws HelpingException,
                 ConfigurationException,
                 TypesetterException
Creates a new object. Scan the TokenSource for a Transform.

Parameters:
context - the context
source - the token source
typesetter - the typesetter
Throws:
HelpingException - in case of an error
ConfigurationException - in case of an configuration error
TypesetterException - in case of an error in the typsesetter

Transform

public Transform(double v1,
                 double v2,
                 double v3,
                 double v4,
                 double v5,
                 double v6)
Creates a new object.

Parameters:
v1 - the value 1
v2 - the value 2
v3 - the value 3
v4 - the value 4
v5 - the value 5
v6 - the value 6

Transform

public Transform(Real v1,
                 Real v2,
                 Real v3,
                 Real v4,
                 Real v5,
                 Real v6)
Creates a new object.

Parameters:
v1 - the value 1
v2 - the value 2
v3 - the value 3
v4 - the value 4
v5 - the value 5
v6 - the value 6

Transform

public Transform(java.lang.String s)
          throws HelpingException
Creates a new object.

If the string equals null or empty, the value is set to zero

Parameters:
s - the value as String
Throws:
HelpingException - if a NumberFormatException is thrown
Method Detail

get

public Real get(int idx)
Return the idx-value for the transfomation

Parameters:
idx - the number of the value
Returns:
the value on index idx

set

public void set(int idx,
                Real value)
Setter for the value with index idx

Parameters:
idx - the index
value - the value with index

set

public void set(Transform value)
Setter for the value.

Parameters:
value - the new value

toString

public java.lang.String toString()
Return the value as String

Overrides:
toString in class java.lang.Object
Returns:
the value as String