<html> <head> <title>Interface XDevice</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../../../../idl.css"> </head> <body> <div id="adc-idlref"> <a name="_top_"> </a><table class="navimain" border="0" cellpadding="3"> <tr> <td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td> <td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td> <td class="navimain"><a href="XDevice-xref.html" class="navimain">Use</a></td> <td class="navimainnone">Devguide</td> <td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td> </tr> </table> <table class="navisub" border="0" cellpadding="0"> <tr> <td class="navisub"><a href="#MethodsSummary" class="navisub">Methods' Summary</a></td> <td class="navisub"><a href="#MethodsDetails" class="navisub">Methods' Details</a></td> <td class="navisub">Attributes' Summary</td> <td class="navisub">Attributes' Details</td> </tr> </table> <hr> <table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;"> <tr> <td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">awt</a> :: </p> </td> </tr> <tr> <td class="title">interface XDevice</td> </tr> <tr> <td/></tr> <tr> <td><dl> <dt><b>Description</b></dt> <dd>provides information about a graphical output device and offers a factory for the <em>graphics</em> which provides write operations on the device. </dd> </dl> </td> </tr> </table> <hr> <a name="MethodsSummary"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle" colspan="2">Methods' Summary</td> </tr> <tr> <td class="imsum_left"><a href="#createGraphics">createGraphics</a></td> <td class="imsum_right">creates a new graphics whose output operation is directed to this device. </td> </tr> <tr> <td class="imsum_left"><a href="#createDevice">createDevice</a></td> <td class="imsum_right">creates a new device which is compatible with this one. </td> </tr> <tr> <td class="imsum_left"><a href="#getInfo">getInfo</a></td> <td class="imsum_right">returns information about the device. </td> </tr> <tr> <td class="imsum_left"><a href="#getFontDescriptors">getFontDescriptors</a></td> <td class="imsum_right">returns the list of available font descriptors. </td> </tr> <tr> <td class="imsum_left"><a href="#getFont">getFont</a></td> <td class="imsum_right">returns information about a font offered by this device. </td> </tr> <tr> <td class="imsum_left"><a href="#createBitmap">createBitmap</a></td> <td class="imsum_right">creates a bitmap with the current device depth. </td> </tr> <tr> <td class="imsum_left"><a href="#createDisplayBitmap">createDisplayBitmap</a></td> <td class="imsum_right">creates a device compatible bitmap. </td> </tr> </table> <a name="MethodsDetails"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle"> <tr> <td class="subtitle">Methods' Details</td> </tr> <tr> <td class="imdetail"><a name="createGraphics" class="membertitle">createGraphics</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3"><a href="XGraphics.html">XGraphics</a></td> </tr> <tr> <td valign="top"><b>createGraphics</b>();</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>creates a new graphics whose output operation is directed to this device. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="createDevice" class="membertitle">createDevice</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3"><a href="XDevice.html">XDevice</a></td> </tr> <tr> <td valign="top"><b>createDevice</b>(</td> <td valign="top">[in] long</td> <td valign="bottom"> nWidth,</td> </tr> <tr> <td/><td valign="top">[in] long</td> <td valign="bottom"> nHeight );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>creates a new device which is compatible with this one. </dd> <dd><p>If the device does not support the GETBITS device capability, this method returns <b>NULL</b>.</p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="getInfo" class="membertitle">getInfo</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3"><a href="DeviceInfo.html">DeviceInfo</a></td> </tr> <tr> <td valign="top"><b>getInfo</b>();</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>returns information about the device. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="getFontDescriptors" class="membertitle">getFontDescriptors</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3">sequence< <a href="FontDescriptor.html">FontDescriptor</a> ></td> </tr> <tr> <td valign="top"><b>getFontDescriptors</b>();</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>returns the list of available font descriptors. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="getFont" class="membertitle">getFont</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3"><a href="XFont.html">XFont</a></td> </tr> <tr> <td valign="top"><b>getFont</b>(</td> <td valign="top">[in] <a href="FontDescriptor.html">FontDescriptor</a></td> <td valign="bottom"> aDescriptor );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>returns information about a font offered by this device. </dd> <dt><b>Returns</b></dt> <dd>the font of this device. </dd> <dt><b>Parameter aDescriptor</b></dt> <dd>specifies the description of a font. The unit of measure is pixel for this device. </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="createBitmap" class="membertitle">createBitmap</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3"><a href="XBitmap.html">XBitmap</a></td> </tr> <tr> <td valign="top"><b>createBitmap</b>(</td> <td valign="top">[in] long</td> <td valign="bottom"> nX,</td> </tr> <tr> <td/><td valign="top">[in] long</td> <td valign="bottom"> nY,</td> </tr> <tr> <td/><td valign="top">[in] long</td> <td valign="bottom"> nWidth,</td> </tr> <tr> <td/><td valign="top">[in] long</td> <td valign="bottom"> nHeight );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>creates a bitmap with the current device depth. </dd> <dd><p>If the specified area does not lie entirely in the device, the bits outside are not specified.</p> </dd> </dl> </td> </tr> </table> </td> </tr> <tr> <td class="imdetail"><a name="createDisplayBitmap" class="membertitle">createDisplayBitmap</a><table border="0" width="96%" cellpadding="5" cellspacing="0" class="table-in-method" bgcolor="#ffffff" align="center"> <tr> <td><table class="table-in-method" border="0"> <tr> <td valign="top" colspan="3"><a href="XDisplayBitmap.html">XDisplayBitmap</a></td> </tr> <tr> <td valign="top"><b>createDisplayBitmap</b>(</td> <td valign="top">[in] <a href="XBitmap.html">XBitmap</a></td> <td valign="bottom"> Bitmap );</td> </tr> </table> <hr> <dl> <dt><b>Description</b></dt> <dd>creates a device compatible bitmap. </dd> <dd><p>The data of the bitmap is in process memory instead of in the device, so that the output operation is fast.</p> </dd> </dl> </td> </tr> </table> </td> </tr> </table> <a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright © 2008 Sun Microsystems, Inc.</p> </div> <!-- id="adc-idlref" --> </body> </html>