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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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
/**
 * 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);
}