📄 empty.java
字号:
public boolean isFocusable() {
return false;
}
public boolean isObscured() {
return false;
}
public void reshape(int x, int y, int width, int height) {
}
public void setBounds(int x, int y, int width, int height) {
}
public void repaint(long tm, int x, int y, int width, int height) {
}
public void setEnabled(boolean b) {
}
public void setVisible(boolean b) {
}
public void handleEvent(AWTEvent e) {
}
public void createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException {
}
public void flip(BufferCapabilities.FlipContents flipAction) {
}
public void setBackground(Color c) {
}
public void setForeground(Color c) {
}
public boolean requestFocus(Component lightweightChild, boolean temporary, boolean focusedWindowChangeAllowed, long time) {
return false;
}
public Dimension getMinimumSize() {
return NULL_DIMENSION;
}
public Dimension getPreferredSize() {
return NULL_DIMENSION;
}
public Dimension minimumSize() {
return NULL_DIMENSION;
}
public Dimension preferredSize() {
return NULL_DIMENSION;
}
public void setFont(Font f) {
}
public Graphics getGraphics() {
return NULL_GRAPHICS_2D;
}
public void paint(Graphics g) {
}
public void print(Graphics g) {
}
public GraphicsConfiguration getGraphicsConfiguration() {
return NULL_GRAPHICS_CONFIGURATION;
}
public Image getBackBuffer() {
return NULL_IMAGE;
}
public Image createImage(int width, int height) {
return NULL_IMAGE;
}
public Point getLocationOnScreen() {
return NULL_POINT;
}
public Toolkit getToolkit() {
return Toolkit.getDefaultToolkit();
}
public void coalescePaintEvent(PaintEvent e) {
}
public ColorModel getColorModel() {
return NULL_COLOR_MODEL;
}
public VolatileImage createVolatileImage(int width, int height) {
return NULL_VOLATILE_IMAGE;
}
public FontMetrics getFontMetrics(Font font) {
return NULL_FONT_METRICS;
}
public Image createImage(ImageProducer producer) {
return NULL_IMAGE;
}
public int checkImage(Image img, int w, int h, ImageObserver o) {
return 0;
}
public boolean prepareImage(Image img, int w, int h, ImageObserver o) {
return false;
}
}
private static class DummyContainerPeer extends DummyComponentPeer implements ContainerPeer {
public void beginLayout() {
}
public void beginValidate() {
}
public void endLayout() {
}
public void endValidate() {
}
public boolean isPaintPending() {
return false;
}
public void cancelPendingPaint(int x, int y, int w, int h) {
}
public void restack() {
}
public boolean isRestackSupported() {
return false;
}
public Insets getInsets() {
return NULL_INSETS;
}
public Insets insets() {
return NULL_INSETS;
}
public void setBounds(int x, int y, int width, int height, int op) {
}
public void reparent(ContainerPeer newContainer) {
}
public boolean isReparentSupported() {
return false;
}
public void layout() {
}
public Rectangle getBounds() {
return NULL_RECTANGLE;
}
public void show() {
}
}
private static class DummyLightweightPeer extends DummyContainerPeer implements LightweightPeer {
public void show() {
}
}
private static class DummyPanelPeer extends DummyContainerPeer implements PanelPeer {
}
private static class DummyCanvasPeer extends DummyContainerPeer implements CanvasPeer {
}
private static class DummyGraphicsDevice extends GraphicsDevice {
public static final GraphicsConfiguration[] CONFIGURATION = new GraphicsConfiguration[0];
public int getType() {
return 0;
}
public GraphicsConfiguration getDefaultConfiguration() {
return NULL_GRAPHICS_CONFIGURATION;
}
public GraphicsConfiguration[] getConfigurations() {
return CONFIGURATION;
}
public String getIDstring() {
return "id";
}
}
private static class DummyGraphics2D extends Graphics2D {
public void rotate(double theta) {
}
public void scale(double sx, double sy) {
}
public void shear(double shx, double shy) {
}
public void translate(double tx, double ty) {
}
public void rotate(double theta, double x, double y) {
}
public void dispose() {
}
public void setPaintMode() {
}
public void translate(int x, int y) {
}
public void clearRect(int x, int y, int width, int height) {
}
public void clipRect(int x, int y, int width, int height) {
}
public void drawLine(int x1, int y1, int x2, int y2) {
}
public void drawOval(int x, int y, int width, int height) {
}
public void fillOval(int x, int y, int width, int height) {
}
public void fillRect(int x, int y, int width, int height) {
}
public void setClip(int x, int y, int width, int height) {
}
public void copyArea(int x, int y, int width, int height, int dx, int dy) {
}
public void drawArc(int x, int y, int width, int height, int startAngle, int arcAngle) {
}
public void drawRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
}
public void fillArc(int x, int y, int width, int height, int startAngle, int arcAngle) {
}
public void fillRoundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) {
}
public void drawPolygon(int xPoints[], int yPoints[], int nPoints) {
}
public void drawPolyline(int xPoints[], int yPoints[], int nPoints) {
}
public void fillPolygon(int xPoints[], int yPoints[], int nPoints) {
}
public Color getColor() {
return Color.BLACK;
}
public void setColor(Color c) {
}
public void setXORMode(Color c1) {
}
public Font getFont() {
return NULL_FONT;
}
public void setFont(Font font) {
}
public Graphics create() {
return NULL_GRAPHICS_2D;
}
public Rectangle getClipBounds() {
return NULL_RECTANGLE;
}
public Shape getClip() {
return NULL_RECTANGLE;
}
public void setClip(Shape clip) {
}
public Color getBackground() {
return Color.WHITE;
}
public void setBackground(Color color) {
}
public Composite getComposite() {
return NULL_COMPOSITE;
}
public void setComposite(Composite comp) {
}
public GraphicsConfiguration getDeviceConfiguration() {
return NULL_GRAPHICS_CONFIGURATION;
}
public Paint getPaint() {
return NULL_PAINT;
}
public void setPaint(Paint paint) {
}
public RenderingHints getRenderingHints() {
return new RenderingHints(new HashMap());
}
public void clip(Shape s) {
}
public void draw(Shape s) {
}
public void fill(Shape s) {
}
public Stroke getStroke() {
return NULL_STROKE;
}
public void setStroke(Stroke s) {
}
public FontRenderContext getFontRenderContext() {
return new FontRenderContext(NULL_AFFINE_TRANSFORM, false, false);
}
public void drawGlyphVector(GlyphVector g, float x, float y) {
}
public AffineTransform getTransform() {
return NULL_AFFINE_TRANSFORM;
}
public void setTransform(AffineTransform Tx) {
}
public void transform(AffineTransform Tx) {
}
public void drawString(String s, float x, float y) {
}
public void drawString(String str, int x, int y) {
}
public void drawString(AttributedCharacterIterator iterator, float x, float y) {
}
public void drawString(AttributedCharacterIterator iterator, int x, int y) {
}
public FontMetrics getFontMetrics(Font f) {
return NULL_FONT_METRICS;
}
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, ImageObserver observer) {
return false;
}
public boolean drawImage(Image img, int x, int y, int width, int height, ImageObserver observer) {
return false;
}
public boolean drawImage(Image img, int x, int y, ImageObserver observer) {
return false;
}
public boolean drawImage(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor, ImageObserver observer) {
return false;
}
public boolean drawImage(Image img, int x, int y, int width, int height, Color bgcolor, ImageObserver observer) {
return false;
}
public boolean drawImage(Image img, int x, int y, Color bgcolor, ImageObserver observer) {
return false;
}
public void addRenderingHints(Map hints) {
}
public void setRenderingHints(Map hints) {
}
public boolean hit(Rectangle rect, Shape s, boolean onStroke) {
return false;
}
public void drawRenderedImage(RenderedImage img, AffineTransform xform) {
}
public void drawRenderableImage(RenderableImage img, AffineTransform xform) {
}
public void drawImage(BufferedImage img, BufferedImageOp op, int x, int y) {
}
public Object getRenderingHint(RenderingHints.Key hintKey) {
return RenderingHints.KEY_ALPHA_INTERPOLATION;
}
public void setRenderingHint(RenderingHints.Key hintKey, Object hintValue) {
}
public boolean drawImage(Image img, AffineTransform xform, ImageObserver obs) {
return false;
}
}
public static class DummyPaint implements Paint {
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) {
return NULL_PAINT_CONTEXT;
}
public int getTransparency() {
return 0;
}
}
public static class DummyPaintContext implements PaintContext {
public void dispose() {
}
public ColorModel getColorModel() {
return NULL_COLOR_MODEL;
}
public Raster getRaster(int x, int y, int w, int h) {
return Raster.createBandedRaster(0, 0, 0, 0, NULL_POINT);
}
}
public static class DummyImageProducer implements ImageProducer {
public void addConsumer(ImageConsumer ic) {
}
public boolean isConsumer(ImageConsumer ic) {
return false;
}
public void removeConsumer(ImageConsumer ic) {
}
public void requestTopDownLeftRightResend(ImageConsumer ic) {
}
public void startProduction(ImageConsumer ic) {
}
}
public static class DummyComposite implements Composite {
public CompositeContext createContext(ColorModel srcColorModel, ColorModel dstColorModel, RenderingHints hints) {
return NULL_COMPOSITE_CONTEXT;
}
}
public static class DummyCompositeContext implements CompositeContext {
public void dispose() {
}
public void compose(Raster src, Raster dstIn, WritableRaster dstOut) {
}
}
public static class DummyStroke implements Stroke {
public Shape createStrokedShape(Shape p) {
return NULL_RECTANGLE;
}
}
public static class DummyIcon implements Icon {
public void paintIcon(Component c, Graphics g, int x, int y) {
}
public int getIconWidth() {
return 0;
}
public int getIconHeight() {
return 0;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -