org.foray.text.line
Class PatientLineBreaker
java.lang.Object
org.foray.text.line.LineBreaker
org.foray.text.line.PatientLineBreaker
- All Implemented Interfaces:
- org.axsl.text.line.LineBreaker, org.axsl.text.line.PatientLineBreaker
public abstract class PatientLineBreaker
- extends LineBreaker
- implements org.axsl.text.line.PatientLineBreaker
Abstract superclass for LineBreakers that act in a "patient" manner.
Constructor Summary |
PatientLineBreaker(TextServer4a server,
org.axsl.text.line.LineBreakControl control,
org.axsl.text.line.LineBreakHandler handler,
org.axsl.font.FontConsumer fontConsumer)
Constructor. |
Method Summary |
void |
addLineContent(org.axsl.text.line.LineContent contentItem)
|
protected org.axsl.text.line.LineOutput |
lineReceivingContent()
Returns the line currently having content placed upon it. |
Methods inherited from class org.foray.text.line.LineBreaker |
allowsLineBreak, canBreakMidWord, charWidth, forcesLineBreak, getCharWidth, getFontConsumer, getHandler, getHyphenWidth, getLineBreakControl, getLogger, getTextServer, getWordWidth, isInLowerCase, isLowerCase, isNonBreakingSpace, isSpace, isUpperCase, isWhitespace, isZeroWidthSpace, setInLowerCase |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.axsl.text.line.PatientLineBreaker |
getResults |
PatientLineBreaker
public PatientLineBreaker(TextServer4a server,
org.axsl.text.line.LineBreakControl control,
org.axsl.text.line.LineBreakHandler handler,
org.axsl.font.FontConsumer fontConsumer)
- Constructor.
- Parameters:
server
- The "parent" TextServer.control
- The client object that provides process-time information,
specifically by providing line length information.handler
- The client object that is responsible for taking the
results of the line-breaking work and doing something with it.fontConsumer
- Provides the line-breaking system with the
FontConsumer instance that should be used for interfacing with the Font
subsystem.
addLineContent
public void addLineContent(org.axsl.text.line.LineContent contentItem)
throws org.axsl.text.TextException
- Specified by:
addLineContent
in interface org.axsl.text.line.PatientLineBreaker
- Throws:
org.axsl.text.TextException
lineReceivingContent
protected org.axsl.text.line.LineOutput lineReceivingContent()
throws org.axsl.text.TextException
- Returns the line currently having content placed upon it.
- Returns:
- The line currently having content placed upon it.
- Throws:
org.axsl.text.TextException
- If a new line is needed and cannot be created.
Copyright © 2017. All rights reserved.