# Uses of Annotation Interface
java.lang.annotation.Native

Packages that use Native
Package
Description
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.color
Provides classes for color spaces.
java.awt.dnd
Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.
java.awt.event
Provides interfaces and classes for dealing with different types of events fired by AWT components.
java.awt.geom
Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.
java.awt.image
Provides classes for creating and modifying images.
java.awt.print
Provides classes and interfaces for a general printing API.
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.net
Provides the classes for implementing networking applications.
java.net.spi
Service-provider classes for the `java.net` package.

## Uses of Native in java.awt

Fields in java.awt with annotations of type Native
Modifier and Type
Field
Description
`static final int`
SystemColor.`ACTIVE_CAPTION`
The array index for the `SystemColor.activeCaption` system color.
`static final int`
SystemColor.`ACTIVE_CAPTION_BORDER`
The array index for the `SystemColor.activeCaptionBorder` system color.
`static final int`
SystemColor.`ACTIVE_CAPTION_TEXT`
The array index for the `SystemColor.activeCaptionText` system color.
`static final int`
DisplayMode.`BIT_DEPTH_MULTI`
Value of the bit depth if multiple bit depths are supported in this display mode.
`static final int`
Transparency.`BITMASK`
Represents image data that is guaranteed to be either completely opaque, with an alpha value of 1.0, or completely transparent, with an alpha value of 0.0.
`static final int`
BasicStroke.`CAP_BUTT`
Ends unclosed subpaths and dash segments with no added decoration.
`static final int`
BasicStroke.`CAP_ROUND`
Ends unclosed subpaths and dash segments with a round decoration that has a radius equal to half of the width of the pen.
`static final int`
BasicStroke.`CAP_SQUARE`
Ends unclosed subpaths and dash segments with a square projection that extends beyond the end of the segment to a distance equal to half of the line width.
`static final int`
AlphaComposite.`CLEAR`
Both the color and the alpha of the destination are cleared (Porter-Duff Clear rule).
`static final int`
SystemColor.`CONTROL`
The array index for the `SystemColor.control` system color.
`static final int`
SystemColor.`CONTROL_DK_SHADOW`
The array index for the `SystemColor.controlDkShadow` system color.
`static final int`
SystemColor.`CONTROL_HIGHLIGHT`
The array index for the `SystemColor.controlHighlight` system color.
`static final int`
SystemColor.`CONTROL_LT_HIGHLIGHT`
The array index for the `SystemColor.controlLtHighlight` system color.
`static final int`
SystemColor.`CONTROL_SHADOW`
The array index for the `SystemColor.controlShadow` system color.
`static final int`
SystemColor.`CONTROL_TEXT`
The array index for the `SystemColor.controlText` system color.
`static final int`
SystemColor.`DESKTOP`
The array index for the `SystemColor.desktop` system color.
`static final int`
AlphaComposite.`DST`
The destination is left untouched (Porter-Duff Destination rule).
`static final int`
AlphaComposite.`DST_ATOP`
The part of the destination lying inside of the source is composited over the source and replaces the destination (Porter-Duff Destination Atop Source rule).
`static final int`
AlphaComposite.`DST_IN`
The part of the destination lying inside of the source replaces the destination (Porter-Duff Destination In Source rule).
`static final int`
AlphaComposite.`DST_OUT`
The part of the destination lying outside of the source replaces the destination (Porter-Duff Destination Held Out By Source rule).
`static final int`
AlphaComposite.`DST_OVER`
The destination is composited over the source and the result replaces the destination (Porter-Duff Destination Over Source rule).
`static final int`
Adjustable.`HORIZONTAL`
Indicates that the `Adjustable` has horizontal orientation.
`static final int`
SystemColor.`INACTIVE_CAPTION`
The array index for the `SystemColor.inactiveCaption` system color.
`static final int`
SystemColor.`INACTIVE_CAPTION_BORDER`
The array index for the `SystemColor.inactiveCaptionBorder` system color.
`static final int`
SystemColor.`INACTIVE_CAPTION_TEXT`
The array index for the `SystemColor.inactiveCaptionText` system color.
`static final int`
SystemColor.`INFO`
The array index for the `SystemColor.info` system color.
`static final int`
SystemColor.`INFO_TEXT`
The array index for the `SystemColor.infoText` system color.
`static final int`
BasicStroke.`JOIN_BEVEL`
Joins path segments by connecting the outer corners of their wide outlines with a straight segment.
`static final int`
BasicStroke.`JOIN_MITER`
Joins path segments by extending their outside edges until they meet.
`static final int`
BasicStroke.`JOIN_ROUND`
Joins path segments by rounding off the corner at a radius of half the line width.
`static final int`
SystemColor.`MENU`
The array index for the `SystemColor.menu` system color.
`static final int`
SystemColor.`MENU_TEXT`
The array index for the `SystemColor.menuText` system color.
`static final int`
Adjustable.`NO_ORIENTATION`
Indicates that the `Adjustable` has no orientation.
`static final int`
SystemColor.`NUM_COLORS`
The number of system colors in the array.
`static final int`
Transparency.`OPAQUE`
Represents image data that is guaranteed to be completely opaque, meaning that all pixels have an alpha value of 1.0.
`static final int`
DisplayMode.`REFRESH_RATE_UNKNOWN`
Value of the refresh rate if not known.
`static final int`
SystemColor.`SCROLLBAR`
The array index for the `SystemColor.scrollbar` system color.
`static final int`
AlphaComposite.`SRC`
The source is copied to the destination (Porter-Duff Source rule).
`static final int`
AlphaComposite.`SRC_ATOP`
The part of the source lying inside of the destination is composited onto the destination (Porter-Duff Source Atop Destination rule).
`static final int`
AlphaComposite.`SRC_IN`
The part of the source lying inside of the destination replaces the destination (Porter-Duff Source In Destination rule).
`static final int`
AlphaComposite.`SRC_OUT`
The part of the source lying outside of the destination replaces the destination (Porter-Duff Source Held Out By Destination rule).
`static final int`
AlphaComposite.`SRC_OVER`
The source is composited over the destination (Porter-Duff Source Over Destination rule).
`static final int`
SystemColor.`TEXT`
The array index for the `SystemColor.text` system color.
`static final int`
SystemColor.`TEXT_HIGHLIGHT`
The array index for the `SystemColor.textHighlight` system color.
`static final int`
SystemColor.`TEXT_HIGHLIGHT_TEXT`
The array index for the `SystemColor.textHighlightText` system color.
`static final int`
SystemColor.`TEXT_INACTIVE_TEXT`
The array index for the `SystemColor.textInactiveText` system color.
`static final int`
SystemColor.`TEXT_TEXT`
The array index for the `SystemColor.textText` system color.
`static final int`
Transparency.`TRANSLUCENT`
Represents image data that contains or might contain arbitrary alpha values between and including 0.0 and 1.0.
`static final int`
Adjustable.`VERTICAL`
Indicates that the `Adjustable` has vertical orientation.
`static final int`
SystemColor.`WINDOW`
The array index for the `SystemColor.window` system color.
`static final int`
SystemColor.`WINDOW_BORDER`
The array index for the `SystemColor.windowBorder` system color.
`static final int`
SystemColor.`WINDOW_TEXT`
The array index for the `SystemColor.windowText` system color.
`static final int`
AlphaComposite.`XOR`
The part of the source that lies outside of the destination is combined with the part of the destination that lies outside of the source (Porter-Duff Source Xor Destination rule).

## Uses of Native in java.awt.color

Fields in java.awt.color with annotations of type Native
Modifier and Type
Field
Description
`static final int`
ColorSpace.`CS_CIEXYZ`
The built-in CIEXYZ conversion color space defined above.
`static final int`
ColorSpace.`CS_GRAY`
The built-in linear gray scale color space.
`static final int`
ColorSpace.`CS_LINEAR_RGB`
The built-in linear RGB color space.
`static final int`
ColorSpace.`CS_PYCC`
The built-in Photo YCC conversion color space.
`static final int`
ColorSpace.`CS_sRGB`
The built-in sRGB color space defined at http://www.w3.org/pub/WWW/Graphics/Color/sRGB.html.
`static final int`
ColorSpace.`TYPE_2CLR`
Generic 2 component color spaces.
`static final int`
ColorSpace.`TYPE_3CLR`
Generic 3 component color spaces.
`static final int`
ColorSpace.`TYPE_4CLR`
Generic 4 component color spaces.
`static final int`
ColorSpace.`TYPE_5CLR`
Generic 5 component color spaces.
`static final int`
ColorSpace.`TYPE_6CLR`
Generic 6 component color spaces.
`static final int`
ColorSpace.`TYPE_7CLR`
Generic 7 component color spaces.
`static final int`
ColorSpace.`TYPE_8CLR`
Generic 8 component color spaces.
`static final int`
ColorSpace.`TYPE_9CLR`
Generic 9 component color spaces.
`static final int`
ColorSpace.`TYPE_ACLR`
Generic 10 component color spaces.
`static final int`
ColorSpace.`TYPE_BCLR`
Generic 11 component color spaces.
`static final int`
ColorSpace.`TYPE_CCLR`
Generic 12 component color spaces.
`static final int`
ColorSpace.`TYPE_CMY`
Any of the family of CMY color spaces.
`static final int`
ColorSpace.`TYPE_CMYK`
Any of the family of CMYK color spaces.
`static final int`
ColorSpace.`TYPE_DCLR`
Generic 13 component color spaces.
`static final int`
ColorSpace.`TYPE_ECLR`
Generic 14 component color spaces.
`static final int`
ColorSpace.`TYPE_FCLR`
Generic 15 component color spaces.
`static final int`
ColorSpace.`TYPE_GRAY`
Any of the family of GRAY color spaces.
`static final int`
ColorSpace.`TYPE_HLS`
Any of the family of HLS color spaces.
`static final int`
ColorSpace.`TYPE_HSV`
Any of the family of HSV color spaces.
`static final int`
ColorSpace.`TYPE_Lab`
Any of the family of Lab color spaces.
`static final int`
ColorSpace.`TYPE_Luv`
Any of the family of Luv color spaces.
`static final int`
ColorSpace.`TYPE_RGB`
Any of the family of RGB color spaces.
`static final int`
ColorSpace.`TYPE_XYZ`
Any of the family of XYZ color spaces.
`static final int`
ColorSpace.`TYPE_YCbCr`
Any of the family of YCbCr color spaces.
`static final int`
ColorSpace.`TYPE_Yxy`
Any of the family of Yxy color spaces.

