Java Code Examples for java.awt.Component#size()

The following examples show how to use java.awt.Component#size() . 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 File: PSPrinterJob.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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 File: PSPrinterJob.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
/**
 * 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);
}