home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Extras / ODesign / SetupPSE.exe / data.z / ImageSettings.java < prev    next >
Encoding:
Java Source  |  1997-01-24  |  1.3 KB  |  76 lines

  1. package COM.odi.demo.OSDraw;
  2.  
  3. /**
  4.  *      <H3>Copyright (C) Object Design Inc. 1996, 1997</H3>
  5.  */
  6.  
  7. import java.awt.*;
  8.  
  9. /* 
  10.  * Class ImageSettings records the settings of the current image.
  11.  * Settings are: if X and Y are enlarged or reduced
  12.  * The factors by which X and Y are scaled
  13.  */
  14.  
  15. public class ImageSettings {
  16.   private String imageName;
  17.  
  18.   private boolean enlargeX;
  19.   private boolean enlargeY;
  20.  
  21.   private int factorX;
  22.   private int factorY;
  23.  
  24.   public ImageSettings() {
  25.     imageName = null;
  26.  
  27.     enlargeX = false;
  28.     enlargeY = false;
  29.  
  30.     factorX = 1;
  31.     factorY = 1;
  32.   }
  33.  
  34.   // Methods to access private data
  35.  
  36.   public String getName() {
  37.     return imageName;
  38.   }
  39.  
  40.   public void setName(String imageName) {
  41.     this.imageName = imageName;
  42.   }
  43.  
  44.   public boolean getEnlargeX() {
  45.     return enlargeX;
  46.   }
  47.  
  48.   public void setEnlargeX(boolean enlargeX) {
  49.     this.enlargeX = enlargeX;
  50.   }
  51.  
  52.   public boolean getEnlargeY() {
  53.     return enlargeY;
  54.   }
  55.  
  56.   public void setEnlargeY(boolean enlargeY) {
  57.     this.enlargeY = enlargeY;
  58.   }
  59.  
  60.   public int getFactorX() {
  61.     return factorX;
  62.   }
  63.  
  64.   public void setFactorX(int factorX) {
  65.     this.factorX = factorX;
  66.   }
  67.  
  68.   public int getFactorY() {
  69.     return factorY;
  70.   }
  71.  
  72.   public void setFactorY(int factorY) {
  73.     this.factorY = factorY;
  74.   }
  75. }
  76.