< prev index next >
src/java.desktop/macosx/classes/sun/lwawt/macosx/CPrinterGraphicsConfig.java
Print this page
@@ -47,46 +47,46 @@
return pf;
}
/**
* Returns the {@link GraphicsDevice} associated with this
- * <code>GraphicsConfiguration</code>.
- * @return a <code>GraphicsDevice</code> object that is
- * associated with this <code>GraphicsConfiguration</code>.
+ * {@code GraphicsConfiguration}.
+ * @return a {@code GraphicsDevice} object that is
+ * associated with this {@code GraphicsConfiguration}.
*/
public GraphicsDevice getDevice() {
return gd;
}
/**
* Returns a {@link BufferedImage} with a data layout and color model
- * compatible with this <code>GraphicsConfiguration</code>. This
+ * compatible with this {@code GraphicsConfiguration}. This
* method has nothing to do with memory-mapping
- * a device. The returned <code>BufferedImage</code> has
+ * a device. The returned {@code BufferedImage} has
* a layout and color model that is closest to this native device
* configuration and can therefore be optimally blitted to this
* device.
- * @param width the width of the returned <code>BufferedImage</code>
- * @param height the height of the returned <code>BufferedImage</code>
- * @return a <code>BufferedImage</code> whose data layout and color
- * model is compatible with this <code>GraphicsConfiguration</code>.
+ * @param width the width of the returned {@code BufferedImage}
+ * @param height the height of the returned {@code BufferedImage}
+ * @return a {@code BufferedImage} whose data layout and color
+ * model is compatible with this {@code GraphicsConfiguration}.
*/
public BufferedImage createCompatibleImage(int width, int height) {
return createCompatibleImage(width, height, Transparency.OPAQUE);
}
/**
* Returns a {@link VolatileImage} with a data layout and color model
- * compatible with this <code>GraphicsConfiguration</code>.
- * The returned <code>VolatileImage</code>
+ * compatible with this {@code GraphicsConfiguration}.
+ * The returned {@code VolatileImage}
* may have data that is stored optimally for the underlying graphics
* device and may therefore benefit from platform-specific rendering
* acceleration.
- * @param width the width of the returned <code>VolatileImage</code>
- * @param height the height of the returned <code>VolatileImage</code>
- * @return a <code>VolatileImage</code> whose data layout and color
- * model is compatible with this <code>GraphicsConfiguration</code>.
+ * @param width the width of the returned {@code VolatileImage}
+ * @param height the height of the returned {@code VolatileImage}
+ * @return a {@code VolatileImage} whose data layout and color
+ * model is compatible with this {@code GraphicsConfiguration}.
* @see Component#createVolatileImage(int, int)
*/
public VolatileImage createCompatibleVolatileImage(int width, int height) {
return createCompatibleVolatileImage(width, height, Transparency.OPAQUE);
}
@@ -95,22 +95,22 @@
public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency) {
return null;
}
/**
- * Returns a <code>BufferedImage</code> that supports the specified
+ * Returns a {@code BufferedImage} that supports the specified
* transparency and has a data layout and color model
- * compatible with this <code>GraphicsConfiguration</code>. This
+ * compatible with this {@code GraphicsConfiguration}. This
* method has nothing to do with memory-mapping
- * a device. The returned <code>BufferedImage</code> has a layout and
+ * a device. The returned {@code BufferedImage} has a layout and
* color model that can be optimally blitted to a device
- * with this <code>GraphicsConfiguration</code>.
- * @param width the width of the returned <code>BufferedImage</code>
- * @param height the height of the returned <code>BufferedImage</code>
+ * with this {@code GraphicsConfiguration}.
+ * @param width the width of the returned {@code BufferedImage}
+ * @param height the height of the returned {@code BufferedImage}
* @param transparency the specified transparency mode
- * @return a <code>BufferedImage</code> whose data layout and color
- * model is compatible with this <code>GraphicsConfiguration</code>
+ * @return a {@code BufferedImage} whose data layout and color
+ * model is compatible with this {@code GraphicsConfiguration}
* and also supports the specified transparency.
* @see Transparency#OPAQUE
* @see Transparency#BITMASK
* @see Transparency#TRANSLUCENT
*/
@@ -119,59 +119,59 @@
return null;
}
/**
* Returns the {@link ColorModel} associated with this
- * <code>GraphicsConfiguration</code>.
- * @return a <code>ColorModel</code> object that is associated with
- * this <code>GraphicsConfiguration</code>.
+ * {@code GraphicsConfiguration}.
+ * @return a {@code ColorModel} object that is associated with
+ * this {@code GraphicsConfiguration}.
*/
public ColorModel getColorModel() {
return getColorModel(Transparency.OPAQUE);
}
/**
- * Returns the <code>ColorModel</code> associated with this
- * <code>GraphicsConfiguration</code> that supports the specified
+ * Returns the {@code ColorModel} associated with this
+ * {@code GraphicsConfiguration} that supports the specified
* transparency.
* @param transparency the specified transparency mode
- * @return a <code>ColorModel</code> object that is associated with
- * this <code>GraphicsConfiguration</code> and supports the
+ * @return a {@code ColorModel} object that is associated with
+ * this {@code GraphicsConfiguration} and supports the
* specified transparency.
*/
public ColorModel getColorModel(int transparency) {
return ColorModel.getRGBdefault();
}
/**
* Returns the default {@link AffineTransform} for this
- * <code>GraphicsConfiguration</code>. This
- * <code>AffineTransform</code> is typically the Identity transform
- * for most normal screens. The default <code>AffineTransform</code>
+ * {@code GraphicsConfiguration}. This
+ * {@code AffineTransform} is typically the Identity transform
+ * for most normal screens. The default {@code AffineTransform}
* maps coordinates onto the device such that 72 user space
* coordinate units measure approximately 1 inch in device
* space. The normalizing transform can be used to make
* this mapping more exact. Coordinates in the coordinate space
- * defined by the default <code>AffineTransform</code> for screen and
+ * defined by the default {@code AffineTransform} for screen and
* printer devices have the origin in the upper left-hand corner of
* the target region of the device, with X coordinates
* increasing to the right and Y coordinates increasing downwards.
* For image buffers not associated with a device, such as those not
- * created by <code>createCompatibleImage</code>,
- * this <code>AffineTransform</code> is the Identity transform.
- * @return the default <code>AffineTransform</code> for this
- * <code>GraphicsConfiguration</code>.
+ * created by {@code createCompatibleImage},
+ * this {@code AffineTransform} is the Identity transform.
+ * @return the default {@code AffineTransform} for this
+ * {@code GraphicsConfiguration}.
*/
public AffineTransform getDefaultTransform() {
return new AffineTransform();
}
/**
*
- * Returns a <code>AffineTransform</code> that can be concatenated
- * with the default <code>AffineTransform</code>
- * of a <code>GraphicsConfiguration</code> so that 72 units in user
+ * Returns a {@code AffineTransform} that can be concatenated
+ * with the default {@code AffineTransform}
+ * of a {@code GraphicsConfiguration} so that 72 units in user
* space equals 1 inch in device space.
* <p>
* For a particular {@link Graphics2D}, g, one
* can reset the transformation to create
* such a mapping by using the following pseudocode:
@@ -179,33 +179,33 @@
* GraphicsConfiguration gc = g.getGraphicsConfiguration();
*
* g.setTransform(gc.getDefaultTransform());
* g.transform(gc.getNormalizingTransform());
* </pre>
- * Note that sometimes this <code>AffineTransform</code> is identity,
+ * Note that sometimes this {@code AffineTransform} is identity,
* such as for printers or metafile output, and that this
- * <code>AffineTransform</code> is only as accurate as the information
+ * {@code AffineTransform} is only as accurate as the information
* supplied by the underlying system. For image buffers not
* associated with a device, such as those not created by
- * <code>createCompatibleImage</code>, this
- * <code>AffineTransform</code> is the Identity transform
+ * {@code createCompatibleImage}, this
+ * {@code AffineTransform} is the Identity transform
* since there is no valid distance measurement.
- * @return an <code>AffineTransform</code> to concatenate to the
- * default <code>AffineTransform</code> so that 72 units in user
+ * @return an {@code AffineTransform} to concatenate to the
+ * default {@code AffineTransform} so that 72 units in user
* space is mapped to 1 inch in device space.
*/
public AffineTransform getNormalizingTransform() {
return new AffineTransform();
}
/**
- * Returns the bounds of the <code>GraphicsConfiguration</code>
+ * Returns the bounds of the {@code GraphicsConfiguration}
* in the device coordinates. In a multi-screen environment
* with a virtual device, the bounds can have negative X
* or Y origins.
* @return the bounds of the area covered by this
- * <code>GraphicsConfiguration</code>.
+ * {@code GraphicsConfiguration}.
* @since 1.3
*/
public Rectangle getBounds() {
return new Rectangle(0, 0, (int)pf.getWidth(), (int)pf.getHeight());
}
< prev index next >