Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4314043
Votes 0
Synopsis Need a way to quickly determine if a Font object has a transform
Category java:classes_2d
Reported Against 1.2
Release Fixed 1.4(merlin-beta)
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs
Submit Date 18-FEB-2000
Description
The Font object has a transform attribute that can be accessed via
Font.getTransform().  Most of the time, this attribute will be a
simple identity transform.  The only way to figure out if the
transform is an identity transform is to call getTransform and then
inspect the returned AffineTransform object.  Unfortunately, calling
getTransform() requires the Font object to clone the AffineTransform
since the transform is mutable.

Alternatively, Font could have a method that would return a boolean
indicating whether the transform attribute was an identity transform.
In that case, the caller could simplify their processing of the Font
and avoid having to clone a transform by avoiding a call to getTransform().

Similarly, the TransformAttribute object that is used to hold the
transform attribute for a Font object has no easy way to determine if
it is holding an identity transform.  An isIdentity() method on that
class would enable the same optimizations when dealing with a
TransformAttribute object.
Work Around
N/A
Evaluation
Implement new methods as indicated in Suggested Fix for Merlin.

 xxxxx@xxxxx  2000-02-18
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang