net.sourceforge.lentikit
Class LenticularProject

java.lang.Object
  extended bynet.sourceforge.lentikit.LenticularProject

public class LenticularProject
extends java.lang.Object

Contains the data relating to a lenticular project


Method Summary
 void addChangeListener(javax.swing.event.ChangeListener cl)
           
protected  void fireChangeEvent()
           
 java.lang.String getAddDirectory()
           
 java.awt.Insets getAlignmentBorders()
           
 double getDotsPerMeter()
          converts from dpi to dots per meter
 float getDpi()
           
 java.util.List getFiles()
           
 int getFrames()
           
 int getHeight()
           
 InterleaveConfiguration getInterleaveConfiguration()
          Produce an Inteleave configuration suitable for the Interleaver
 java.lang.String getLengthUnits()
           
 double getLensesPerMeter()
          converts from lpi to l per meter
 float getLpi()
           
 double getOutputHeightMeters()
           
 double getOutputWidthMeters()
           
 java.lang.String getSaveDirectory()
           
 java.lang.String getSelectedSize()
           
 int getWidth()
           
 boolean isFrameMode()
           
 boolean isKeepAspectRatio()
           
 boolean isScaleImages()
           
 boolean load(java.io.File from)
          loads the project from the specified file.
 boolean save(java.io.File to)
          saves the project to the specified file.
 void setAddDirectory(java.lang.String addDirectory)
           
 void setAlignmentBorders(java.awt.Insets alignmentBorders)
           
 void setDpi(float dpi)
           
 void setFiles(java.util.List filenames)
           
 void setFrameMode(boolean frameMode)
           
 void setFrames(int frames)
           
 void setHeight(int heightPixels)
           
 void setKeepAspectRatio(boolean keepAspectRatio)
           
 void setLengthUnits(java.lang.String lengthUnits)
           
 void setLpi(float lpi)
           
 void setSaveDirectory(java.lang.String saveDirectory)
           
 void setScaleImages(boolean scaleImages)
           
 void setSelectedSize(java.lang.String selectedSize)
           
 void setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setAlignmentBorders

public void setAlignmentBorders(java.awt.Insets alignmentBorders)
Parameters:
alignmentBorders - The alignmentBorders to set.

getAlignmentBorders

public java.awt.Insets getAlignmentBorders()
Returns:
Returns the a clone of alignmentBorders.

setDpi

public void setDpi(float dpi)
Parameters:
dpi - The dpi to set.

getDpi

public float getDpi()
Returns:
Returns the dpi.

setFiles

public void setFiles(java.util.List filenames)

getFiles

public java.util.List getFiles()
Returns:
Returns the files.

setFrameMode

public void setFrameMode(boolean frameMode)
Parameters:
frameMode - The frameMode to set.

isFrameMode

public boolean isFrameMode()
Returns:
Returns the frameMode.

setFrames

public void setFrames(int frames)
Parameters:
frames - The frames to set.

getFrames

public int getFrames()
Returns:
Returns the frames.

setHeight

public void setHeight(int heightPixels)

getHeight

public int getHeight()
Returns:
Returns the height.

getInterleaveConfiguration

public InterleaveConfiguration getInterleaveConfiguration()
Produce an Inteleave configuration suitable for the Interleaver


setKeepAspectRatio

public void setKeepAspectRatio(boolean keepAspectRatio)
Parameters:
keepAspectRatio - The keepAspectRatio to set.

isKeepAspectRatio

public boolean isKeepAspectRatio()
Returns:
Returns the keepAspectRatio.

setLpi

public void setLpi(float lpi)
Parameters:
lpi - The lpi to set.

getLpi

public float getLpi()
Returns:
Returns the lpi.

setScaleImages

public void setScaleImages(boolean scaleImages)
Parameters:
scaleImages - The scaleImages to set.

isScaleImages

public boolean isScaleImages()
Returns:
Returns the scaleImages.

setWidth

public void setWidth(int width)
Parameters:
width - The width to set.

getWidth

public int getWidth()
Returns:
Returns the width.

getOutputWidthMeters

public double getOutputWidthMeters()

getOutputHeightMeters

public double getOutputHeightMeters()

getDotsPerMeter

public double getDotsPerMeter()
converts from dpi to dots per meter


getLensesPerMeter

public double getLensesPerMeter()
converts from lpi to l per meter


load

public boolean load(java.io.File from)
loads the project from the specified file.

Returns:
boolean whether the load was successful.

save

public boolean save(java.io.File to)
saves the project to the specified file.

Returns:
boolean whether the save was successful.

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener cl)

fireChangeEvent

protected void fireChangeEvent()

getLengthUnits

public java.lang.String getLengthUnits()
Returns:
Returns the lengthUnits.

setLengthUnits

public void setLengthUnits(java.lang.String lengthUnits)
Parameters:
lengthUnits - The lengthUnits to set.

getSelectedSize

public java.lang.String getSelectedSize()
Returns:
Returns the selectedSize.

setSelectedSize

public void setSelectedSize(java.lang.String selectedSize)
Parameters:
selectedSize - The selectedSize to set.

getAddDirectory

public java.lang.String getAddDirectory()
Returns:
Returns the addDirectory.

setAddDirectory

public void setAddDirectory(java.lang.String addDirectory)
Parameters:
addDirectory - The addDirectory to set.

getSaveDirectory

public java.lang.String getSaveDirectory()
Returns:
Returns the saveDirectory.

setSaveDirectory

public void setSaveDirectory(java.lang.String saveDirectory)
Parameters:
saveDirectory - The saveDirectory to set.


Copyright © 2004 Sourceforge. All Rights Reserved.