equal
deleted
inserted
replaced
23 * have any questions. |
23 * have any questions. |
24 */ |
24 */ |
25 package java.awt.peer; |
25 package java.awt.peer; |
26 |
26 |
27 import java.awt.Canvas; |
27 import java.awt.Canvas; |
|
28 import java.awt.GraphicsConfiguration; |
28 |
29 |
29 /** |
30 /** |
30 * The peer interface for {@link Canvas}. |
31 * The peer interface for {@link Canvas}. |
31 * |
32 * |
32 * The peer interfaces are intended only for use in porting |
33 * The peer interfaces are intended only for use in porting |
34 * developers, and developers should not implement peers |
35 * developers, and developers should not implement peers |
35 * nor invoke any of the peer methods directly on the peer |
36 * nor invoke any of the peer methods directly on the peer |
36 * instances. |
37 * instances. |
37 */ |
38 */ |
38 public interface CanvasPeer extends ComponentPeer { |
39 public interface CanvasPeer extends ComponentPeer { |
|
40 /** |
|
41 * Requests a GC that best suits this Canvas. The returned GC may differ |
|
42 * from the requested GC passed as the argument to this method. This method |
|
43 * must return a non-null value (given the argument is non-null as well). |
|
44 * |
|
45 * @since 1.7 |
|
46 */ |
|
47 GraphicsConfiguration getAppropriateGraphicsConfiguration( |
|
48 GraphicsConfiguration gc); |
39 } |
49 } |