APIdia Launch Partner
Top Fields Constructors Methods
sun.font

public final Class AttributeValues

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Static Imports
sun.font.EAttribute.*, java.lang.Math.*

Field Summary

Modifier and TypeField and Description
private Paint
private AffineTransform
private byte
private GraphicAttribute
private AffineTransform
private static final AttributeValues
private int
private static final String
private String
private Font
private Paint
private Object
private byte
private float
private byte
private byte
public static final int
private int
private NumericShaper
private float
private byte
private float
private boolean
private byte
private boolean
private float
private AffineTransform
private byte
private float
private float

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
allDefined(int mask)

public boolean
anyDefined(int mask)

public boolean
anyNonDefault(int mask)

public AttributeValues
applyIMHighlight()

If this has an imHighlight, create copy of this with those attributes applied to it.

public AttributeValues
clone()

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public void
defineAll(int mask)

public boolean
equals(Object rhs)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public boolean
private static boolean
equals(Object lhs, Object rhs)

private static AffineTransform
extractRotation(Point2D.Double pt, AffineTransform tx, boolean andTranslation)

public static AffineTransform
extractXRotation(AffineTransform tx, boolean andTranslation)

public static AffineTransform
extractYRotation(AffineTransform tx, boolean andTranslation)

public static AttributeValues
public static AttributeValues
fromMap(Map<? extends AttributedCharacterIterator.Attribute, ?> map, int mask)

public static AttributeValues
public Object
public Paint
public AffineTransform
public static AffineTransform
public int
public GraphicAttribute
public AffineTransform
public static AffineTransform
getCharTransform(Map<?, ?> map)

public String
public Font
public Paint
public Object
public int
public float
public static float
getJustification(Map<?, ?> map)

public int
public int
public static int
public static int
public NumericShaper
public static NumericShaper
public float
public int
public float
public boolean
public int
public boolean
public float
public static float
getTracking(Map<?, ?> map)

public AffineTransform
public int
public float
public float
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

private boolean
private Object
private void
private void
private boolean
public static boolean
public boolean
public boolean
public AttributeValues
public AttributeValues
merge(Map<? extends AttributedCharacterIterator.Attribute, ?> map, int mask)

public AttributeValues
public AttributeValues
merge(AttributeValues src, int mask)

public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
setKerning(int f)

public void
setLigatures(int f)

public void
public void
setPosture(float f)

public void
public void
setSize(float f)

public void
setStrikethrough(boolean f)

public void
public void
setSwapColors(boolean f)

public void
setTracking(float f)

public void
public void
public void
setUnderline(int f)

public void
setWeight(float f)

public void
setWidth(float f)

public Map<TextAttribute, Object>
public Hashtable<Object, Object>
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
public void
private void
public void
Inherited from java.lang.Object:
finalizegetClassnotifynotifyAllwaitwaitwait

Field Detail

backgroundback to summary
private Paint background
baselineTransformback to summary
private AffineTransform baselineTransform
bidiEmbeddingback to summary
private byte bidiEmbedding
charReplacementback to summary
private GraphicAttribute charReplacement
charTransformback to summary
private AffineTransform charTransform
DEFAULTback to summary
private static final AttributeValues DEFAULT
definedback to summary
private int defined
DEFINED_KEYback to summary
private static final String DEFINED_KEY
familyback to summary
private String family
fontback to summary
private Font font
foregroundback to summary
private Paint foreground
imHighlightback to summary
private Object imHighlight
imUnderlineback to summary
private byte imUnderline
justificationback to summary
private float justification
kerningback to summary
private byte kerning
ligaturesback to summary
private byte ligatures
MASK_ALLback to summary
public static final int MASK_ALL
nondefaultback to summary
private int nondefault
numericShapingback to summary
private NumericShaper numericShaping
postureback to summary
private float posture
runDirectionback to summary
private byte runDirection
sizeback to summary
private float size
strikethroughback to summary
private boolean strikethrough
superscriptback to summary
private byte superscript
swapColorsback to summary
private boolean swapColors
trackingback to summary
private float tracking
transformback to summary
private AffineTransform transform
underlineback to summary
private byte underline
weightback to summary
private float weight
widthback to summary
private float width

