org.icepdf.core.pobjects.graphics.commands
Class TextSpriteDrawCmd

java.lang.Object
  extended by org.icepdf.core.pobjects.graphics.commands.AbstractDrawCmd
      extended by org.icepdf.core.pobjects.graphics.commands.TextSpriteDrawCmd
All Implemented Interfaces:
DrawCmd

public class TextSpriteDrawCmd
extends AbstractDrawCmd

The TextSpriteDrawCmd stores an TextSprite instance and when executed the the TextSprite paint method is called the the respective glyphs are painted the graphics context.

Since:
5.0

Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.graphics.commands.AbstractDrawCmd
disableClipping, logger
 
Constructor Summary
TextSpriteDrawCmd(TextSprite textSprite)
           
 
Method Summary
 TextSprite getTextSprite()
           
 java.awt.Shape paintOperand(java.awt.Graphics2D g, Page parentPage, java.awt.Shape currentShape, java.awt.Shape clip, java.awt.geom.AffineTransform base, OptionalContentState optionalContentState, boolean paintAlpha, PaintTimer lastPaintTime)
          Called by the Shapes class to paint all DrawCmd implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextSpriteDrawCmd

public TextSpriteDrawCmd(TextSprite textSprite)
Method Detail

paintOperand

public java.awt.Shape paintOperand(java.awt.Graphics2D g,
                                   Page parentPage,
                                   java.awt.Shape currentShape,
                                   java.awt.Shape clip,
                                   java.awt.geom.AffineTransform base,
                                   OptionalContentState optionalContentState,
                                   boolean paintAlpha,
                                   PaintTimer lastPaintTime)
Description copied from interface: DrawCmd
Called by the Shapes class to paint all DrawCmd implementations.

Specified by:
paintOperand in interface DrawCmd
Specified by:
paintOperand in class AbstractDrawCmd
Parameters:
g - graphics context to paint this paint command to.
parentPage - parentPage reference used to notify page painters.
currentShape - current shape to draw.
clip - clip of parent which is the generally the page size.
base - base transform of the page.
optionalContentState - state of optional content visibility.
paintAlpha - enable/disable the alpha painting.
lastPaintTime - painTimer keeps track when a repaint should occur.
Returns:
resulting shape if currentShape has been altered, otherwise returns the currentShape. Current Shape is generally altered clip shape.

getTextSprite

public TextSprite getTextSprite()