|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.tc.TypesettingContextImpl
public class TypesettingContextImpl
This implementation of a typesetting context provides the required functionality for the container or attributes describing the appearance of glyphs or other nodes.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
TypesettingContextImpl()
Creates a new object filled with default values. |
|
TypesettingContextImpl(Font theFont)
Creates a new object with the given initial font, the color black and no hyphenation. |
|
TypesettingContextImpl(TypesettingContext tc)
Creates a new object (copy constructor). |
|
| Method Summary | |
|---|---|
Color |
getColor()
Getter for the color. |
Direction |
getDirection()
Getter for the writing direction. |
Font |
getFont()
Getter for the font component. |
Language |
getLanguage()
Getter for the hyphenation table. |
void |
set(TypesettingContext context)
Setter for all components. |
void |
setColor(Color color)
Setter for the color. |
void |
setDirection(Direction direction)
Setter for the writing direction. |
void |
setFont(Font font)
Setter for the font component. |
void |
setLanguage(Language language)
Setter for the hyphenation table. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public TypesettingContextImpl()
public TypesettingContextImpl(Font theFont)
theFont - the font to usepublic TypesettingContextImpl(TypesettingContext tc)
tc - the typesetting context to copy| Method Detail |
|---|
public Color getColor()
getColor in interface TypesettingContextTypesettingContext.getColor()public Direction getDirection()
getDirection in interface TypesettingContextTypesettingContext.getDirection()public Font getFont()
getFont in interface TypesettingContextTypesettingContext.getFont()public Language getLanguage()
getLanguage in interface TypesettingContextTypesettingContext.getLanguage()public void set(TypesettingContext context)
set in interface ModifiableTypesettingContextcontext - the context to cloneModifiableTypesettingContext.set(
org.extex.typesetter.tc.TypesettingContext)public void setColor(Color color)
setColor in interface ModifiableTypesettingContextcolor - the new colorModifiableTypesettingContext.setColor(
org.extex.color.Color)public void setDirection(Direction direction)
setDirection in interface ModifiableTypesettingContextdirection - the new directionModifiableTypesettingContext.setDirection(
org.extex.typesetter.tc.Direction)public void setFont(Font font)
setFont in interface ModifiableTypesettingContextfont - the font to storeModifiableTypesettingContext.setFont(
org.extex.typesetter.tc.font.Font)public void setLanguage(Language language)
setLanguage in interface ModifiableTypesettingContextlanguage - the hyphenation tableModifiableTypesettingContext.setLanguage(
org.extex.language.Language)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||