/** * Returns a string representation of the receiver which is suitable * for constructing an equivalent instance using the * <code>FontData(String)</code> constructor. * * @return a string representation of the FontData * * @see FontData */ public String toString() { StringBuffer buffer = new StringBuffer(128); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("COCOA|1|"); if (nsName != null) buffer.append(nsName); return buffer.toString(); }
/** * Returns a string representation of the receiver which is suitable * for constructing an equivalent instance using the * <code>FontData(String)</code> constructor. * * @return a string representation of the FontData * * @see FontData */ @Override public String toString() { StringBuffer buffer = new StringBuffer(128); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("GTK|1|"); return buffer.toString(); }
/** * Returns a string representation of the receiver which is suitable * for constructing an equivalent instance using the * <code>FontData(String)</code> constructor. * * @return a string representation of the FontData * * @see FontData */ @Override public String toString() { StringBuffer buffer = new StringBuffer(128); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("GTK|1|"); return buffer.toString(); }
/** * Returns a string representation of the receiver which is suitable * for constructing an equivalent instance using the * <code>FontData(String)</code> constructor. * * @return a string representation of the FontData * * @see FontData */ @Override public String toString() { StringBuffer buffer = new StringBuffer(128); buffer.append("1|"); buffer.append(getName()); buffer.append("|"); buffer.append(getHeightF()); buffer.append("|"); buffer.append(getStyle()); buffer.append("|"); buffer.append("GTK|1|"); return buffer.toString(); }
buffer.append(name); buffer.append("|"); //$NON-NLS-1$ buffer.append(getHeightF()); buffer.append("|"); //$NON-NLS-1$ buffer.append(getStyle());
/** * 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(); }
/** * 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(); }
/** * 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(); }
init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string); init();
init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string); init();
init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.string); init();
if (!NSThread.isMainThread()) pool = (NSAutoreleasePool) new NSAutoreleasePool().alloc().init(); try { init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.nsName); init(); } finally {
try { FontData fd = fds[0]; init(fd.getName(), fd.getHeightF(), fd.getStyle(), fd.nsName); init(); } finally {