Package java.awt.font

Examples of java.awt.font.TransformAttribute


    /*
     * Test method for 'java.awt.font.TransformAttribute.getTransform()'
     */
    public final void testGetTransform() {
        AffineTransform at = AffineTransform.getRotateInstance(1);
        TransformAttribute ta = new TransformAttribute(at);
        assertEquals(at, ta.getTransform());
    }
View Full Code Here


    /*
     * Test method for 'java.awt.font.TransformAttribute.isIdentity()'
     */
    public final void testIsIdentity() {
        TransformAttribute ta = new TransformAttribute(new AffineTransform());
        assertTrue(ta.isIdentity());

        AffineTransform at = AffineTransform.getRotateInstance(1);
        ta = new TransformAttribute(at);
        assertFalse(ta.isIdentity());
}
View Full Code Here

        }

        Hashtable<Attribute, Object> derivefRequestedAttributes = (Hashtable<Attribute, Object>)fRequestedAttributes.clone();

        derivefRequestedAttributes.put(TextAttribute.TRANSFORM,
                new TransformAttribute(trans));

        return new Font(derivefRequestedAttributes);

    }
View Full Code Here

                    TextAttribute.POSTURE_OBLIQUE);
        } else if (derivefRequestedAttributes.get(TextAttribute.POSTURE) != null){
            derivefRequestedAttributes.remove(TextAttribute.POSTURE);
        }
        derivefRequestedAttributes.put(TextAttribute.TRANSFORM,
                new TransformAttribute(trans));

        return new Font(derivefRequestedAttributes);
    }
View Full Code Here

        }

        Hashtable<Attribute, Object> derivefRequestedAttributes = (Hashtable<Attribute, Object>)fRequestedAttributes.clone();

        derivefRequestedAttributes.put(TextAttribute.TRANSFORM,
                new TransformAttribute(trans));

        return new Font(derivefRequestedAttributes);

    }
View Full Code Here

                    TextAttribute.POSTURE_OBLIQUE);
        } else if (derivefRequestedAttributes.get(TextAttribute.POSTURE) != null){
            derivefRequestedAttributes.remove(TextAttribute.POSTURE);
        }
        derivefRequestedAttributes.put(TextAttribute.TRANSFORM,
                new TransformAttribute(trans));

        return new Font(derivefRequestedAttributes);
    }
View Full Code Here

TOP

Related Classes of java.awt.font.TransformAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.