org.foray.linebreak
Class LbPenalty4a
java.lang.Object
org.foray.linebreak.LbPenalty4a
- All Implemented Interfaces:
- org.axsl.linebreak.LbContent, org.axsl.linebreak.LbPenalty
public class LbPenalty4a
- extends Object
- implements org.axsl.linebreak.LbPenalty
A hard-wired implementation of LbPenalty.
Constructor Summary |
LbPenalty4a(int width,
int penalty,
boolean flagged)
Constructor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LbPenalty4a
public LbPenalty4a(int width,
int penalty,
boolean flagged)
- Constructor.
- Parameters:
width
- The width of this box, in millipoints.penalty
- The penalty value.flagged
- Indicates whether this is a "flagged" penalty.
getWidth
public int getWidth()
- Specified by:
getWidth
in interface org.axsl.linebreak.LbPenalty
getPenalty
public int getPenalty()
- Specified by:
getPenalty
in interface org.axsl.linebreak.LbPenalty
isFlagged
public boolean isFlagged()
- Specified by:
isFlagged
in interface org.axsl.linebreak.LbPenalty
Copyright © 2017. All rights reserved.