Constructor Detail

AttributeValuesback to summary
public AttributeValues()

Method Detail

allDefinedback to summary
public boolean allDefined(int mask)
anyDefinedback to summary
public boolean anyDefined(int mask)
anyNonDefaultback to summary
public boolean anyNonDefault(int mask)
applyIMHighlightback to summary
public AttributeValues applyIMHighlight()

If this has an imHighlight, create copy of this with those attributes applied to it. Otherwise return this unchanged.

cloneback to summary
public AttributeValues clone()

Overrides java.lang.Object.clone.

Doc from java.lang.Object.clone.

Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object. The general intent is that, for any object x, the expression:

x.clone() != x
will be true, and that the expression:
x.clone().getClass() == x.getClass()
will be true, but these are not absolute requirements. While it is typically the case that:
x.clone().equals(x)
will be true, this is not an absolute requirement.

By convention, the returned object should be obtained by calling super.clone. If a class and all of its superclasses (except Object) obey this convention, it will be the case that x.clone().getClass() == x.getClass().

By convention, the object returned by this method should be independent of this object (which is being cloned). To achieve this independence, it may be necessary to modify one or more fields of the object returned by super.clone before returning it. Typically, this means copying any mutable objects that comprise the internal "deep structure" of the object being cloned and replacing the references to these objects with references to the copies. If a class contains only primitive fields or references to immutable objects, then it is usually the case that no fields in the object returned by super.clone need to be modified.

defineAllback to summary
public void defineAll(int mask)
equalsback to summary
public boolean equals(Object rhs)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

