aspose.pdf
Class PointsPattern

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

public class PointsPattern
extends UncolouredTilingPattern

Realizes uncoloured pattern represented by points followed one by one in chess order.

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); PointsPattern pattern = new PointsPattern(10, 0.1f); 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
PointsPattern()
          Initializes a new instance of the PointsPattern
PointsPattern(float spacing)
          Initializes a new instance of the PointsPattern with spacing value
PointsPattern(float spacing, float radius)
          Initializes a new instance of the PointsPattern with spacing value and a radius of point.
 
Method Summary
 float getRadius()
          Returns a radius of point.
 float getSpacing()
          Returns a distance between points.
 
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

PointsPattern

public PointsPattern()
Initializes a new instance of the PointsPattern


PointsPattern

public PointsPattern(float spacing)
Initializes a new instance of the PointsPattern with spacing value


PointsPattern

public PointsPattern(float spacing,
                     float radius)
Initializes a new instance of the PointsPattern with spacing value and a radius of point.

Parameters:
spacing -
radius - - radius of point. Range 0 - spacing/2. If radius is greater than spacing/2 it will be spacing/2.
Method Detail

getSpacing

public float getSpacing()
Returns a distance between points.


getRadius

public float getRadius()
Returns a radius of point.