Java Code Examples for java.awt.Component#size()
The following examples show how to use
java.awt.Component#size() .
These examples are extracted from open source projects.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: dragonwell8_jdk File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 2
Source Project: TencentKona-8 File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 3
Source Project: jdk8u60 File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 4
Source Project: openjdk-jdk8u File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 5
Source Project: openjdk-jdk8u-backup File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 6
Source Project: Bytecoder File: PSPrinterJob.java License: Apache License 2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ @SuppressWarnings("deprecation") public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 7
Source Project: openjdk-jdk9 File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ @SuppressWarnings("deprecation") public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 8
Source Project: jdk8u-jdk File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 9
Source Project: hottub File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 10
Source Project: openjdk-8-source File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 11
Source Project: openjdk-8 File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 12
Source Project: jdk8u_jdk File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 13
Source Project: jdk8u-jdk File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }
Example 14
Source Project: jdk8u-dev-jdk File: PSPrinterJob.java License: GNU General Public License v2.0 | 6 votes |
/** * This is called from the Java Plug-in to print an Applet's * contents as EPS to a postscript stream provided by the browser. * @param applet the applet component to print. * @param stream the print stream provided by the plug-in * @param x the x location of the applet panel in the browser window * @param y the y location of the applet panel in the browser window * @param w the width of the applet panel in the browser window * @param h the width of the applet panel in the browser window */ public PluginPrinter(Component applet, PrintStream stream, int x, int y, int w, int h) { this.applet = applet; this.epsTitle = "Java Plugin Applet"; this.stream = stream; bx = x; by = y; bw = w; bh = h; width = applet.size().width; height = applet.size().height; epsPrinter = new EPSPrinter(this, epsTitle, stream, 0, 0, width, height); }