Example #1
0
 /**
  * Print in black and white
  *
  * @param l if true, print in black and white, if false respect the colors associated to the
  *     layers.
  */
 public void setBW(boolean l) {
   bw_CB.setSelected(l);
 }
Example #2
0
 /**
  * Set the resize to fit option
  *
  * @param f true if the drawing should be stretched in order to fit the page.
  */
 public void setFit(boolean f) {
   fit_CB.setSelected(f);
 }
Example #3
0
 /**
  * Set the landscape mode
  *
  * @param l true if the output should be in landscape mode. It will be in portrait orientation
  *     otherwise.
  */
 public void setLandscape(boolean l) {
   landscape_CB.setSelected(l);
 }
Example #4
0
 /**
  * Set the mirror attribute
  *
  * @param m true if the printout should be done in mirroring mode.
  */
 public void setMirror(boolean m) {
   mirror_CB.setSelected(m);
 }
Example #5
0
 /**
  * Check if the black and white checkbox is selected.
  *
  * @return true if the checkbox is active.
  */
 public boolean getBW() {
   return bw_CB.isSelected();
 }
Example #6
0
 /**
  * Check if the page orientation should be landscape
  *
  * @return true wether the orientation is landscape.
  */
 public boolean getLandscape() {
   return landscape_CB.isSelected();
 }
Example #7
0
 /**
  * Check if the drawing should be fit to the page
  *
  * @return true wether the fitting should be done.
  */
 public boolean getFit() {
   return fit_CB.isSelected();
 }
Example #8
0
 /**
  * Check if the drawing should be mirrored.
  *
  * @return true wether the mirroring should be done.
  */
 public boolean getMirror() {
   return mirror_CB.isSelected();
 }