## Uses of Native in java.awt.dnd

Fields in java.awt.dnd with annotations of type Native
Modifier and Type
Field
Description
`static final int`
DnDConstants.`ACTION_COPY`
An `int` representing a "copy" action.
`static final int`
DnDConstants.`ACTION_COPY_OR_MOVE`
An `int` representing a "copy" or "move" action.
`static final int`
DnDConstants.`ACTION_LINK`
An `int` representing a "link" action.
`static final int`
DnDConstants.`ACTION_MOVE`
An `int` representing a "move" action.
`static final int`
DnDConstants.`ACTION_NONE`
An `int` representing no action.
`static final int`
DnDConstants.`ACTION_REFERENCE`
An `int` representing a "reference" action (synonym for ACTION_LINK).

## Uses of Native in java.awt.event

Fields in java.awt.event with annotations of type Native
Modifier and Type
Field
Description
`static final int`
ActionEvent.`ACTION_PERFORMED`
This event id indicates that a meaningful action occurred.
`static final int`
AdjustmentEvent.`BLOCK_DECREMENT`
The block decrement adjustment type.
`static final int`
AdjustmentEvent.`BLOCK_INCREMENT`
The block increment adjustment type.
`static final int`
InputMethodEvent.`CARET_POSITION_CHANGED`
The event type indicating a changed insertion point in input method text.
`static final int`
ComponentEvent.`COMPONENT_HIDDEN`
This event indicates that the component was rendered invisible.
`static final int`
ComponentEvent.`COMPONENT_MOVED`
This event indicates that the component's position changed.
`static final int`
ComponentEvent.`COMPONENT_RESIZED`
This event indicates that the component's size changed.
`static final int`
ComponentEvent.`COMPONENT_SHOWN`
This event indicates that the component was made visible.
`static final int`
InputMethodEvent.`INPUT_METHOD_FIRST`
Marks the first integer id for the range of input method event ids.
`static final int`
InputMethodEvent.`INPUT_METHOD_LAST`
Marks the last integer id for the range of input method event ids.
`static final int`
InputMethodEvent.`INPUT_METHOD_TEXT_CHANGED`
The event type indicating changed input method text.
`static final int`
AdjustmentEvent.`TRACK`
The absolute tracking adjustment type.
`static final int`
AdjustmentEvent.`UNIT_DECREMENT`
The unit decrement adjustment type.
`static final int`
AdjustmentEvent.`UNIT_INCREMENT`
The unit increment adjustment type.
`static final int`
MouseWheelEvent.`WHEEL_BLOCK_SCROLL`
Constant representing scrolling by a "block" (like scrolling with page-up, page-down keys)
`static final int`
MouseWheelEvent.`WHEEL_UNIT_SCROLL`
Constant representing scrolling by "units" (like scrolling with the arrow keys)
`static final int`
WindowEvent.`WINDOW_ACTIVATED`
The window-activated event type.
`static final int`
WindowEvent.`WINDOW_CLOSED`
The window closed event.
`static final int`
WindowEvent.`WINDOW_CLOSING`
The "window is closing" event.
`static final int`
WindowEvent.`WINDOW_DEACTIVATED`
The window-deactivated event type.
`static final int`
WindowEvent.`WINDOW_DEICONIFIED`
The window deiconified event type.
`static final int`
WindowEvent.`WINDOW_GAINED_FOCUS`
The window-gained-focus event type.
`static final int`
WindowEvent.`WINDOW_ICONIFIED`
The window iconified event.
`static final int`
WindowEvent.`WINDOW_LOST_FOCUS`
The window-lost-focus event type.
`static final int`
WindowEvent.`WINDOW_OPENED`
The window opened event.
`static final int`
WindowEvent.`WINDOW_STATE_CHANGED`
The window-state-changed event type.

