Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| fop 1.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.fop.afp
Class AFPUnitConverter

    java.lang.Object
      org.apache.fop.afp.AFPUnitConverter

public class AFPUnitConverter
extends java.lang.Object

AFP Unit converter

Constructor Summary
`AFPUnitConverter(AFPPaintingState paintingState)` Unit converter

Method Summary
`float` | `mpt2units(float mpt)` Converts millipoint to unit
`int[]` | `mpts2units(float[] srcPts)` Converts millipoints to units
`int[]` | `mpts2units(float[] srcPts, float[] dstPts)` Converts millipoints to units
`float` | `pt2units(float pt)` Converts point to unit
`int[]` | `pts2units(float[] srcPts)` Converts points to units
`int[]` | `pts2units(float[] srcPts, float[] dstPts)` Converts points to units

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AFPUnitConverter

    public AFPUnitConverter(AFPPaintingState paintingState)

  Unit converter

Parameters:
  `paintingState` - the AFP painting state

Method Detail

### mpts2units

    public int[] mpts2units(float[] srcPts,
                            float[] dstPts)

  Converts millipoints to units

  Parameters:
    `srcPts` - source points
    `dstPts` - destination points
  Returns:
    transformed points

### pts2units

    public int[] pts2units(float[] srcPts,
                           float[] dstPts)

  Converts points to units

  Parameters:
    `srcPts` - source points
    `dstPts` - destination points
  Returns:
    transformed points

### mpts2units

    public int[] mpts2units(float[] srcPts)

  Converts millipoints to units

  Parameters:
    `srcPts` - source points
  Returns:
    transformed points

### pts2units

    public int[] pts2units(float[] srcPts)

  Converts points to units

  Parameters:
    `srcPts` - source points
  Returns:
    transformed points

### pt2units

    public float pt2units(float pt)

  Converts point to unit

  Parameters:
    `pt` - point
  Returns:
    transformed point

### mpt2units

    public float mpt2units(float mpt)

  Converts millipoint to unit

  Parameters:
    `mpt` - millipoint
  Returns:
    transformed point

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| fop 1.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.