Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt.color.* (7)java.awt.datatransfer.* (12)java.awt.dnd.* (26)
java.awt.event.* (43)java.awt.font.* (17)java.awt.geom.* (17)
java.awt.im.* (7)java.awt.image.* (59)java.awt.peer.* (27)
java.awt.print.* (11)

java.awt: Javadoc index of package java.awt.


Package Samples:

java.awt.dnd.peer: Events and listeners for drag and drop sources and targets.  
java.awt.image.renderable: Image consumers, producers and filters.  
java.awt.color: Abstract Window Toolkit classes.  
java.awt.print: Abstract Window Toolkit classes.  
java.awt.im.spi: Support for text input methods.  
java.awt.datatransfer
java.awt.dnd
java.awt.event
java.awt.font
java.awt.geom
java.awt.im
java.awt.image
java.awt.peer

Classes:

KeyboardFocusManager: The KeyboardFocusManager handles the focusing of windows for receiving keyboard events. The manager handles the dispatch of all FocusEvent s and KeyEvent s, along with WindowEvent s relating to the focused window. Users can use the manager to ascertain the current focus owner and fire events. The focus owner is the Component that receives key events. The focus owner is either the currently focused window or a component within this window. The underlying native windowing system may denote the active window or its children with special decorations (e.g. a highlighted title bar). The active window ...
FlatteningPathIterator: A PathIterator for approximating curved path segments by sequences of straight lines. Instances of this class will only return segments of type PathIterator.SEG_MOVETO 55 , PathIterator.SEG_LINETO 55 , and PathIterator.SEG_CLOSE 55 . The accuracy of the approximation is determined by two parameters: The flatness is a threshold value for deciding when a curved segment is consided flat enough for being approximated by a single straight line. Flatness is defined as the maximal distance of a curve control point to the straight line that connects the curve start and end. A lower flatness threshold means ...
Component: The root of all evil. All graphical representations are subclasses of this giant class, which is designed for screen display and user interaction. This class can be extended directly to build a lightweight component (one not associated with a native window); lightweight components must reside inside a heavyweight window. This class is Serializable, which has some big implications. A user can save the state of all graphical components in one VM, and reload them in another. Note that this class will only save Serializable listeners, and ignore the rest, without causing any serialization exceptions. ...
AWTPermission: This class implements permissions for AWT. This is a named permission. No actions are defined. The following table provides a list of all the possible AWTPermission permission names with a description of what that permission allows. Permission Name Permission Allows Risks accessClipboard posting and reading the AWT clipboard the clipboard may contain sensitive data accessEventQueue access to the AWT event queue malicious code could remove real events and replace them with bogus ones, including simulating the user granting permission listenToAllAWTEvents listen to system-wide AWT events malicious ...
KeyEvent: This event is generated when a key is pressed or released. There are two categories of key events: "Key typed" events are higher-level, and have already compensated for modifiers and keyboard layout to generate a single Unicode character. It may take several key press events to generate one key typed. The getKeyCode method will return VK_UNDEFINED , and getKeyChar will return a valid Unicode character or CHAR_UNDEFINED . "Key pressed" and "key released" events are lower-level, and are platform and keyboard dependent. They correspond to the actaul motion on a keyboard, and return a virtual key code ...
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 ...
AWTEventMulticaster: This class is used to implement a chain of event handlers. Dispatching using this class is thread safe. Here is a quick example of how to add and delete listeners using this class. For this example, we will assume are firing AdjustmentEvent 's. However, this same approach is useful for all events in the java.awt.event package, and more if this class is subclassed. AdjustmentListener al; public void addAdjustmentListener(AdjustmentListener listener) { al = AWTEventMulticaster.add(al, listener); } public void removeAdjustmentListener(AdjustmentListener listener) { al = AWTEventMulticaster.remove(al, ...
ComponentOrientation: This class is used to differentiate different orientations for text layout. It controls whether text flows left-to-right or right-to-left, and whether lines are horizontal or vertical, as in this table: LT RT TL TR A B C C B A A D G G D A D E F F E D B E H H E B G H I I H G C F I I F C LT languages are most common (left-to-right lines, top-to-bottom). This includes Western European languages, and optionally includes Japanese, Chinese, and Korean. RT languages (right-to-left lines, top-to-bottom) are mainly middle eastern, such as Hebrew and Arabic. TR languages flow top-to-bottom in a line, right-to-left, ...
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 ...
GeneralPath: A general geometric path, consisting of any number of subpaths constructed out of straight lines and cubic or quadratic Bezier curves. The inside of the curve is defined for drawing purposes by a winding rule. Either the WIND_EVEN_ODD or WIND_NON_ZERO winding rule can be chosen. The EVEN_ODD winding rule defines a point as inside a path if: A ray from the point towards infinity in an arbitrary direction intersects the path an odd number of times. Points A and C in the image are considered to be outside the path. (both intersect twice) Point B intersects once, and is inside. The NON_ZERO winding ...
ICC_ProfileRGB: ICC_ProfileRGB - a special case of ICC_Profiles. The ICC_Profile.getInstance() method will return an instance of the ICC_ProfileRGB subclass when all the following conditions are met: The device color space of the profile is TYPE_RGB. The profile contains red, green and blue ColorantTags. The profile contains red, green and blue TRCTags. The profile contains a mediaWhitePointTag included. As per the ICC specification, the color space conversion can then be done through the following method: linearR = redTRC[deviceR] linearG = greenTRC[deviceG] linearB = blueTRC[deviceB] TRC curves are either a ...
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 ...
ICC_ColorSpace: ICC_ColorSpace - an implementation of ColorSpace While an ICC_Profile class abstracts the data in an ICC profile file an ICC_ColorSpace performs the color space conversions defined by an ICC_Profile instance. Typically, an ICC_Profile will either be created using getInstance, either from the built-in colorspaces, or from an ICC profile file. Then a ICC_Colorspace will be used to perform transforms from the device colorspace to and from the profile color space. The PCS used by ColorSpace is CIE XYZ relative a D50 white point. (Profiles using a CIE Lab PCS will have their input and output converted ...
ICC_Profile: ICC Profile - represents an ICC Color profile. The ICC profile format is a standard file format which maps the transform from a device color space to a standard Profile Color Space (PCS), which can either be CIE L*a*b or CIE XYZ. (With the exception of device link profiles which map from one device space to another) ICC profiles calibrated to specific input/output devices are used when color fidelity is of importance. An instance of ICC_Profile can be created using the getInstance() methods, either using one of the predefined color spaces enumerated in ColorSpace, or from an ICC profile file, or ...
MouseEvent: This event is generated for a mouse event. There are three main categories of mouse events: Regular events include pressing, releasing, and clicking buttons, as well as moving over the boundary of the unobscured portion of a component. Motion events include movement and dragging. Wheel events are covered separately by the subclass MouseWheelEvent. A mouse event is tied to the unobstructed visible component that the mouse cursor was over at the time of the action. The button that was most recently pressed is the only one that shows up in getModifiers , and is returned by getButton , while all buttons ...
MouseWheelEvent: This event is generated for a mouse wheel rotation. The wheel (the middle mouse button on most modern mice) can be rotated towards or away from the user, and is often used for scrolling. Because of the special use for scrolling components, MouseWheelEvents often affect a different component than the one located at the point of the event. If the component under the mouse cursor does not accept wheel events, the event is passed to the first ancestor container which does. This is often a ScrollPane, which knows how to scroll. If an AWT component is built from a native widget that knows how to use ...
BufferCapabilities: A double-buffering capability descriptor. This class exposes details about the double-buffering algorithms used by image buffers. BufferCapabilities represents algorithms that involve at least two buffers but it can also specify so-called "multi-buffer" schemes involving more than two buffers. This class describes the capabilities of the front and back buffers as well as the results of "flipping" -- that is, what happens when an image is transferred from the back buffer to the front buffer. Flipping may or may not be supported or may be supported only in fullscreen mode. If it is not supported ...
Area: The Area class represents any area for the purpose of Constructive Area Geometry (CAG) manipulations. CAG manipulations work as an area-wise form of boolean logic, where the basic operations are: Add (in boolean algebra: A or B) Subtract (in boolean algebra: A and ( not B) ) Intersect (in boolean algebra: A and B) Exclusive Or Above is an illustration of the CAG operations on two ring shapes. The contains and intersects() methods are also more accurate than the specification of #Shape requires. Please note that constructing an Area can be slow (Self-intersection resolving is proportional to the ...
AffineTransform: This class represents an affine transformation between two coordinate spaces in 2 dimensions. Such a transform preserves the "straightness" and "parallelness" of lines. The transform is built from a sequence of translations, scales, flips, rotations, and shears. The transformation can be represented using matrix math on a 3x3 array. Given (x,y), the transformation (x',y') can be found by: [ x'] [ m00 m01 m02 ] [ x ] [ m00*x + m01*y + m02 ] [ y'] = [ m10 m11 m12 ] [ y ] = [ m10*x + m11*y + m12 ] [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ] The bottom row of the matrix is constant, so a transform can be uniquely ...
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 - ...
ContainerOrderFocusTraversalPolicy: ContainerOrderFocusTraversalPolicy defines a focus traversal order based on the order in which Components were packed in a Container. This policy performs a pre-order traversal of the Component hierarchy starting from a given focus cycle root. Portions of the hierarchy that are not visible and displayable are skipped. By default, this policy transfers focus down-cycle implicitly. That is, if a forward traversal is requested on a focus cycle root and the focus cycle root has focusable children, the focus will automatically be transfered down to the lower focus cycle. The default implementation of ...
Rectangle: This class represents a rectangle and all the interesting things you might want to do with it. Note that the coordinate system uses the origin (0,0) as the top left of the screen, with the x and y values increasing as they move to the right and down respectively. It is valid for a rectangle to have negative width or height; but it is considered to have no area or internal points. Therefore, the behavior in methods like contains or intersects is undefined unless the rectangle has positive width and height. There are some public fields; if you mess with them in an inconsistent manner, it is your ...
MediaTracker: This class is used for keeping track of the status of various media objects. Media objects are tracked by assigning them an ID. It is possible to assign the same ID to mutliple objects, effectivly grouping them together. In this case the status flags ( statusID(int, boolean) 55 ) and error flag (@link #isErrorID} and getErrorsID(int) 55 ) are ORed together. This means that you cannot say exactly which media object has which status, at most you can say that there are certain media objects with some certain status. At the moment only images are supported by this class.

Home | Contact Us | Privacy Policy | Terms of Service