org.apache.fop.fonts

Class FontTriplet

Implemented Interfaces:
Comparable, Serializable

public class FontTriplet
extends java.lang.Object
implements Comparable, Serializable

FontTriplet contains information on name, style and weight of one font

Constructor Summary

FontTriplet(String name, String style, int weight)
Creates a new font triplet.

Method Summary

int
compareTo(Object o)
boolean
equals(Object obj)
String
getName()
String
getStyle()
int
getWeight()
int
hashCode()
String
toString()

Constructor Details

FontTriplet

public FontTriplet(String name,
                   String style,
                   int weight)
Creates a new font triplet.
Parameters:
name - font name
style - font style (normal, italic etc.)
weight - font weight (100, 200, 300...800, 900)

Method Details

compareTo

public int compareTo(Object o)
See Also:
java.lang.Comparable.compareTo(java.lang.Object)

equals

public boolean equals(Object obj)
See Also:
java.lang.Object.equals(java.lang.Object)

getName

public String getName()
Returns:
the font name

getStyle

public String getStyle()
Returns:
the font style

getWeight

public int getWeight()
Returns:
the font weight

hashCode

public int hashCode()
See Also:
java.lang.Object.hashCode()

toString

public String toString()
See Also:
java.lang.Object.toString()

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.