org.icepdf.core.pobjects.graphics.commands
Class AbstractDrawCmd
java.lang.Object
org.icepdf.core.pobjects.graphics.commands.AbstractDrawCmd
- All Implemented Interfaces:
- DrawCmd
- Direct Known Subclasses:
- AlphaDrawCmd, ClipDrawCmd, ColorDrawCmd, DrawDrawCmd, FillDrawCmd, FormDrawCmd, GlyphOutlineDrawCmd, GraphicsStateCmd, ImageDrawCmd, NoClipDrawCmd, OCGEndDrawCmd, OCGStartDrawCmd, PaintDrawCmd, ShapesDrawCmd, StrokeDrawCmd, TextSpriteDrawCmd, TextTransformDrawCmd, TilingPatternDrawCmd, TransformDrawCmd
public abstract class AbstractDrawCmd
- extends java.lang.Object
- implements DrawCmd
AbstractDrawCmd provide common implementation details of any DrawCmd
implementation. Draw/paint specific system properties are currently handled
by this class.
- org.icepdf.core.paint.disableClipping - disable clipping draw commands.
- org.icepdf.core.paint.disableAlpha - disable alpha draw commands.
- Since:
- 5.0
|
Method Summary |
abstract 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 paintTimer)
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 |
logger
protected static final java.util.logging.Logger logger
disableClipping
protected static boolean disableClipping
AbstractDrawCmd
public AbstractDrawCmd()
paintOperand
public abstract 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 paintTimer)
- Description copied from interface:
DrawCmd
- Called by the Shapes class to paint all DrawCmd implementations.
- Specified by:
paintOperand in interface DrawCmd
- 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.paintTimer - 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.