Codota Logo
TextSpanLayout.getGlyphVector
Code IndexAdd Codota to your IDE (free)

How to use
getGlyphVector
method
in
org.apache.batik.bridge.TextSpanLayout

Best Java code snippets using org.apache.batik.bridge.TextSpanLayout.getGlyphVector (Showing top 20 results out of 315)

  • Common ways to obtain TextSpanLayout
private void myMethod () {
TextSpanLayout t =
  • Codota IconStrokingTextPainter.TextRun run;run.getLayout()
  • Codota IconAttributedCharacterIterator aci;Point2D offset;FontRenderContext frc;new GlyphLayout(aci, charMap, offset, frc)
  • Smart code suggestions by Codota
}
origin: fr.avianey.apache-xmlgraphics/batik

protected Point2D getStartPoint(CharacterInformation info){
  GVTGlyphVector it = info.layout.getGlyphVector();
  if (!it.isGlyphVisible(info.glyphIndexStart))
    return null;
  Point2D b = it.getGlyphPosition(info.glyphIndexStart);
  AffineTransform glyphTransform;
  glyphTransform = it.getGlyphTransform(info.glyphIndexStart);
  //glyph are defined starting at position (0,0)
  Point2D.Float result = new Point2D.Float(0, 0);
  if ( glyphTransform != null )
    //apply the glyph transformation to the start point
    glyphTransform.transform(result,result);
  result.x += b.getX();
  result.y += b.getY();
  return result;
}
origin: org.apache.xmlgraphics/batik-bridge

protected Point2D getStartPoint(CharacterInformation info){
  GVTGlyphVector it = info.layout.getGlyphVector();
  if (!it.isGlyphVisible(info.glyphIndexStart))
    return null;
  Point2D b = it.getGlyphPosition(info.glyphIndexStart);
  AffineTransform glyphTransform;
  glyphTransform = it.getGlyphTransform(info.glyphIndexStart);
  //glyph are defined starting at position (0,0)
  Point2D.Float result = new Point2D.Float(0, 0);
  if ( glyphTransform != null )
    //apply the glyph transformation to the start point
    glyphTransform.transform(result,result);
  result.x += b.getX();
  result.y += b.getY();
  return result;
}
origin: apache/batik

protected Point2D getStartPoint(CharacterInformation info){
  GVTGlyphVector it = info.layout.getGlyphVector();
  if (!it.isGlyphVisible(info.glyphIndexStart))
    return null;
  Point2D b = it.getGlyphPosition(info.glyphIndexStart);
  AffineTransform glyphTransform;
  glyphTransform = it.getGlyphTransform(info.glyphIndexStart);
  //glyph are defined starting at position (0,0)
  Point2D.Float result = new Point2D.Float(0, 0);
  if ( glyphTransform != null )
    //apply the glyph transformation to the start point
    glyphTransform.transform(result,result);
  result.x += b.getX();
  result.y += b.getY();
  return result;
}
origin: org.apache.xmlgraphics/batik-bridge

protected Point2D getEndPoint(CharacterInformation info){
  GVTGlyphVector it = info.layout.getGlyphVector();
  if (!it.isGlyphVisible(info.glyphIndexEnd))
    return null;
  Point2D b = it.getGlyphPosition(info.glyphIndexEnd);
  AffineTransform glyphTransform;
  glyphTransform = it.getGlyphTransform(info.glyphIndexEnd);
  GVTGlyphMetrics metrics = it.getGlyphMetrics(info.glyphIndexEnd);
  Point2D.Float result = new Point2D.Float
    (metrics.getHorizontalAdvance(), 0);
  if ( glyphTransform != null )
    glyphTransform.transform(result,result);
  result.x += b.getX();
  result.y += b.getY();
  return result;
}
origin: fr.avianey.apache-xmlgraphics/batik

protected Point2D getEndPoint(CharacterInformation info){
  GVTGlyphVector it = info.layout.getGlyphVector();
  if (!it.isGlyphVisible(info.glyphIndexEnd))
    return null;
  Point2D b = it.getGlyphPosition(info.glyphIndexEnd);
  AffineTransform glyphTransform;
  glyphTransform = it.getGlyphTransform(info.glyphIndexEnd);
  GVTGlyphMetrics metrics = it.getGlyphMetrics(info.glyphIndexEnd);
  Point2D.Float result = new Point2D.Float
    (metrics.getHorizontalAdvance(), 0);
  if ( glyphTransform != null )
    glyphTransform.transform(result,result);
  result.x += b.getX();
  result.y += b.getY();
  return result;
}
origin: apache/batik

protected Point2D getEndPoint(CharacterInformation info){
  GVTGlyphVector it = info.layout.getGlyphVector();
  if (!it.isGlyphVisible(info.glyphIndexEnd))
    return null;
  Point2D b = it.getGlyphPosition(info.glyphIndexEnd);
  AffineTransform glyphTransform;
  glyphTransform = it.getGlyphTransform(info.glyphIndexEnd);
  GVTGlyphMetrics metrics = it.getGlyphMetrics(info.glyphIndexEnd);
  Point2D.Float result = new Point2D.Float
    (metrics.getHorizontalAdvance(), 0);
  if ( glyphTransform != null )
    glyphTransform.transform(result,result);
  result.x += b.getX();
  result.y += b.getY();
  return result;
}
origin: fr.avianey.apache-xmlgraphics/batik

