Package | Description |
---|---|
org.freehep.graphics2d |
Base classes for VectorGraphics, useful to implement different output formats.
|
Modifier and Type | Method and Description |
---|---|
TextLayout |
GenericTagHandler.createTextLayout(TagString s,
double superscriptCorrection)
calculates the string bounds using the current font of
GenericTagHandler.graphics . |
abstract void |
VectorGraphics.drawString(TagString str,
double x,
double y) |
void |
AbstractVectorGraphics.drawString(TagString str,
double x,
double y) |
abstract void |
VectorGraphics.drawString(TagString str,
double x,
double y,
int horizontal,
int vertical) |
void |
AbstractVectorGraphics.drawString(TagString str,
double x,
double y,
int horizontal,
int vertical) |
abstract void |
VectorGraphics.drawString(TagString str,
double x,
double y,
int horizontal,
int vertical,
boolean framed,
Color frameColor,
double frameWidth,
boolean banner,
Color bannerColor)
Draws a TagString with a lot of parameters.
|
void |
AbstractVectorGraphics.drawString(TagString str,
double x,
double y,
int horizontal,
int vertical,
boolean framed,
Color frameColor,
double frameWidth,
boolean banner,
Color bannerColor)
Draws the tagged string parsed by a
TagHandler and adds a
border specified by the parameters |
String |
TagHandler.parse(TagString string)
parses string and calls methods for every tag and every not recognized
entity The characters < and > have to be written as < and > while
the & is written as &
The following three methods are called: defaultEntity(entity) for &
< > " ' entity(entity) for all other entities
openTag(tag) for all <tags> endTag(tag) for all </tags> text(text) for
all text
The startTag, endTag and text methods returns a string which is added to
the fully parsed string.
|
void |
GenericTagHandler.print(TagString s,
double x,
double y,
double superscriptCorrection)
prints the tagged string at x:y
|
Copyright © 2020. All rights reserved.