46 super(State.IMMUTABLE, SurfaceType.Any, ColorModel.getRGBdefault());
47 }
48
49 /**
50 * Sets this SurfaceData object to the invalid state. All Graphics
51 * objects must get a new SurfaceData object via the refresh method
52 * and revalidate their pipelines before continuing.
53 */
54 public void invalidate() {
55 }
56
57 /**
58 * Return a new SurfaceData object that represents the current state
59 * of the destination that this SurfaceData object describes.
60 * This method is typically called when the SurfaceData is invalidated.
61 */
62 public SurfaceData getReplacement() {
63 return this;
64 }
65
66 private final static NullPipe nullpipe = new NullPipe();
67
68 public void validatePipe(SunGraphics2D sg2d) {
69 sg2d.drawpipe = nullpipe;
70 sg2d.fillpipe = nullpipe;
71 sg2d.shapepipe = nullpipe;
72 sg2d.textpipe = nullpipe;
73 sg2d.imagepipe = nullpipe;
74 }
75
76 public GraphicsConfiguration getDeviceConfiguration() {
77 return null;
78 }
79
80 /**
81 * Return a readable Raster which contains the pixels for the
82 * specified rectangular region of the destination surface.
83 * The coordinate origin of the returned Raster is the same as
84 * the device space origin of the destination surface.
85 * In some cases the returned Raster might also be writeable.
86 * In most cases, the returned Raster might contain more pixels
|
46 super(State.IMMUTABLE, SurfaceType.Any, ColorModel.getRGBdefault());
47 }
48
49 /**
50 * Sets this SurfaceData object to the invalid state. All Graphics
51 * objects must get a new SurfaceData object via the refresh method
52 * and revalidate their pipelines before continuing.
53 */
54 public void invalidate() {
55 }
56
57 /**
58 * Return a new SurfaceData object that represents the current state
59 * of the destination that this SurfaceData object describes.
60 * This method is typically called when the SurfaceData is invalidated.
61 */
62 public SurfaceData getReplacement() {
63 return this;
64 }
65
66 private static final NullPipe nullpipe = new NullPipe();
67
68 public void validatePipe(SunGraphics2D sg2d) {
69 sg2d.drawpipe = nullpipe;
70 sg2d.fillpipe = nullpipe;
71 sg2d.shapepipe = nullpipe;
72 sg2d.textpipe = nullpipe;
73 sg2d.imagepipe = nullpipe;
74 }
75
76 public GraphicsConfiguration getDeviceConfiguration() {
77 return null;
78 }
79
80 /**
81 * Return a readable Raster which contains the pixels for the
82 * specified rectangular region of the destination surface.
83 * The coordinate origin of the returned Raster is the same as
84 * the device space origin of the destination surface.
85 * In some cases the returned Raster might also be writeable.
86 * In most cases, the returned Raster might contain more pixels
|