| Home >> All >> java >> awt >> [ im Javadoc ] |
| | java.awt.im.spi.* (3) | | java.awt.image.renderable.* (7) |
java.awt.im: Javadoc index of package java.awt.im.
Package Samples:
java.awt.image.renderable: Image consumers, producers and filters.
java.awt.im.spi: Support for text input methods.
Classes:
ColorModel: A color model operates with colors in several formats: normalized: component samples are in range [0.0, 1.0]. color model pixel value: all the color component samples for a sigle pixel packed/encoded in a way natural for the color model. color model pixel int value: only makes sense if the natural encoding of a single pixel can fit in a single int value. array of transferType containing a single pixel: the pixel is encoded in the natural way of the color model, taking up as many array elements as needed. sRGB pixel int value: a pixel in sRGB color space, encoded in default 0xAARRGGBB format, assumed ...
IndexColorModel: Color model similar to pseudo visual in X11. This color model maps linear pixel values to actual RGB and alpha colors. Thus, pixel values are indexes into the color map. Each color component is an 8-bit unsigned value. The IndexColorModel supports a map of valid pixels, allowing the representation of holes in the the color map. The valid map is represented as a java.math.BigInteger where each bit indicates the validity of the map entry with the same index. Colors can have alpha components for transparency support. If alpha component values aren't given, color values are opaque. The model also supports ...
InputContext: Provides a context for controlling input methods and keyboard layouts. This class provides the communication layer between the client component, and the various locale-dependent text entry input methods that can be used for the client. By default, there is one instance per Window, shared among all components, but this limits text entry to one component at a time. Thus, text components can create their own instance to allow text entry in multiple components at a time. By using the interfaces of java.awt.im.spi , you can install extensions which allow additional input methods. Some of these may use ...
BufferStrategy: This class describes a strategy for managing image buffering resources on a Canvas or Window. A given buffer strategy may make use of hardware acceleration or take advantage of features of the native graphics system. Examples of buffering strategies are double or triple buffering using either flipping or blitting. For the details of these algorithms see BufferCapabilities. To use a buffer strategy, you retrieve it from either the current GraphicsConfiguration or from the Component on which you'd like to draw. Then you can query the strategy's capabilities to make sure they're suitable. If the strategy's ...
VolatileImage: VolatileImage represents a hardware-accelerated graphics buffer. The native graphics system may free or damage the resources occupied by a VolatileImage at any time. As such, one must frequently check the "validity" of the image buffer's resources. A volatile image's "validity" depends on multiple factors. Its resources may have become unavailble in which case you must reallocate them. If you move the image from one output device to another, you may need to recreate the image's resources if the new output device's capabilities don't match the old one's. Finally, if the contents of the image's buffer ...
ComponentSampleModel: ComponentSampleModel supports a flexible organization of pixel samples in memory, permitting pixel samples to be interleaved by band, by scanline, and by pixel. A DataBuffer for this sample model has K banks of data. Pixels have N samples, so there are N bands in the DataBuffer. Each band is completely contained in one bank of data, but a bank may contain more than one band. Each pixel sample is stored in a single data element. Within a bank, each band begins at an offset stored in bandOffsets. The banks containing the band is given by bankIndices. Within the bank, there are three dimensions - ...
LookupOp: LookupOp is a filter that converts each pixel using a lookup table. For filtering Rasters, the lookup table must have either one component that is applied to all bands, or one component for every band in the Rasters. For BufferedImages, the lookup table may apply to both color and alpha components. If the lookup table contains one component, or if there are the same number of components as color components in the source, the table applies to all color components. Otherwise the table applies to all components including alpha. Alpha premultiplication is ignored during the lookup filtering. After ...
InputMethodHighlight: This describes the highlight attributes of text composed in an input method. The description includes an abstract level (whether text has been converted yet, and whether it is selected), and a concrete level (which style attributes are used in rendering). If no concrete level is defined, the renderer should use Toolkit.mapInputMethodHighlight(InputMethodHighlight) > Toolkit.mapInputMethodHighlight(InputMethodHighlight) 55 . An example of conversion state is kana -> kanji. Instances of this class are typically used in AttributedCharacterIterators, and may be wrapped in Annotations to separate ...
ConvolveOp: Convolution filter. ConvolveOp convolves the source image with a Kernel to generate a destination image. This involves multiplying each pixel and its neighbors with elements in the kernel to compute a new pixel. Each band in a Raster is convolved and copied to the destination Raster. For BufferedImages, convolution is applied to all components. If the source is not premultiplied, the data will be premultiplied before convolving. Premultiplication will be undone if the destination is not premultiplied. Color conversion will be applied if needed.
InputMethod: This interface supports complex text input, often for situations where the text is more complex than a keyboard will accomodate. For example, this can be used for Chinese, Japanese, and Korean, where multiple keystrokes are necessary to compose text. This could also support things like phonetic English, or reordering Thai. These contexts can be loaded by the input method framework, using InputContext.selectInputMethod(Locale) > InputContext.selectInputMethod(Locale) 55 .
ColorConvertOp: ColorConvertOp is a filter for converting an image from one colorspace to another colorspace. The filter can convert the image through a sequence of colorspaces or just from source to destination. Color conversion is done on the color components without alpha. Thus if a BufferedImage has alpha premultiplied, this is divided out before color conversion, and premultiplication applied if the destination requires it. Color rendering and dithering hints may be applied if specified. This is likely platform-dependent.
BandCombineOp: Filter Raster pixels by applying a matrix. BandCombineOp applies a matrix to each pixel to produce new pixel values. The width of the matrix must be the same or one more than the number of bands in the source Raster. If one more, the pixels in the source are assumed to contain an implicit 1.0 at the end. The rows of the matrix are multiplied by the pixel to produce the values for the destination. Therefore the destination Raster must contain the same number of bands as the number of rows in the filter matrix.
InputMethodRequests: This interface handles requests made by input methods on text editing components. A component must specify a handler for input methods that implements this interface, and which supports one of two user interfaces: on-the-spot : composed text is shown in place below-the-spot : composed text is in a separate window, usually below the main text window, until it is committed into place at the insertion point, overwriting any selected text
AreaAveragingScaleFilter: This filter should produce images which do not have image artifacts like broken lines which were originally unbroken. The cost is of course speed. Using bi-linear interpolation here against 4 pixel points should give the desired results although Sun does not specify what the exact algorithm should be.
InputMethodContext: Provides methods for the communication context between an input method and the client component. This should be passed to InputMethod.setInputMethodContext(InputMethodContext) 55 .
ShortLookupTable: ShortLookupTable represents translation arrays for pixel values. It wraps one or more data arrays for each layer (or component) in an image, such as Alpha, R, G, and B. When doing translation, the offset is subtracted from the pixel values to allow a subset of an array to be used.
ByteLookupTable: ByteLookupTable represents translation arrays for pixel values. It wraps one or more data arrays for each layer (or component) in an image, such as Alpha, R, G, and B. When doing translation, the offset is subtracted from the pixel values to allow a subset of an array to be used.
LookupTable: LookupTable represents translation arrays for pixel values. It wraps one or more data arrays for each layer (or component) in an image, such as Alpha, R, G, and B. When doing translation, the offset is subtracted from the pixel values to allow a subset of an array to be used.
PixelInterleavedSampleModel: A SampleModel that uses exactly one element of the raster’s DataBuffer per pixel, holds all bands in a single bank, and stores band data in pixel-interleaved manner.
BufferedImage: A buffered image always starts at coordinates (0, 0). The buffered image is not subdivided into multiple tiles. Instead, the image consists of one large tile (0,0) with the width and height of the image. This tile is always considered to be checked out.
ReplicateScaleFilter: This filter should be used for fast scaling of images where the result does not need to ensure straight lines are still straight, etc. The exact method is not defined by Sun but some sort of fast Box filter should probably be correct.
BufferedImageFilter: The BufferedImageFilter class wraps BufferedImageOp objects in a Filter. When pixels are pushed through the filter, we create a BufferedImage, apply the BufferedImageOp, and pass the filtered pixels to the base class.
ImageProducer: An object implementing the ImageProducer interface can produce data for images. Each image has a corresponding ImageProducer which is needed for things such as resizing the image.
InputSubset: Defines additional Unicode character blocks for use by input methods. These constants encompass several Unicode blocks, or portions thereof, for simplification over Character.UnicodeBlock .
Kernel: Kernel represents an image processing kernel. It gets used to hold convolution filters among other purposes. It stores an array of float values representing a 2-dimensional array in row-major order.
| Home | Contact Us | Privacy Policy | Terms of Service |