org.icepdf.core.pobjects.graphics
Class ShadingType1Pattern

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

public class ShadingType1Pattern
extends ShadingPattern

Currently not support, type 1 algorithm defines a colour for each coordinate in the space which will be difficult to calculate efficiently. However the background attribute could be used as a fill colour in some circumstances. Once we get a few test cases we can give it a try.

Since:
3.0
Author:
ICEsoft Technologies Inc.

Field Summary
protected  java.util.Vector domain
           
protected  Function function
           
protected  java.util.Vector matrix
           
 
Fields inherited from class org.icepdf.core.pobjects.graphics.ShadingPattern
antiAlias, background, bBox, colorSpace, extGState, inited, 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
ShadingType1Pattern(Library library, java.util.Hashtable entries)
           
 
Method Summary
 java.awt.Paint getPaint()
          Not implemented
 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, 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

domain

protected java.util.Vector domain

matrix

protected java.util.Vector matrix

function

protected Function function
Constructor Detail

ShadingType1Pattern

public ShadingType1Pattern(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()
Not implemented

Specified by:
getPaint in interface Pattern
Specified by:
getPaint in class ShadingPattern
Returns:
will always return null;

toSting

public java.lang.String toSting()