etomica.units
Class Pixel

java.lang.Object
  extended by etomica.units.SimpleUnit
      extended by etomica.units.Pixel
All Implemented Interfaces:
Unit, Serializable

public class Pixel
extends SimpleUnit

Unit converting between simulation unit of length and pixels rendered in an image. Conversion factor is set at construction.

See Also:
Serialized Form

Constructor Summary
Pixel()
          Constructs with default of 10 pixels per Angstrom.
Pixel(double toPixels)
          Constructor for Pixel.
 
Method Summary
 double toPixels()
           
 
Methods inherited from class etomica.units.SimpleUnit
dimension, fromSim, prefixAllowed, symbol, toSim, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pixel

public Pixel()
Constructs with default of 10 pixels per Angstrom.


Pixel

public Pixel(double toPixels)
Constructor for Pixel. Argument is factor to convert from simulation units to pixels. Default is 10.

Method Detail

toPixels

public double toPixels()