GVTGlyphVector gv = layout.getGlyphVector();
for (int g = 0; g < gv.getNumGlyphs(); g++) {
  Shape gBounds = gv.getGlyphLogicalBounds(g);
origin: org.apache.xmlgraphics/batik-bridge

GVTGlyphVector gv = layout.getGlyphVector();
for (int g = 0; g < gv.getNumGlyphs(); g++) {
  Shape gBounds = gv.getGlyphLogicalBounds(g);
origin: apache/batik

GVTGlyphVector gv = layout.getGlyphVector();
for (int g = 0; g < gv.getNumGlyphs(); g++) {
  Shape gBounds = gv.getGlyphLogicalBounds(g);
origin: fr.avianey.apache-xmlgraphics/batik

if (!rect.intersects(glBounds)) continue;
GVTGlyphVector gv = layout.getGlyphVector();
for (int g = 0; g < gv.getNumGlyphs(); g++) {
  Shape gBounds = gv.getGlyphLogicalBounds(g);
origin: org.apache.xmlgraphics/batik-bridge

if (!rect.intersects(glBounds)) continue;
GVTGlyphVector gv = layout.getGlyphVector();
for (int g = 0; g < gv.getNumGlyphs(); g++) {
  Shape gBounds = gv.getGlyphLogicalBounds(g);
origin: fr.avianey.apache-xmlgraphics/batik

GVTGlyphVector it = info.layout.getGlyphVector();
origin: apache/batik

if (!rect.intersects(glBounds)) continue;
GVTGlyphVector gv = layout.getGlyphVector();
for (int g = 0; g < gv.getNumGlyphs(); g++) {
  Shape gBounds = gv.getGlyphLogicalBounds(g);
origin: org.apache.xmlgraphics/batik-bridge

GVTGlyphVector it = info.layout.getGlyphVector();
origin: fr.avianey.apache-xmlgraphics/batik

GVTGlyphVector it = info.layout.getGlyphVector();
origin: apache/batik

GVTGlyphVector it = info.layout.getGlyphVector();
origin: apache/batik

GVTGlyphVector it = info.layout.getGlyphVector();
origin: org.apache.xmlgraphics/batik-bridge

GVTGlyphVector it = info.layout.getGlyphVector();
origin: org.apache.xmlgraphics/batik-bridge

CharacterInformation lastCharacterInRunInfo = null;
int chIndex = currentInfo.characterIndex+1;
GVTGlyphVector vector = currentInfo.layout.getGlyphVector();
float [] advs = currentInfo.layout.getGlyphAdvances();
boolean [] glyphTrack = new boolean[advs.length];
    newInfo = getCharacterInformation(list, firstChar, k, aci);
    if (newInfo.layout != currentInfo.layout) {
      vector = newInfo.layout.getGlyphVector();
      advs = newInfo.layout.getGlyphAdvances();
      glyphTrack = new boolean[advs.length];
    vector  = currentInfo.layout.getGlyphVector();
    advs    = currentInfo.layout.getGlyphAdvances();
    glyphTrack = new boolean[advs.length];
origin: apache/fop

GVTGlyphVector gv = layout.getGlyphVector();
if (!(gv.getFont() instanceof FOPGVTFont)) {
  assert gv.getFont() == null || gv.getFont() instanceof SVGGVTFont;
org.apache.batik.bridgeTextSpanLayoutgetGlyphVector

Javadoc

Return the glyph vector asociated to this layout.

Popular methods of TextSpanLayout

  • draw
    Paints the specified text layout using the specified Graphics2D and rendering context.
  • getAdvance2D
    Returns the current text position at the completion of glyph layout. (This is the position that shou
  • getGlyphAdvances
    Returns the advance between each glyph in text progression direction.
  • getGlyphCount
    Returns the number of glyphs in this layout.
  • getGlyphIndex
    Returns the glyph index of the glyph that has the specified char index.
  • getBounds2D
    Returns the rectangular bounds of the completed glyph layout. This includes stroking information, th
  • getCharacterCount
    Returns the number of chars represented by the glyphs within the specified range.
  • getComputedOrientationAngle
    Return the rotation angle applied to the character.
  • getDecorationOutline
    Returns the outline of the specified decorations on the glyphs, transformed by an AffineTransform.
  • getGlyphMetrics
    Returns the Metrics for a particular glyph.
  • getHighlightShape
    Returns a Shape which encloses the currently selected glyphs as specified by glyph indices begin and
  • getLineMetrics
    Returns the Line metrics for this text span.
  • getHighlightShape,
  • getLineMetrics,
  • getOutline,
  • getTextPathAdvance,
  • hasCharacterIndex,
  • hitTestChar,
  • isLeftToRight,
  • isOnATextPath,
  • isVertical

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ImageIO (javax.imageio)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now