## Uses of Native in java.awt.geom

Fields in java.awt.geom with annotations of type Native
Modifier and Type
Field
Description
`static final int`
PathIterator.`SEG_CLOSE`
The segment type constant that specifies that the preceding subpath should be closed by appending a line segment back to the point corresponding to the most recent SEG_MOVETO.
`static final int`
PathIterator.`SEG_CUBICTO`
The segment type constant for the set of 3 points that specify a cubic parametric curve to be drawn from the most recently specified point.
`static final int`
PathIterator.`SEG_LINETO`
The segment type constant for a point that specifies the end point of a line to be drawn from the most recently specified point.
`static final int`
PathIterator.`SEG_MOVETO`
The segment type constant for a point that specifies the starting location for a new subpath.
`static final int`
PathIterator.`SEG_QUADTO`
The segment type constant for the pair of points that specify a quadratic parametric curve to be drawn from the most recently specified point.
`static final int`
PathIterator.`WIND_EVEN_ODD`
The winding rule constant for specifying an even-odd rule for determining the interior of a path.
`static final int`
PathIterator.`WIND_NON_ZERO`
The winding rule constant for specifying a non-zero rule for determining the interior of a path.

## Uses of Native in java.awt.image

Fields in java.awt.image with annotations of type Native
Modifier and Type
Field
Description
`static final int`
ConvolveOp.`EDGE_NO_OP`
Pixels at the edge of the source image are copied to the corresponding pixels in the destination without modification.
`static final int`
ConvolveOp.`EDGE_ZERO_FILL`
Pixels at the edge of the destination image are set to zero.
`static final int`
AffineTransformOp.`TYPE_BICUBIC`
Bicubic interpolation type.
`static final int`
AffineTransformOp.`TYPE_BILINEAR`
Bilinear interpolation type.
`static final int`
DataBuffer.`TYPE_BYTE`
Tag for unsigned byte data.
`static final int`
DataBuffer.`TYPE_DOUBLE`
Tag for double data.
`static final int`
DataBuffer.`TYPE_FLOAT`
Tag for float data.
`static final int`
DataBuffer.`TYPE_INT`
Tag for int data.
`static final int`
AffineTransformOp.`TYPE_NEAREST_NEIGHBOR`
Nearest-neighbor interpolation type.
`static final int`
DataBuffer.`TYPE_SHORT`
Tag for signed short data.
`static final int`
DataBuffer.`TYPE_UNDEFINED`
Tag for undefined data.
`static final int`
DataBuffer.`TYPE_USHORT`
Tag for unsigned short data.

## Uses of Native in java.awt.print

