org.icepdf.core.pobjects.graphics
Class ShadingType2Pattern

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.ShadingType2Pattern
All Implemented Interfaces:
Pattern

public class ShadingType2Pattern
extends ShadingPattern

Type 2 (axial) shadings define colour blend that varies along a linear axis between two endpoints and extends indefinitely perpendicular to the that axis.

Since:
2.7
Author:
ICEsoft Technologies Inc.

Field Summary
protected  java.util.Vector coords
           
protected  java.util.Vector<java.lang.Float> domain
           
protected  java.util.Vector<java.lang.Boolean> extend
           
protected  Function function
           
 
Fields inherited from class org.icepdf.core.pobjects.graphics.ShadingPattern
antiAlias, background, bBox, colorSpace, extGState, inited, matrix, patternType, shading, SHADING_PATTERN_TYPE_1, SHADING_PATTERN_TYPE_2, SHADING_PATTERN_TYPE_3, SHADING_PATTERN_TYPE_4, SHADING_PATTERN_TYPE_5, SHADING_PATTERN_TYPE_6, shadingType, type
 
Fields inherited from class org.icepdf.core.pobjects.Dictionary
entries, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY
 
Fields inherited from interface org.icepdf.core.pobjects.graphics.Pattern
PATTERN_TYPE_SHADING, PATTERN_TYPE_TILING
 
Constructor Summary
ShadingType2Pattern(Library library, java.util.Hashtable 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 toString()
          Returns a summary of the dictionary entries.
 
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
 
Methods inherited from class org.icepdf.core.pobjects.Dictionary
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, 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.Vector<java.lang.Float> domain

coords

protected java.util.Vector coords

extend

protected java.util.Vector<java.lang.Boolean> extend
Constructor Detail

ShadingType2Pattern

public ShadingType2Pattern(Library library,
                           java.util.Hashtable 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.

toString

public java.lang.String toString()
Description copied from class: Dictionary
Returns a summary of the dictionary entries.

Overrides:
toString in class ShadingPattern
Returns:
dictionary values.