com.aspose.pdf.drawing

Class Graph

  • All Implemented Interfaces:
    com.aspose.ms.System.ICloneable


    public final class Graph
    extends BaseParagraph

    Represents graph - graphics generator paragraph.

    • Constructor Detail

      • Graph

        public Graph()

        For Internal usage only

      • Graph

        public Graph(float width,
                     float height)

        Initializes a new instance of the Graph class.

        Parameters:
        width - The width of the graph.
        height - The height of the graph.
    • Method Detail

      • getGraphInfo

        public GraphInfo getGraphInfo()

        Gets a GraphInfo object that indicates the graph info,such as color, line width,etc.

        Returns:
        GraphInfo object
      • setGraphInfo

        public void setGraphInfo(GraphInfo value)

        Gets or sets a GraphInfo object that indicates the graph info,such as color, line width,etc.

        Parameters:
        value - GraphInfo object
      • getBorder

        public BorderInfo getBorder()

        Gets the border.

        Returns:
        BorderInfo element
      • setBorder

        public void setBorder(BorderInfo value)

        Sets the border.

        Parameters:
        value - BorderInfo element
      • isChangePosition

        public boolean isChangePosition()

        Gets change current position after process paragraph.(default true)

        Returns:
        boolean value
      • setChangePosition

        public void setChangePosition(boolean value)

        Sets change current position after process paragraph.(default true)

        Parameters:
        value - boolean value
      • getLeft

        public double getLeft()

        Gets table left coordinate.

        Returns:
        table left coordinate.
      • setLeft

        public void setLeft(double value)

        Sets table left coordinate.

        Parameters:
        value - table left coordinate.
      • getTop

        public double getTop()

        Gets the table top coordinate.

        Returns:
        the table top coordinate.
      • setTop

        public void setTop(double value)

        Sets the table top coordinate.

        Parameters:
        value - the table top coordinate.
      • getShapes

        public List<Shape> getShapes()

        Gets a Shapes collection that indicates all shapes in the graph.

        Returns:
        List of Shape elements
      • setShapes

        public void setShapes(List<Shape> value)

        Sets a Shapes collection that indicates all shapes in the graph.

        Parameters:
        value - List of Shape elements
      • getTitle

        public TextFragment getTitle()

        Gets string value that indicates the title of the graph.

        Returns:
        title of the graph.
      • setTitle

        public void setTitle(TextFragment value)

        Sets string value that indicates the title of the graph.

        Parameters:
        value - title of the graph.
      • getWidth

        public double getWidth()

        Gets float value that indicates the graph width. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphWidth="10cm" or GraphWidth="5inch".

        Returns:
        float value that indicates the graph width.
      • setWidth

        public void setWidth(double value)

        Sets float value that indicates the graph width. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphWidth="10cm" or GraphWidth="5inch".

        Parameters:
        value - float value that indicates the graph width.
      • getHeight

        public double getHeight()

        Gets float value that indicates the graph height. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphHeight="10cm" or GraphHeight="5inch".

        Returns:
        value that indicates the graph height.
      • setHeight

        public void setHeight(double value)

        Sets float value that indicates the graph height. The unit is point. In XML,the default unit is point,but cm and inch are also supported. For example,GraphHeight="10cm" or GraphHeight="5inch".

        Parameters:
        value - that indicates the graph height.
      • deepClone

        public Object deepClone()

        Clone the graph.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Overrides:
        deepClone in class BaseParagraph
        Returns:
        The cloned object