org.icepdf.core.pobjects.graphics
Class ShadingType3Pattern

java.lang.Object
  extended by org.icepdf.core.pobjects.Dictionary
      extended by org.icepdf.core.pobjects.graphics.ShadingPattern
          extended by org.icepdf.core.pobjects.graphics.ShadingType3Pattern
All Implemented Interfaces:
Pattern

public class ShadingType3Pattern
extends ShadingPattern

Type 3 (radial) shading define a colour blend that varies between two circles. Shading of this type are commonly used to depict three-dimensional spheres and cones.

Since:
3.0
Author:
ICEsoft Technologies Inc.

Field Summary
protected  java.util.List coords
           
protected  java.util.List<java.lang.Number> domain
           
protected  java.util.List<java.lang.Boolean> extend
           
protected  Function[] function
           
protected  RadialGradientPaint radialGradientPaint
           
 
Fields inherited from class org.icepdf.core.pobjects.graphics.ShadingPattern
antiAlias, ANTIALIAS_KEY, background, BACKGROUND_KEY, bBox, BBOX_KEY, colorSpace, COLORSPACE_KEY, COORDS_KEY, DOMAIN_KEY, EXTEND_KEY, extGState, EXTGSTATE_KEY, FUNCTION_KEY, inited, matrix, MATRIX_KEY, PATTERN_TYPE_KEY, patternType, shading, SHADING_KEY, SHADING_PATTERN_TYPE_1, SHADING_PATTERN_TYPE_2, SHADING_PATTERN_TYPE_3, SHADING_PATTERN_TYPE_4, SHADING_PATTERN_TYPE_5, SHADING_PATTERN_TYPE_6, SHADING_TYPE_KEY, shadingType, type
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, FORM_TYPE_KEY, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY
 
Fields inherited from interface org.icepdf.core.pobjects.graphics.Pattern
PATTERN_TYPE_SHADING, PATTERN_TYPE_TILING, TYPE_VALUE
 
Constructor Summary
ShadingType3Pattern(Library library, java.util.HashMap entries)
           
 
Method Summary
 java.awt.Paint getPaint()
          Gets the Paint object need to fill a shape etc.
 void init()
          Initialized shading dictionary attributes.
 java.lang.String toSting()
           
 
Methods inherited from class org.icepdf.core.pobjects.graphics.ShadingPattern
getBackground, getBBox, getColorSpace, getExtGState, getMatrix, getPatternType, getShadingPattern, getShadingPattern, getShadingType, getType, isAntiAlias, isInited, setMatrix, setParentGraphicState, setShading, toString
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, isDeleted, isNew, setDeleted, setNew, setPObjectReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

function

protected Function[] function

domain

protected java.util.List<java.lang.Number> domain

coords

protected java.util.List coords

extend

protected java.util.List<java.lang.Boolean> extend

radialGradientPaint

protected RadialGradientPaint radialGradientPaint
Constructor Detail

ShadingType3Pattern

public ShadingType3Pattern(Library library,
                           java.util.HashMap entries)
Method Detail

init

public void init()
Description copied from class: ShadingPattern
Initialized shading dictionary attributes. Discrepancies between sh and scn tokens cause us to handle initialization at a later time.

Specified by:
init in interface Pattern
Specified by:
init in class ShadingPattern

getPaint

public java.awt.Paint getPaint()
Description copied from class: ShadingPattern
Gets the Paint object need to fill a shape etc. Each individual implementation will return a particular paint type.

Specified by:
getPaint in interface Pattern
Specified by:
getPaint in class ShadingPattern
Returns:
Paint type for fill.

toSting

public java.lang.String toSting()