aspose.pdf
Class PatternColorSpace

java.lang.Object
  extended by aspose.pdf.PatternColorSpace
Direct Known Subclasses:
TilingPattern

public abstract class PatternColorSpace
extends java.lang.Object

Abstract class for all pattern fills.


Field Summary
protected  PatternType patternType
          Type of pattern: tiling or shading
protected  float rotationAngle
          Rotation angle
protected  float skewX
          The skew angle of the x-coordinate when transforming a coordinate system.
protected  float skewY
          The skew angle of the y-coordinate when transforming a coordinate system.
protected  float xPos
          Translation in x axis.
protected  float xScale
          Scale in x axis.
protected  float yPos
          Translation in y axis.
protected  float yScale
          Scale in y axis.
 
Constructor Summary
PatternColorSpace(PatternType patternType)
          Initializes a new instance of the PatternColorSpace class with PatternType.
 
Method Summary
abstract  java.lang.Object clone()
           
 void copyTo(PatternColorSpace pt)
           
 int getPatternIndex()
          Returns an index of pattern data in DocumentResource's patterns array.
 PatternType getPatternType()
          Returns a pattern type: tiling or shading.
 float getRotationAngle()
          Returns rotation angle of the tile content relative to tile box
 float getSkewX()
          Returns skew of x axis of the tile content relative to tile box
 float getSkewY()
          Returns skew of y axis of the tile content relative to tile box
 float getxPos()
          Returns translation in x axis of the tile content relative to tile box
 float getxScale()
          Returns scale in x axis of the tile content relative to tile box
 float getyPos()
          Returns translation in y axis of the tile content relative to tile box
 float getyScale()
          Returns scale in y axis of the tile content relative to tile box
 void setPatternIndex(int patternIndex)
          Sets an index of pattern data in DocumentResource's patterns array.
 void setPatternType(PatternType patternType)
          Sets a pattern type: tiling or shading.
 void setRotationAngle(float rotationAngle)
          Sets rotation angle of the tile content relative to tile box
 void setSkewX(float skewX)
          Sets skew of x axis of the tile content relative to tile box
 void setSkewY(float skewY)
          Sets skew of y axis of the tile content relative to tile box
 void setxPos(float xPos)
          Sets translation in x axis of the tile content relative to tile box
 void setxScale(float xScale)
          Sets scale in x axis of the tile content relative to tile box
 void setyPos(float yPos)
          Sets translation in y axis of the tile content relative to tile box
 void setyScale(float yScale)
          Sets scale in y axis of the tile content relative to tile box
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

patternType

protected PatternType patternType
Type of pattern: tiling or shading


xPos

protected float xPos
Translation in x axis.


yPos

protected float yPos
Translation in y axis.


xScale

protected float xScale
Scale in x axis.


yScale

protected float yScale
Scale in y axis.


rotationAngle

protected float rotationAngle
Rotation angle


skewX

protected float skewX
The skew angle of the x-coordinate when transforming a coordinate system.


skewY

protected float skewY
The skew angle of the y-coordinate when transforming a coordinate system.

Constructor Detail

PatternColorSpace

public PatternColorSpace(PatternType patternType)
Initializes a new instance of the PatternColorSpace class with PatternType.

Method Detail

clone

public abstract java.lang.Object clone()
Overrides:
clone in class java.lang.Object

copyTo

public void copyTo(PatternColorSpace pt)

getPatternIndex

public int getPatternIndex()
Returns an index of pattern data in DocumentResource's patterns array.


setPatternIndex

public void setPatternIndex(int patternIndex)
Sets an index of pattern data in DocumentResource's patterns array.


getPatternType

public PatternType getPatternType()
Returns a pattern type: tiling or shading.


setPatternType

public void setPatternType(PatternType patternType)
Sets a pattern type: tiling or shading.


getxPos

public float getxPos()
Returns translation in x axis of the tile content relative to tile box


setxPos

public void setxPos(float xPos)
Sets translation in x axis of the tile content relative to tile box


getyPos

public float getyPos()
Returns translation in y axis of the tile content relative to tile box


setyPos

public void setyPos(float yPos)
Sets translation in y axis of the tile content relative to tile box


getxScale

public float getxScale()
Returns scale in x axis of the tile content relative to tile box


setxScale

public void setxScale(float xScale)
Sets scale in x axis of the tile content relative to tile box


getyScale

public float getyScale()
Returns scale in y axis of the tile content relative to tile box


setyScale

public void setyScale(float yScale)
Sets scale in y axis of the tile content relative to tile box


getRotationAngle

public float getRotationAngle()
Returns rotation angle of the tile content relative to tile box


setRotationAngle

public void setRotationAngle(float rotationAngle)
Sets rotation angle of the tile content relative to tile box


getSkewX

public float getSkewX()
Returns skew of x axis of the tile content relative to tile box


setSkewX

public void setSkewX(float skewX)
Sets skew of x axis of the tile content relative to tile box


getSkewY

public float getSkewY()
Returns skew of y axis of the tile content relative to tile box


setSkewY

public void setSkewY(float skewY)
Sets skew of y axis of the tile content relative to tile box