aspose.pdf
Class UncolouredTilingPattern

java.lang.Object
  extended by aspose.pdf.PatternColorSpace
      extended by aspose.pdf.TilingPattern
          extended by aspose.pdf.UncolouredTilingPattern
Direct Known Subclasses:
CrossHatchPattern, HatchingPattern, PointsPattern

public class UncolouredTilingPattern
extends TilingPattern

Realizes uncoloured tiling pattern that is tiling pattern contains shapes or text or image with one common color or no color at all. In the later case a color of the tile will be inherited from current color state of document.

Typical usages are the following:

[Java] Pdf pdf = new Pdf(); Section sec = pdf.getSections().add(); Graph graph = new Graph(sec, 100, 700); sec.getParagraphs().add(graph); Rectangle rect = new Rectangle(0, 600, 200, 100); graph.getShapes().add(rect); int xStep = 8; int yStep = 8; Graph tile1 = new Graph(xStep, yStep); tile1.setPosX(0); tile1.setPosY(0); Line line = new Line(new float [] {xStep/2, yStep, xStep/2, 0}); line.getGraphInfo().setColor(null); line.getGraphInfo().setLineWidth(0.1f); tile1.getShapes().add(line); line = new Line(new float [] {xStep, yStep/2, 0, yStep/2}); line.getGraphInfo().setColor(null); line.getGraphInfo().setLineWidth(0.1f); tile1.getShapes().add(line); pdf.save(....);


Field Summary
 
Fields inherited from class aspose.pdf.PatternColorSpace
patternType, rotationAngle, skewX, skewY, xPos, xScale, yPos, yScale
 
Constructor Summary
UncolouredTilingPattern()
          Initializes a new instance of the UncolouredTilingPattern
UncolouredTilingPattern(Color color)
          Initializes a new instance of the UncolouredTilingPattern with specified Color object.
 
Method Summary
 java.lang.Object clone()
          Copies all fields.
 java.lang.Object completeClone()
          Copies all fields.
 Color getColor()
          Returns a color of tile.
 void setColor(Color color)
          Sets a color of tile.
 
Methods inherited from class aspose.pdf.TilingPattern
completeCopyTo, copyTo, getHeight, getPaintType, getTile, getTilingType, getWidth, getxStep, getyStep, setHeight, setPaintType, setTile, setTilingType, setWidth, setxStep, setyStep
 
Methods inherited from class aspose.pdf.PatternColorSpace
copyTo, getPatternIndex, getPatternType, getRotationAngle, getSkewX, getSkewY, getxPos, getxScale, getyPos, getyScale, setPatternIndex, setPatternType, setRotationAngle, setSkewX, setSkewY, setxPos, setxScale, setyPos, setyScale
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UncolouredTilingPattern

public UncolouredTilingPattern()
Initializes a new instance of the UncolouredTilingPattern


UncolouredTilingPattern

public UncolouredTilingPattern(Color color)
Initializes a new instance of the UncolouredTilingPattern with specified Color object.

Method Detail

getColor

public Color getColor()
Returns a color of tile.


setColor

public void setColor(Color color)
Sets a color of tile.


completeClone

public java.lang.Object completeClone()
Copies all fields. Tile is copied by value.


clone

public java.lang.Object clone()
Copies all fields. Tile is copied by reference. Shell be used for patterns that use one tile but different colors or matrix or steps or width, height.

Specified by:
clone in class PatternColorSpace