congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Font.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.eclipse.swt.graphics.Font

Best Java code snippets using org.eclipse.swt.graphics.Font.init (Showing top 20 results out of 315)

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

/*public*/ Font(Device device, String name, float height, int style) {
  super(device);
  init(name, height, style, null);
  init();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/*public*/ Font(Device device, String name, float height, int style) {
  super(device);
  init(name, height, style, null);
  init();
}

origin: org.eclipse.swt.cocoa.macosx/x86_64

/*public*/ Font(Device device, String name, float height, int style) {
  super(device);
  init(name, height, style, null);
  init();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

/*public*/ Font(Device device, String name, float height, int style) {
  super(device);
  init(name, height, style, null);
  init();
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/**
 * Constructs a new font given a device and font data
 * which describes the desired font's appearance.
 * <p>
 * You must dispose the font when it is no longer required.
 * </p>
 *
 * @param device the device to create the font on
 * @param fd the FontData that describes the desired font (must not be null)
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
 *    <li>ERROR_NULL_ARGUMENT - if the fd argument is null</li>
 * </ul>
 * @exception SWTError <ul>
 *    <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li>
 * </ul>
 *
 * @see #dispose()
 */
public Font(Device device, FontData fd) {
  super(device);
  init(fd);
  init();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
 * Constructs a new font given a device, a font name,
 * the height of the desired font in points, and a font
 * style.
 * <p>
 * You must dispose the font when it is no longer required.
 * </p>
 *
 * @param device the device to create the font on
 * @param name the name of the font (must not be null)
 * @param height the font height in points
 * @param style a bit or combination of NORMAL, BOLD, ITALIC
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
 *    <li>ERROR_NULL_ARGUMENT - if the name argument is null</li>
 *    <li>ERROR_INVALID_ARGUMENT - if the height is negative</li>
 * </ul>
 * @exception SWTError <ul>
 *    <li>ERROR_NO_HANDLES - if a font could not be created from the given arguments</li>
 * </ul>
 *
 * @see #dispose()
 */
public Font(Device device, String name, int height, int style) {
  super(device);
  init(name, height, style, null);
  init();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

/**
 * Constructs a new font given a device, a font name,
 * the height of the desired font in points, and a font
 * style.
 * <p>
 * You must dispose the font when it is no longer required.
 * </p>
 *
 * @param device the device to create the font on
 * @param name the name of the font (must not be null)
 * @param height the font height in points
 * @param style a bit or combination of NORMAL, BOLD, ITALIC
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
 *    <li>ERROR_NULL_ARGUMENT - if the name argument is null</li>
 *    <li>ERROR_INVALID_ARGUMENT - if the height is negative</li>
 * </ul>
 * @exception SWTError <ul>
 *    <li>ERROR_NO_HANDLES - if a font could not be created from the given arguments</li>
 * </ul>
 *
 * @see #dispose()
 */
public Font(Device device, String name, int height, int style) {
  super(device);
  init(name, height, style, null);
  init();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

/**
 * Constructs a new font given a device, a font name,
 * the height of the desired font in points, and a font
 * style.
 * <p>
 * You must dispose the font when it is no longer required.
 * </p>
 *
 * @param device the device to create the font on
 * @param name the name of the font (must not be null)
 * @param height the font height in points
 * @param style a bit or combination of NORMAL, BOLD, ITALIC
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
 *    <li>ERROR_NULL_ARGUMENT - if the name argument is null</li>
 *    <li>ERROR_INVALID_ARGUMENT - if the height is negative</li>
 * </ul>
 * @exception SWTError <ul>
 *    <li>ERROR_NO_HANDLES - if a font could not be created from the given arguments</li>
 * </ul>
 *
 * @see #dispose()
 */
public Font(Device device, String name, int height, int style) {
  super(device);
  init(name, height, style, null);
  init();
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

/*public*/ Font(Device device, String name, float height, int style) {
  super(device);
  if (name == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
  init(new FontData (name, height, style));
  init();
}
@Override
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

super(device);
if (name == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
init(new FontData (name, height, style));
init();
origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

  if (fds[i] == null) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
init(fds[0]);
init();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

/**
 * Constructs a new font given a device and font data
 * which describes the desired font's appearance.
 * <p>
 * You must dispose the font when it is no longer required.
 * </p>
 *
 * @param device the device to create the font on
 * @param fd the FontData that describes the desired font (must not be null)
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
 *    <li>ERROR_NULL_ARGUMENT - if the fd argument is null</li>
 * </ul>
 * @exception SWTError <ul>
 *    <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li>
 * </ul>
 *
 * @see #dispose()
 */
public Font(Device device, FontData fd) {
  super(device);
  if (fd == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
  init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string);
  init();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

/**
 * Constructs a new font given a device and font data
 * which describes the desired font's appearance.
 * <p>
 * You must dispose the font when it is no longer required.
 * </p>
 *
 * @param device the device to create the font on
 * @param fd the FontData that describes the desired font (must not be null)
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
 *    <li>ERROR_NULL_ARGUMENT - if the fd argument is null</li>
 * </ul>
 * @exception SWTError <ul>
 *    <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li>
 * </ul>
 *
 * @see #dispose()
 */
public Font(Device device, FontData fd) {
  super(device);
  if (fd == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
  init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string);
  init();
}

origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

/**
 * Constructs a new font given a device and font data
 * which describes the desired font's appearance.
 * <p>
 * You must dispose the font when it is no longer required.
 * </p>
 *
 * @param device the device to create the font on
 * @param fd the FontData that describes the desired font (must not be null)
 *
 * @exception IllegalArgumentException <ul>
 *    <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
 *    <li>ERROR_NULL_ARGUMENT - if the fd argument is null</li>
 * </ul>
 * @exception SWTError <ul>
 *    <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li>
 * </ul>
 *
 * @see #dispose()
 */
public Font(Device device, FontData fd) {
  super(device);
  if (fd == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
  init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string);
  init();
}

origin: org.eclipse.swt.cocoa.macosx/x86_64

if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init();
try {
  init(name, height, style, null);
  init();
} finally {
  if (pool != null) pool.release();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string);
init();
origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string);
init();
origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string);
init();
origin: org.eclipse.swt.cocoa.macosx/x86_64

if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init();
try {
  init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.nsName);
  init();
} finally {
  if (pool != null) pool.release();
origin: org.eclipse.swt.cocoa.macosx/x86_64

try {
  FontData fd = fds[0];
  init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.nsName);
  init();
} finally {
  if (pool != null) pool.release();
org.eclipse.swt.graphicsFontinit

Popular methods of Font

  • getFontData
    Returns an array of FontDatas representing the receiver. On Windows, only one FontData will be retur
  • <init>
  • dispose
  • isDisposed
    Returns true if the font has been disposed, and false otherwise. This method gets the dispose state
  • equals
    Compares the argument to the receiver, and returns true if they represent the same object using a c
  • getDevice
  • hashCode
    Returns an integer hash code for the receiver. Any two objects that return true when passed toequal
  • gtk_new
    Invokes platform specific functionality to allocate a new font.IMPORTANT: This method is not part of
  • addTraits
  • checkDevice
  • cocoa_new
    Invokes platform specific functionality to allocate a new font.IMPORTANT: This method is not part of
  • findFontData
  • cocoa_new,
  • findFontData,
  • win32_new

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JButton (javax.swing)
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now