synthpainterimpl.java

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

JAVA
1,571
字号
     */    public void paintScrollBarBackground(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 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 paintScrollBarBorder(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 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     */    public void paintScrollBarBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h, int orientation) {        paintBorder(context, g, x, y, w, h, orientation);    }    /**     * Paints the background of the thumb of a scrollbar. The thumb provides     * a graphical indication as to how much of the Component is visible in a     * <code>JScrollPane</code>.     *     * @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>     */    public void paintScrollBarThumbBackground(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 the thumb of a scrollbar. The thumb provides     * a graphical indication as to how much of the Component is visible in a     * <code>JScrollPane</code>.     *     * @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>     */    public void paintScrollBarThumbBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h, int orientation) {        paintBorder(context, g, x, y, w, h, orientation);    }    /**     * Paints the background of the track of a scrollbar. The track contains     * the thumb.     *     * @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 paintScrollBarTrackBackground(SynthContext context,                                     Graphics g, int x, int y,                                     int w, int h) {        paintBackground(context, g, x, y, w, h, null);    }    /**     * Paints the background of the track of a scrollbar. The track contains     * the thumb. 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     */    public void paintScrollBarTrackBackground(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 the track of a scrollbar. The track contains     * the thumb.     *     * @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 paintScrollBarTrackBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h) {        paintBorder(context, g, x, y, w, h, null);    }    /**     * Paints the border of the track of a scrollbar. The track contains     * the thumb. 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     */    public void paintScrollBarTrackBorder(SynthContext context,                                 Graphics g, int x, int y,                                 int w, int h, int orientation) {        paintBorder(context, g, x, y, w, h, orientation);    }    /**     * Paints the background of a scroll 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 paintScrollPaneBackground(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 scroll 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 paintScrollPaneBorder(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 separator.     *     * @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 paintSeparatorBackground(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 separator. 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>JSeparator.HORIZONTAL</code> or     *                           <code>JSeparator.VERTICAL</code>     * @since 1.6     */    public void paintSeparatorBackground(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 separator.     *     * @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 paintSeparatorBorder(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 separator. 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>JSeparator.HORIZONTAL</code> or     *                           <code>JSeparator.VERTICAL</code>     * @since 1.6     */    public void paintSeparatorBorder(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 separator.     *     * @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>JSeparator.HORIZONTAL</code> or     *                           <code>JSeparator.VERTICAL</code>     */    public void paintSeparatorForeground(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 slider.     *     * @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     * @p

⌨️ 快捷键说明

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