Java Code Examples for sun.font.AttributeValues#merge()
The following examples show how to use
sun.font.AttributeValues#merge() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Font.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 2
Source File: Font.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 3
Source File: Font.java From jdk-1.7-annotated with Apache License 2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 4
Source File: Font.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 5
Source File: Font.java From jdk8u_jdk with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 6
Source File: Font.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 7
Source File: Font.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 8
Source File: Font.java From hottub with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 9
Source File: Font.java From Java8CN with Apache License 2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 10
Source File: Font.java From jdk1.8-source-analysis with Apache License 2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 11
Source File: Font.java From openjdk-jdk9 with GNU General Public License v2.0 | 3 votes |
/** * Creates a new {@code Font} object by replicating the current * {@code Font} object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * {@code Font} * @return a new {@code Font} object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 12
Source File: Font.java From Bytecoder with Apache License 2.0 | 3 votes |
/** * Creates a new {@code Font} object by replicating the current * {@code Font} object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * {@code Font} * @return a new {@code Font} object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 13
Source File: Font.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 14
Source File: Font.java From openjdk-jdk8u with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 15
Source File: Font.java From JDKSourceCode1.8 with MIT License | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 16
Source File: Font.java From jdk8u60 with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 17
Source File: Font.java From TencentKona-8 with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }
Example 18
Source File: Font.java From dragonwell8_jdk with GNU General Public License v2.0 | 3 votes |
/** * Creates a new <code>Font</code> object by replicating the current * <code>Font</code> object and applying a new set of font attributes * to it. * * @param attributes a map of attributes enabled for the new * <code>Font</code> * @return a new <code>Font</code> object. * @since 1.2 */ public Font deriveFont(Map<? extends Attribute, ?> attributes) { if (attributes == null) { return this; } AttributeValues newValues = getAttributeValues().clone(); newValues.merge(attributes, RECOGNIZED_MASK); return new Font(newValues, name, style, createdFont, font2DHandle); }