Schnittstelle TextProperties
- Alle bekannten Implementierungsklassen:
FieldElement, Subreport, Text
public interface TextProperties
Interface for all elements with text, i.e. for Text, Subreport, and FieldElement.
- Siehe auch:
-
Feldübersicht
FelderModifikator und TypFeldBeschreibungstatic final intThis is the default glyph orientation, that is, the glyphs are to point towards the source of the block progression.static final intThe glyphs are to always point downwards, regardless of text or block progression.static final intThe glyphs are to always point to the left, regardless of text or block progression.static final intThe glyphs are to always point to the right, regardless of text or block progression.static final intThe glyphs are to always point upwards, regardless of text or block progression.static final intDo not rotate element.static final intRotate to 180 degrees counter-clockwise.static final intRotate to 270 degrees counter-clockwise.static final intRotate to 90 degrees counter-clockwise. -
Methodenübersicht
Modifikator und TypMethodeBeschreibungintReturns the glyph orientation.Returns the formula whose return value determines the glyph orientation.intReturns the value of the property 'text rotation'.Returns the formula whose return value determines the property 'text rotation'.voidsetGlyphOrientation(int orientation) Sets the orientation of the glyphs.voidsetGlyphOrientationFormula(FormulaField formula) Sets the formula whose return value determines the glyph orientation.voidsetTextRotation(int rotation) Sets the value of the property 'text rotation'.voidsetTextRotationFormula(FormulaField formula) Sets the formula whose return value determines the property 'text rotation'.
-
Felddetails
-
ROTATE_0
static final int ROTATE_0Do not rotate element.- Seit:
- 7.1
- Siehe auch:
-
ROTATE_90
static final int ROTATE_90Rotate to 90 degrees counter-clockwise.- Seit:
- 7.1
- Siehe auch:
-
ROTATE_180
static final int ROTATE_180Rotate to 180 degrees counter-clockwise.- Seit:
- 7.1
- Siehe auch:
-
ROTATE_270
static final int ROTATE_270Rotate to 270 degrees counter-clockwise.- Seit:
- 7.1
- Siehe auch:
-
GLYPH_DEFAULT
static final int GLYPH_DEFAULTThis is the default glyph orientation, that is, the glyphs are to point towards the source of the block progression.- Seit:
- 7.1
- Siehe auch:
-
GLYPH_RIGHT
static final int GLYPH_RIGHTThe glyphs are to always point to the right, regardless of text or block progression.- Seit:
- 7.1
- Siehe auch:
-
GLYPH_LEFT
static final int GLYPH_LEFTThe glyphs are to always point to the left, regardless of text or block progression.- Seit:
- 7.1
- Siehe auch:
-
GLYPH_DOWN
static final int GLYPH_DOWNThe glyphs are to always point downwards, regardless of text or block progression.- Seit:
- 7.1
- Siehe auch:
-
GLYPH_UP
static final int GLYPH_UPThe glyphs are to always point upwards, regardless of text or block progression.- Seit:
- 7.1
- Siehe auch:
-
-
Methodendetails
-
setGlyphOrientation
Sets the orientation of the glyphs. This is the rotation of every individual character in the line. The default value is GLYPH_DEFAULT, that is, the glyphs point towards the source of the given block progression. Use the GLYPH constants for the orientation.- Parameter:
orientation- Orientation to be set for the glyphs (i.e. the rotation of every individual character of the line of text)- Löst aus:
IllegalArgumentException- if the orientation parameter is not allowed- Seit:
- 7.1
- Siehe auch:
-
getGlyphOrientation
int getGlyphOrientation()Returns the glyph orientation. This is the rotation of every individual character in the line. The default value is GLYPH_DEFAULT, that is, the glyphs point towards the source of the given block progression. Use the GLYPH constants for the orientation.- Gibt zurück:
- glyph orientation
- Seit:
- 7.1
- Siehe auch:
-
setTextRotation
void setTextRotation(int rotation) Sets the value of the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. For example, to have a text element have vertical text running from top to bottom and each line run from right to left, you'd set a glyph orientation of GLYPH_LEFT and a text rotation of ROTATE_270.- Parameter:
rotation- The new value of the property 'text rotation'. Rotation is done counter-clockwise.- Seit:
- 7.1
- Siehe auch:
-
getTextRotation
int getTextRotation()Returns the value of the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. For example, to have a text element have vertical text running from top to bottom and each line run from right to left, you'd set a glyph orientation of GLYPH_LEFT and a text rotation of ROTATE_270.- Gibt zurück:
- The value of the property 'text rotation'.
- Seit:
- 7.1
- Siehe auch:
-
getTextRotationFormula
FormulaField getTextRotationFormula()Returns the formula whose return value determines the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. This formula should return one of the formula constants Rotate0, Rotate90, Rotate180, or Rotate270.- Gibt zurück:
- formula whose return value determines the property 'text rotation'.
- Seit:
- 8.0
- Siehe auch:
-
setTextRotationFormula
Sets the formula whose return value determines the property 'text rotation'. This property defines a final rotation of the entire element after the text is laid out. This formula should return one of the formula constants Rotate0, Rotate90, Rotate180, or Rotate270.- Parameter:
formula- formula whose return value determines the property 'text rotation'.- Seit:
- 8.0
- Siehe auch:
-
getGlyphOrientationFormula
FormulaField getGlyphOrientationFormula()Returns the formula whose return value determines the glyph orientation. This is the rotation of every individual character in each line. This formula should return one of the formula constants GlyphDefault, GlyphLeft, GlyphRight, or GlyphDown.- Gibt zurück:
- the formula whose return value determines the glyph orientation
- Seit:
- 8.0
-
setGlyphOrientationFormula
Sets the formula whose return value determines the glyph orientation. This is the rotation of every individual character in each line. This formula should return one of the formula constants GlyphDefault, GlyphLeft, GlyphRight, or GlyphDown.- Parameter:
formula- the formula whose return value determines the glyph orientation- Seit:
- 8.0
-