synthpainterimpl.java

来自「Mobile 应用程序使用 Java Micro Edition (Java M」· Java 代码 · 共 1,571 行 · 第 1/5 页

JAVA
1,571
字号
    /**     * Paints the border of a panel.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintPanelBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the background of a password field.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintPasswordFieldBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the border of a password field.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintPasswordFieldBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the background of a popup menu.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintPopupMenuBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the border of a popup menu.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintPopupMenuBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the background of a progress bar.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintProgressBarBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the background of a progress bar. This implementation invokes the     * method of the same name without the orientation.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     * @param orientation one of <code>JProgressBar.HORIZONTAL</code> or     *                    <code>JProgressBar.VERTICAL</code>     * @since 1.6     */    public void paintProgressBarBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h, int orientation) {        paintBackground(context, g, x, y, w, h, orientation);    }    /**     * Paints the border of a progress bar.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintProgressBarBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the border of a progress bar. This implementation invokes the     * method of the same name without the orientation.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     * @param orientation one of <code>JProgressBar.HORIZONTAL</code> or     *                    <code>JProgressBar.VERTICAL</code>     * @since 1.6     */    public void paintProgressBarBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h, int orientation) {        paintBorder(context, g, x, y, w, h, orientation);    }    /**     * Paints the foreground of a progress bar. is responsible for     * providing an indication of the progress of the progress bar.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     * @param orientation one of <code>JProgressBar.HORIZONTAL</code> or     *                    <code>JProgressBar.VERTICAL</code>     */    public void paintProgressBarForeground(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h, int orientation) {        paintForeground(context, g, x, y, w, h, orientation);    }    /**     * Paints the background of a radio button menu item.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintRadioButtonMenuItemBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the border of a radio button menu item.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintRadioButtonMenuItemBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the background of a radio button.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintRadioButtonBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the border of a radio button.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintRadioButtonBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the background of a root pane.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintRootPaneBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the border of a root pane.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintRootPaneBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the background of a scrollbar.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     */    public void paintScrollBarBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the background of a scrollbar. This implementation invokes the     * method of the same name without the orientation.     *     * @param context SynthContext identifying the <code>JComponent</code> and     *        <code>Region</code> to paint to     * @param g <code>Graphics</code> to paint to     * @param x X coordinate of the area to paint to     * @param y Y coordinate of the area to paint to     * @param w Width of the area to paint to     * @param h Height of the area to paint to     * @param orientation Orientation of the JScrollBar, one of     *                    <code>JScrollBar.HORIZONTAL</code> or     *                    <code>JScrollBar.VERTICAL</code>     * @since 1.6

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?