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.
FontTriplet(String name, String style, int weight, int priority)
Creates a new font triplet.

Method Summary

int
compareTo(Object o)
boolean
equals(Object obj)
String
getName()
int
getPriority()
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)

FontTriplet

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

Method Details

compareTo

public int compareTo(Object o)

equals

public boolean equals(Object obj)

getName

public String getName()
Returns:
the font name

getPriority

public int getPriority()
Returns:
the priority of this triplet/font mapping

getStyle

public String getStyle()
Returns:
the font style

getWeight

public int getWeight()
Returns:
the font weight

hashCode

public int hashCode()

toString

public String toString()

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