equalsback to summary
public boolean equals(AttributeValues rhs)
equalsback to summary
private static boolean equals(Object lhs, Object rhs)
extractRotationback to summary
private static AffineTransform extractRotation(Point2D.Double pt, AffineTransform tx, boolean andTranslation)
extractXRotationback to summary
public static AffineTransform extractXRotation(AffineTransform tx, boolean andTranslation)
extractYRotationback to summary
public static AffineTransform extractYRotation(AffineTransform tx, boolean andTranslation)
fromMapback to summary
public static AttributeValues fromMap(Map<? extends AttributedCharacterIterator.Attribute, ?> map)
fromMapback to summary
public static AttributeValues fromMap(Map<? extends AttributedCharacterIterator.Attribute, ?> map, int mask)
fromSerializableHashtableback to summary
public static AttributeValues fromSerializableHashtable(Hashtable<Object, Object> ht)
getback to summary
public Object get(EAttribute a)
getBackgroundback to summary
public Paint getBackground()
getBaselineTransformback to summary
public AffineTransform getBaselineTransform()
getBaselineTransformback to summary
public static AffineTransform getBaselineTransform(Map<?, ?> map)
Annotations
@SuppressWarnings:unchecked
getBidiEmbeddingback to summary
public int getBidiEmbedding()
getCharReplacementback to summary
public GraphicAttribute getCharReplacement()
getCharTransformback to summary
public AffineTransform getCharTransform()
getCharTransformback to summary
public static AffineTransform getCharTransform(Map<?, ?> map)
Annotations
@SuppressWarnings:unchecked
getFamilyback to summary
public String getFamily()
getFontback to summary
public Font getFont()
getForegroundback to summary
public Paint getForeground()
getInputMethodHighlightback to summary
public Object getInputMethodHighlight()
getInputMethodUnderlineback to summary
public int getInputMethodUnderline()
getJustificationback to summary
public float getJustification()
getJustificationback to summary
public static float getJustification(Map<?, ?> map)
getKerningback to summary
public int getKerning()
getLigaturesback to summary
public int getLigatures()
getMaskback to summary
public static int getMask(EAttribute att)
getMaskback to summary
public static int getMask(EAttribute... atts)
getNumericShapingback to summary
public NumericShaper getNumericShaping()
getNumericShapingback to summary
public static NumericShaper getNumericShaping(Map<?, ?> map)
getPostureback to summary
public float getPosture()
getRunDirectionback to summary
public int getRunDirection()
getSizeback to summary
public float getSize()
getStrikethroughback to summary
public boolean getStrikethrough()
getSuperscriptback to summary
public int getSuperscript()
getSwapColorsback to summary
public boolean getSwapColors()
getTrackingback to summary
public float getTracking()
getTrackingback to summary
public static float getTracking(Map<?, ?> map)
Annotations
@SuppressWarnings:unchecked
getTransformback to summary
public AffineTransform getTransform()
getUnderlineback to summary
public int getUnderline()
getWeightback to summary
public float getWeight()
getWidthback to summary
public float getWidth()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
i_equalsback to summary
private boolean i_equals(EAttribute a, AttributeValues src)
i_getback to summary
private Object i_get(EAttribute a)
i_setback to summary
private void i_set(EAttribute a, AttributeValues src)
i_setback to summary
private void i_set(EAttribute a, Object o)
i_validateback to summary
private boolean i_validate(EAttribute a)
is16Hashtableback to summary
public static boolean is16Hashtable(Hashtable<Object, Object> ht)
isDefinedback to summary
public boolean isDefined(EAttribute a)
isNonDefaultback to summary
public boolean isNonDefault(EAttribute a)
mergeback to summary
public AttributeValues merge(Map<? extends AttributedCharacterIterator.Attribute, ?> map)
mergeback to summary
public AttributeValues merge(Map<? extends AttributedCharacterIterator.Attribute, ?> map, int mask)
mergeback to summary
public AttributeValues merge(AttributeValues src)
mergeback to summary
public AttributeValues merge(AttributeValues src, int mask)
setback to summary
public void set(EAttribute a, AttributeValues src)
setback to summary
public void set(EAttribute a, Object o)
setBackgroundback to summary
public void setBackground(Paint f)
setBidiEmbeddingback to summary
public void setBidiEmbedding(int f)
setCharReplacementback to summary
public void setCharReplacement(GraphicAttribute f)
setDefaultback to summary
public void setDefault(EAttribute a)
setFamilyback to summary
public void setFamily(String f)
setFontback to summary
public void setFont(Font f)
setForegroundback to summary
public void setForeground(Paint f)
setInputMethodHighlightback to summary
public void setInputMethodHighlight(Annotation f)
setInputMethodHighlightback to summary
public void setInputMethodHighlight(InputMethodHighlight f)
setInputMethodUnderlineback to summary
public void setInputMethodUnderline(int f)
setJustificationback to summary
public void setJustification(float f)
setKerningback to summary
public void setKerning(int f)
setLigaturesback to summary
public void setLigatures(int f)
setNumericShapingback to summary
public void setNumericShaping(NumericShaper f)
setPostureback to summary
public void setPosture(float f)
setRunDirectionback to summary
public void setRunDirection(int f)
setSizeback to summary
public void setSize(float f)
setStrikethroughback to summary
public void setStrikethrough(boolean f)
setSuperscriptback to summary
public void setSuperscript(int f)
setSwapColorsback to summary
public void setSwapColors(boolean f)
setTrackingback to summary
public void setTracking(float f)
setTransformback to summary
public void setTransform(AffineTransform f)
setTransformback to summary
public void setTransform(TransformAttribute f)
setUnderlineback to summary
public void setUnderline(int f)
setWeightback to summary
public void setWeight(float f)
setWidthback to summary
public void setWidth(float f)
toMapback to summary
public Map<TextAttribute, Object> toMap(Map<TextAttribute, Object> fill)
toSerializableHashtableback to summary
public Hashtable<Object, Object> toSerializableHashtable()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

unsetback to summary
public void unset(EAttribute a)
unsetDefaultback to summary
public void unsetDefault()
updateback to summary
private void update(EAttribute a)
updateDerivedTransformsback to summary
public void updateDerivedTransforms()