synthpainter.java

来自「java jdk 1.4的源码」· Java 代码 · 共 35 行

JAVA
35
字号
/* * @(#)SynthPainter.java	1.7 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.java.swing.plaf.gtk;import java.awt.*;import javax.swing.*;/** * A painter that is used to paint various portions of a region. * * @version 1.7, 01/23/03 * @author Scott Violet */abstract class SynthPainter {    /**     * Paints the specified region.     *     * @param context SynthContext indentifying the hosting component     * @param paintKey Identifies the portion of the component being asked     *                 to paint, for example 'border', may be null.     * @param g Graphics object to paint to     * @param x x location to paint to     * @param y y location to paint to     * @param width Width of the region to paint to     * @param height Height of the region to paint to     */    public abstract void paint(SynthContext context, Object paintKey,                               Graphics g, int x, int y,                               int width, int height);}

⌨️ 快捷键说明

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