/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * Check if the black and white checkbox is selected. * * @return true if the checkbox is active. */ public boolean getBW() { return bw_CB.isSelected(); }
/** * Check if the page orientation should be landscape * * @return true wether the orientation is landscape. */ public boolean getLandscape() { return landscape_CB.isSelected(); }
/** * 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(); }
/** * Check if the drawing should be mirrored. * * @return true wether the mirroring should be done. */ public boolean getMirror() { return mirror_CB.isSelected(); }