Package com.openhtmltopdf.svgsupport
Class OpenHtmlGvtGlyphVector
java.lang.Object
com.openhtmltopdf.svgsupport.OpenHtmlGvtGlyphVector
- All Implemented Interfaces:
org.apache.batik.gvt.font.GVTGlyphVector
public class OpenHtmlGvtGlyphVector
extends Object
implements org.apache.batik.gvt.font.GVTGlyphVector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.batik.gvt.font.GVTFont
private final FontRenderContext
private final GlyphVector
-
Constructor Summary
ConstructorsConstructorDescriptionOpenHtmlGvtGlyphVector
(GlyphVector vec, org.apache.batik.gvt.font.GVTFont font, FontRenderContext frc) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Graphics2D g2d, AttributedCharacterIterator arg1) int
getCharacterCount
(int start, int end) org.apache.batik.gvt.font.GVTFont
getFont()
getGlyphCellBounds
(int arg0) int
getGlyphCode
(int idx) int[]
getGlyphCodes
(int arg0, int arg1, int[] arg2) getGlyphJustificationInfo
(int idx) getGlyphLogicalBounds
(int arg0) org.apache.batik.gvt.font.GVTGlyphMetrics
getGlyphMetrics
(int arg0) getGlyphOutline
(int arg0) getGlyphPosition
(int arg0) float[]
getGlyphPositions
(int arg0, int arg1, float[] arg2) getGlyphTransform
(int arg0) getGlyphVisualBounds
(int arg0) int
getOutline
(float arg0, float arg1) boolean
isGlyphVisible
(int arg0) boolean
void
maybeReverse
(boolean arg0) void
void
setGlyphPosition
(int arg0, Point2D arg1) void
setGlyphTransform
(int arg0, AffineTransform arg1) void
setGlyphVisible
(int arg0, boolean arg1)
-
Field Details
-
vec
-
font
private final org.apache.batik.gvt.font.GVTFont font -
frc
-
-
Constructor Details
-
OpenHtmlGvtGlyphVector
public OpenHtmlGvtGlyphVector(GlyphVector vec, org.apache.batik.gvt.font.GVTFont font, FontRenderContext frc)
-
-
Method Details
-
draw
- Specified by:
draw
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getBounds2D
- Specified by:
getBounds2D
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getCharacterCount
public int getCharacterCount(int start, int end) - Specified by:
getCharacterCount
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getFont
public org.apache.batik.gvt.font.GVTFont getFont()- Specified by:
getFont
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getFontRenderContext
- Specified by:
getFontRenderContext
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGeometricBounds
- Specified by:
getGeometricBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphCellBounds
- Specified by:
getGlyphCellBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphCode
public int getGlyphCode(int idx) - Specified by:
getGlyphCode
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphCodes
public int[] getGlyphCodes(int arg0, int arg1, int[] arg2) - Specified by:
getGlyphCodes
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphJustificationInfo
- Specified by:
getGlyphJustificationInfo
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphLogicalBounds
- Specified by:
getGlyphLogicalBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphMetrics
public org.apache.batik.gvt.font.GVTGlyphMetrics getGlyphMetrics(int arg0) - Specified by:
getGlyphMetrics
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphOutline
- Specified by:
getGlyphOutline
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphPosition
- Specified by:
getGlyphPosition
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphPositions
public float[] getGlyphPositions(int arg0, int arg1, float[] arg2) - Specified by:
getGlyphPositions
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphTransform
- Specified by:
getGlyphTransform
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getGlyphVisualBounds
- Specified by:
getGlyphVisualBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getLogicalBounds
- Specified by:
getLogicalBounds
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getNumGlyphs
public int getNumGlyphs()- Specified by:
getNumGlyphs
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getOutline
- Specified by:
getOutline
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
getOutline
- Specified by:
getOutline
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
isGlyphVisible
public boolean isGlyphVisible(int arg0) - Specified by:
isGlyphVisible
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
isReversed
public boolean isReversed()- Specified by:
isReversed
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
maybeReverse
public void maybeReverse(boolean arg0) - Specified by:
maybeReverse
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
performDefaultLayout
public void performDefaultLayout()- Specified by:
performDefaultLayout
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphPosition
- Specified by:
setGlyphPosition
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphTransform
- Specified by:
setGlyphTransform
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-
setGlyphVisible
public void setGlyphVisible(int arg0, boolean arg1) - Specified by:
setGlyphVisible
in interfaceorg.apache.batik.gvt.font.GVTGlyphVector
-