Examples of PrintSettings


Examples of com.lightcrafts.model.PrintSettings

     * If this synthetic PrintSettings is passed to an Engine for printing,
     * and if the Engine simply stretches its image to fit the imageable
     * area, then the printed image will match the dialog's preview.
     */
    public PrintSettings getPrintSettings() {
        PrintSettings settings = new PrintSettings();
        settings.setRenderingIntent(intent);
        settings.setColorProfile(
            (profile != null) ? profile.getICCProfile() : null
        );
        settings.setPrintBounds(imageRect);
        settings.setPixelsPerInch(pixelsPerInch);
        return settings;
    }
View Full Code Here

Examples of com.lightcrafts.model.PrintSettings

        // The layout info:
        PrintLayoutModel layout = doc.getPrintLayout();

        // The Engine's layout sub-info:
        final PrintSettings settings = layout.getPrintSettings();

        PrinterLayer printer = Platform.getPlatform().getPrinterLayer();

        // The PageFormat:
        printer.setPageFormat(layout.getPageFormat());
View Full Code Here

Examples of com.lightcrafts.model.PrintSettings

    ProofSelectableControl(Engine engine) {
        this.engine = engine;

        setTitle(LOCALE.get("ProofControlTitle"));

        settings = new PrintSettings();

        initPrinterProfile();
        initRenderingIntent();

        initContent();
View Full Code Here

Examples of com.projity.print.PrintSettings

  protected SpreadSheetRenderer spreadSheetRenderer;
  protected FooterRenderer footerRenderer;
  protected Project project;
  public void init(Project project, ReferenceNodeModelCache refCache) {
    SpreadSheetFieldArray fieldArray=null;
    PrintSettings printSettings=project.getPrintSettings(SavableToWorkspace.PERSIST);
    if (printSettings!=null) fieldArray=printSettings.getFieldArray();
    init(project,NodeModelCacheFactory.getInstance().createFilteredCache((ReferenceNodeModelCache)refCache,"OfflineGantt",null),fieldArray,null,-1,true);
  }
View Full Code Here

Examples of org.mockito.internal.reporting.PrintSettings

    public List<Matcher> getMatchers() {
        return this.matchers;
    }
   
    public String toString() {
        return invocation.toString(matchers, new PrintSettings());
    }
View Full Code Here

Examples of org.mockito.internal.reporting.PrintSettings

    public int hashCode() {
        throw new RuntimeException("hashCode() is not implemented");
    }

    public String toString() {
        return toString(argumentsToMatchers(), new PrintSettings());
    }
View Full Code Here

Examples of org.mockito.internal.reporting.PrintSettings

    public int hashCode() {
        return 1;
    }

    public String toString() {
        return toString(argumentsToMatchers(), new PrintSettings());
    }
View Full Code Here

Examples of org.mockito.internal.reporting.PrintSettings

    public List<Matcher> getMatchers() {
        return this.matchers;
    }
   
    public String toString() {
        return new PrintSettings().print(matchers, invocation);
    }
View Full Code Here

Examples of org.mockito.internal.reporting.PrintSettings

    public int hashCode() {
        return 1;
    }

    public String toString() {
        return new PrintSettings().print(ArgumentsProcessor.argumentsToMatchers(getArguments()), this);
    }
View Full Code Here

Examples of org.mockito.internal.reporting.PrintSettings

    MatchersPrinter printer = new MatchersPrinter();

    @Test
    public void shouldGetArgumentsLine() {
        String line = printer.getArgumentsLine((List) Arrays.asList(new Equals(1), new Equals(2)), new PrintSettings());
        assertEquals("(1, 2);", line);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.