Fields in java.awt.print with annotations of type Native
Modifier and Type
Field
Description
`static final int`
PageFormat.`LANDSCAPE`
The origin is at the bottom left of the paper with x running bottom to top and y running left to right.
`static final int`
PageFormat.`PORTRAIT`
The origin is at the top left of the paper with x running to the right and y running down the paper.
`static final int`
PageFormat.`REVERSE_LANDSCAPE`
The origin is at the top right of the paper with x running top to bottom and y running right to left.
`static final int`
Pageable.`UNKNOWN_NUMBER_OF_PAGES`
This constant is returned from the `getNumberOfPages` method if a `Pageable` implementation does not know the number of pages in its set.

## Uses of Native in java.lang

Fields in java.lang with annotations of type Native
Modifier and Type
Field
Description
`static final int`
Integer.`MAX_VALUE`
A constant holding the maximum value an `int` can have, 231-1.
`static final long`
Long.`MAX_VALUE`
A constant holding the maximum value a `long` can have, 263-1.
`static final int`
Integer.`MIN_VALUE`
A constant holding the minimum value an `int` can have, -231.
`static final long`
Long.`MIN_VALUE`
A constant holding the minimum value a `long` can have, -263.
`static final int`
Integer.`SIZE`
The number of bits used to represent an `int` value in two's complement binary form.
`static final int`
Long.`SIZE`
The number of bits used to represent a `long` value in two's complement binary form.

## Uses of Native in java.net

Fields in java.net with annotations of type Native
Modifier and Type
Field
Description
`static final int`
SocketOptions.`IP_MULTICAST_IF`
Set which outgoing interface on which to send multicast packets.
`static final int`
SocketOptions.`IP_MULTICAST_IF2`
Same as above.
`static final int`
SocketOptions.`IP_MULTICAST_LOOP`
This option enables or disables local loopback of multicast datagrams.
`static final int`
SocketOptions.`IP_TOS`
This option sets the type-of-service or traffic class field in the IP header for a TCP or UDP socket.
`static final int`
SocketOptions.`SO_BINDADDR`
Fetch the local address binding of a socket (this option cannot be "set" only "gotten", since sockets are bound at creation time, and so the locally bound address cannot be changed).
`static final int`
SocketOptions.`SO_BROADCAST`
Sets SO_BROADCAST for a socket.
`static final int`
SocketOptions.`SO_KEEPALIVE`
When the keepalive option is set for a TCP socket and no data has been exchanged across the socket in either direction for 2 hours (NOTE: the actual value is implementation dependent), TCP automatically sends a keepalive probe to the peer.
`static final int`
SocketOptions.`SO_LINGER`
Specify a linger-on-close timeout.
`static final int`
SocketOptions.`SO_OOBINLINE`
When the OOBINLINE option is set, any TCP urgent data received on the socket will be received through the socket input stream.
`static final int`
SocketOptions.`SO_RCVBUF`
Set a hint the size of the underlying buffers used by the platform for incoming network I/O.
`static final int`
SocketOptions.`SO_REUSEADDR`
Sets SO_REUSEADDR for a socket.
`static final int`
SocketOptions.`SO_REUSEPORT`
Sets SO_REUSEPORT for a socket.
`static final int`
SocketOptions.`SO_SNDBUF`
Set a hint the size of the underlying buffers used by the platform for outgoing network I/O.
`static final int`
SocketOptions.`SO_TIMEOUT`
Set a timeout on blocking Socket operations:
`static final int`
SocketOptions.`TCP_NODELAY`
Disable Nagle's algorithm for this connection.

## Uses of Native in java.net.spi

Fields in java.net.spi with annotations of type Native
Modifier and Type
Field
Description
`static final int`
InetAddressResolver.LookupPolicy.`IPV4`
Characteristic value signifying if IPv4 addresses need to be queried during lookup.
`static final int`
InetAddressResolver.LookupPolicy.`IPV4_FIRST`
Characteristic value signifying if IPv4 addresses should be returned first by `InetAddressResolver`.
`static final int`
InetAddressResolver.LookupPolicy.`IPV6`
Characteristic value signifying if IPv6 addresses need to be queried during lookup.
`static final int`
InetAddressResolver.LookupPolicy.`IPV6_FIRST`
Characteristic value signifying if IPv6 addresses should be returned first by `InetAddressResolver`.