|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SizeCalculator
The interface for an class that is able to calculate the width of a given string, and the height of a line of text. The calculations rely on state information (e.g. font size, graphics device, etc) maintained by the calculator.
EveryLayoutSupport
can create an instance of a class that
implements this interface, via the LayoutSupport.createTextSizeCalculator(org.pentaho.reporting.engine.classic.core.style.FontDefinition)
method.
Field Summary | |
---|---|
static String |
CLIP_TEXT
Deprecated. This config-key is no longer used. |
static String |
USE_MAX_CHAR_SIZE
Deprecated. This config-key should not be declared here. |
Method Summary | |
---|---|
float |
getLineHeight()
Deprecated. Returns the line height. |
float |
getStringWidth(String text,
int lineStartPos,
int endPos)
Deprecated. Calculates the width of a String |
Field Detail |
---|
static final String USE_MAX_CHAR_SIZE
static final String CLIP_TEXT
Method Detail |
---|
float getStringWidth(String text, int lineStartPos, int endPos)
String in the current Graphics
context.
- Parameters:
text
- the text.lineStartPos
- the start position of the substring to be measured.endPos
- the position of the last character to be measured.
- Returns:
- the width of the string in Java2D units.
float getLineHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |