aspose.pdf
Class CrossHatchPattern

java.lang.Object
  extended by aspose.pdf.PatternColorSpace
      extended by aspose.pdf.TilingPattern
          extended by aspose.pdf.UncolouredTilingPattern
              extended by aspose.pdf.CrossHatchPattern

public class CrossHatchPattern
extends UncolouredTilingPattern

Realizes uncoloured cross-hatch pattern (lines intersected under a right angle).

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); CrossHatchPattern pattern = new CrossHatchPattern(10, 45); Color fillColor = new Color(); fillColor.setPatternColorSpace(pattern); rect.getGraphInfo().setFillColor(fillColor); rect.getGraphInfo().setIsFilled(true); pdf.save(....);


Field Summary
 
Fields inherited from class aspose.pdf.UncolouredTilingPattern
color
 
Fields inherited from class aspose.pdf.TilingPattern
height, paintType, tile, tilingType, width, xStep, yStep
 
Fields inherited from class aspose.pdf.PatternColorSpace
patternType, rotationAngle, skewX, skewY, xPos, xScale, yPos, yScale
 
Constructor Summary
CrossHatchPattern()
          Initializes a new instance of the CrossHatchPattern
CrossHatchPattern(float spacing)
          Initializes a new instance of the CrossHatchPattern with value of spacing between lines.
CrossHatchPattern(float spacing, float angle)
          Initializes a new instance of the CrossHatchPattern with value of spacing between lines and a rotation angle of lines.
CrossHatchPattern(float spacing, float angle, float lineWidth)
          Initializes a new instance of the CrossHatchPattern with value of spacing between lines, line width and a rotation angle of lines.
 
Method Summary
 float getLineWidth()
          Returns a width of the lines.
 float getSpacing()
          Returns a distance between lines.
 
Methods inherited from class aspose.pdf.UncolouredTilingPattern
clone, completeClone, getColor, setColor
 
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

CrossHatchPattern

public CrossHatchPattern()
Initializes a new instance of the CrossHatchPattern


CrossHatchPattern

public CrossHatchPattern(float spacing)
Initializes a new instance of the CrossHatchPattern with value of spacing between lines.


CrossHatchPattern

public CrossHatchPattern(float spacing,
                         float angle)
Initializes a new instance of the CrossHatchPattern with value of spacing between lines and a rotation angle of lines.


CrossHatchPattern

public CrossHatchPattern(float spacing,
                         float angle,
                         float lineWidth)
Initializes a new instance of the CrossHatchPattern with value of spacing between lines, line width and a rotation angle of lines.

Method Detail

getSpacing

public float getSpacing()
Returns a distance between lines.


getLineWidth

public float getLineWidth()
Returns a width of the lines.