aspose.pdf
Class GraphInfo

java.lang.Object
  extended by aspose.pdf.GraphInfo
All Implemented Interfaces:
java.lang.Cloneable

public class GraphInfo
extends java.lang.Object
implements java.lang.Cloneable

Encapsulates info for a paragraph.

Typical usages are the following:

[Java] Pdf pdf1 = new Pdf(); Section sec1 = pdf1.getSections().add(); Graph graph1 = new Graph(sec1,100,400); sec1.getParagraphs().add(graph1); float[] posArr = new float[]{100,0,300,0}; Line l1 = new Line(graph1,posArr); l1.getGraphInfo().setColor(new aspose.pdf.Color("Red")); l1.getGraphInfo().setLineWidth(3); l1.getGraphInfo().setLineCapMode(1); graph1.getShapes().add(l1); posArr = new float[]{100,50,300,50}; Line l2 = new Line(graph1,posArr); l2.getGraphInfo().setColor(new aspose.pdf.Color((short)0,(short)128,(short)128)); l2.getGraphInfo().setDashLengthInBlack(2); ll2.getGraphInfo().setDashLengthInWhite(1); graph1.getShapes().add(l2); Circle circle1 = new Circle(graph1,200,50,30); graph1.getShapes().add(circle1); circle1.getGraphInfo().setFillColor(new aspose.pdf.Color("Green")); circle1.getGraphInfo().setIsFilled(true); pdf1.Save(...); [XML] <?xml version="1.0" encoding="utf-8" ?> <Pdf xmlns="Aspose.Pdf"> <Section> <Graph Height="100" Width="400"> <Line Color="Red" LineWidth="3" LineCapMode="1" Position="100 0 300 0" /> <Line Color="rgb 0 128 128" Dash="2 1" Position="100 50 300 50" /> <Circle CenterPosition="200 50" Radius="30" FillColor="Green" IsFilled="true" /> </Graph> </Section> </Pdf>


Constructor Summary
GraphInfo()
          Constructor - initializes a new instance of the GraphInfo class.
 
Method Summary
 java.lang.Object clone()
          Clones a new GraphInfo object.
 BorderStyle getBorderStyle()
          Gets a BorderStyle object that indicates the graph's border style.
 Color getColor()
          Gets a Color object that indicates the color of the graph.
 float getDashLengthInBlack()
          Gets a float value that indicates the dash length in black.
 float getDashLengthInWhite()
          Gets a float value that indicates the dash length in white.The unit is point.
 Color getFillColor()
          Gets a Color object that indicates the fill color of the graph.
 java.lang.String getFillRule()
          Gets a string that indicates the graph fill rule.
 int getFlatness()
          Gets an positive int value that indicates the flatness.
 BorderInfo getGraphBorder()
          Gets a BorderInfo object that indicates the border information of the graph.
 boolean getIsAddedArrowAtEnd()
          Gets a boolean value that indicates whether add arrow at the end of line.
 boolean getIsAddedArrowAtStart()
          Gets a boolean value that indicates whether add arrow at the start of line.
 boolean getIsFilled()
          Gets a boolean value that indicates whether this shape is filled.
 boolean getIsStroked()
          Gets a boolean value that indicates whether this shape is stroked.
 int getLineCapMode()
          Gets an int value between 0 and 2 that indicates the line cap mode.
 int getLineJoinMode()
          Gets an int value between 0 and 2 that indicates the line join mode.
 float getLineWidth()
          Gets a float value that indicates the line width of the graph.
 int getMiterLimit()
          Gets an int value greater than or equal to 1 that indicates the miter limit.
 float getNewOriginX()
          Gets a float value that indicates the x-coordinate of the new origin when transforming a coordinate system.
 float getNewOriginY()
          Gets a float value that indicates the y-coordinate of the new origin when transforming a coordinate system.
 PolyDashArray getPolyDashArr()
          Get polyDash array
 float getRotationAngle()
          Gets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.
 float getScalingRateX()
          Gets a float value that indicates the scaling rate of the x-coordinate when transforming a coordinate system.
 float getScalingRateY()
          Gets a float value that indicates the scaling rate of the y-coordinate when transforming a coordinate system.
 float getSkewAngleX()
          Gets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system.
 float getSkewAngleY()
          Gets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system.
 void setBorderStyle(BorderStyle value)
          Sets a BorderStyle object that indicates the graph's border style.
 void setColor(Color value)
          Sets a Color object that indicates the color of the graph.
 void setDashLengthInBlack(float value)
          Sets a float value that indicates the dash length in black.The unit is point.
 void setDashLengthInWhite(float value)
          Sets a float value that indicates the dash length in white.The unit is point.
 void setFillColor(Color value)
          Sets a Color object that indicates the fill color of the graph.
 void setFillRule(java.lang.String value)
          Sets a string that indicates the graph fill rule.
 void setFlatness(int value)
          Sets an positive int value that indicates the flatness.
 void setGraphBorder(BorderInfo value)
          Sets a BorderInfo object. that indicates the border information of the graph.
 void setIsAddedArrowAtEnd(boolean value)
          Sets a boolean value that indicates whether add arrow at the end of line.
 void setIsAddedArrowAtStart(boolean value)
          Sets a boolean value that indicates whether add arrow at the start of line.
 void setIsFilled(boolean value)
          Sets a boolean value that indicates whether this shape is filled.
 void setIsStroked(boolean value)
          Sets a boolean value that indicates whether this shape is stroked.
 void setLineCapMode(int value)
          Sets an int value between 0 and 2 that indicates the line cap mode.
 void setLineJoinMode(int value)
          Sets an int value between 0 and 2 that indicates the line join mode.
 void setLineWidth(float value)
          Sets a float value that indicates the line width of the graph.
 void setMiterLimit(int value)
          Sets an int value greater than or equal to 1 that indicates the miter limit.
 void setNewOriginX(float value)
          Sets a float value that indicates the x-coordinate of the new origin when transforming a coordinate system.
 void setNewOriginY(float value)
          Sets a float value that indicates the y-coordinate of the new origin when transforming a coordinate system.
 void setPolyDash(java.lang.String dash)
          Sets poly dash.
 void setPolyDashArr(PolyDashArray value)
          Set polyDash array
 void setRotationAngle(float value)
          Sets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.
 void setScalingRateX(float value)
          Sets a float value that indicates the scaling rate of the x-coordinate when transforming a coordinate system.
 void setScalingRateY(float value)
          Sets a float value that indicates the scaling rate of the y-coordinate when transforming a coordinate system.
 void setSkewAngleX(float value)
          Sets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system.
 void setSkewAngleY(float value)
          Sets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphInfo

public GraphInfo()
Constructor - initializes a new instance of the GraphInfo class.

Method Detail

getPolyDashArr

public PolyDashArray getPolyDashArr()
Get polyDash array


setPolyDashArr

public void setPolyDashArr(PolyDashArray value)
Set polyDash array

Parameters:
value -

getLineWidth

public float getLineWidth()
Gets a float value that indicates the line width of the graph.

Returns:
A float value.

setLineWidth

public void setLineWidth(float value)
Sets a float value that indicates the line width of the graph.

Parameters:
value - A float value.

getGraphBorder

public BorderInfo getGraphBorder()
Gets a BorderInfo object that indicates the border information of the graph.

Returns:
A BorderInfo object.

setGraphBorder

public void setGraphBorder(BorderInfo value)
Sets a BorderInfo object. that indicates the border information of the graph.

Parameters:
value - A BorderInfo object.

getColor

public Color getColor()
Gets a Color object that indicates the color of the graph.

Returns:
A Color object.

setColor

public void setColor(Color value)
Sets a Color object that indicates the color of the graph.

Parameters:
value - a Color object.

getFillColor

public Color getFillColor()
Gets a Color object that indicates the fill color of the graph.

Returns:
A Color object.

setFillColor

public void setFillColor(Color value)
Sets a Color object that indicates the fill color of the graph.

Parameters:
value - A Color object.

getDashLengthInBlack

public float getDashLengthInBlack()
Gets a float value that indicates the dash length in black. The unit is point. Refer to the programmer's guide for more info.

Returns:
A float value.

setDashLengthInBlack

public void setDashLengthInBlack(float value)
Sets a float value that indicates the dash length in black.The unit is point. Refer to the programmer's guide for more info.

Parameters:
value - A float value.

getDashLengthInWhite

public float getDashLengthInWhite()
Gets a float value that indicates the dash length in white.The unit is point. Refer to the programmer's guide for more info.

Returns:
A float value.

setDashLengthInWhite

public void setDashLengthInWhite(float value)
Sets a float value that indicates the dash length in white.The unit is point. Refer to the programmer's guide for more info.

Parameters:
value - A float value.

getIsFilled

public boolean getIsFilled()
Gets a boolean value that indicates whether this shape is filled.

Returns:
A boolean value.

setIsFilled

public void setIsFilled(boolean value)
Sets a boolean value that indicates whether this shape is filled.

Parameters:
value - A boolean value.

getIsStroked

public boolean getIsStroked()
Gets a boolean value that indicates whether this shape is stroked.

Returns:
A boolean value.

setIsStroked

public void setIsStroked(boolean value)
Sets a boolean value that indicates whether this shape is stroked.

Parameters:
value - A boolean value.

getIsAddedArrowAtStart

public boolean getIsAddedArrowAtStart()
Gets a boolean value that indicates whether add arrow at the start of line.

Returns:
A boolean value.

setIsAddedArrowAtStart

public void setIsAddedArrowAtStart(boolean value)
Sets a boolean value that indicates whether add arrow at the start of line.

Parameters:
value - A boolean value.

getIsAddedArrowAtEnd

public boolean getIsAddedArrowAtEnd()
Gets a boolean value that indicates whether add arrow at the end of line.

Returns:
A boolean value.

setIsAddedArrowAtEnd

public void setIsAddedArrowAtEnd(boolean value)
Sets a boolean value that indicates whether add arrow at the end of line.

Parameters:
value - A boolean value.

getLineJoinMode

public int getLineJoinMode()
Gets an int value between 0 and 2 that indicates the line join mode. Refer to the programmer's guide for more info.

Returns:
An int value.

setLineJoinMode

public void setLineJoinMode(int value)
Sets an int value between 0 and 2 that indicates the line join mode. Refer to the programmer's guide for more info.

Parameters:
value - An int value.

getLineCapMode

public int getLineCapMode()
Gets an int value between 0 and 2 that indicates the line cap mode. Refer to the programmer's guide for more info.

Returns:
An int value.

setLineCapMode

public void setLineCapMode(int value)
Sets an int value between 0 and 2 that indicates the line cap mode. Refer to the programmer's guide for more info.

Parameters:
value - An int value.

getFlatness

public int getFlatness()
Gets an positive int value that indicates the flatness. Refer to the programmer's guide for more info.

Returns:
An int value.

setFlatness

public void setFlatness(int value)
Sets an positive int value that indicates the flatness. Refer to the programmer's guide for more info.

Parameters:
value - An int value.

getMiterLimit

public int getMiterLimit()
Gets an int value greater than or equal to 1 that indicates the miter limit. Refer to the programmer's guide for more info.

Returns:
An int value.

setMiterLimit

public void setMiterLimit(int value)
Sets an int value greater than or equal to 1 that indicates the miter limit. Refer to the programmer's guide for more info.

Parameters:
value - An int value.

getNewOriginX

public float getNewOriginX()
Gets a float value that indicates the x-coordinate of the new origin when transforming a coordinate system.

Returns:
A float value.

setNewOriginX

public void setNewOriginX(float value)
Sets a float value that indicates the x-coordinate of the new origin when transforming a coordinate system.

Parameters:
value - A float value.

getNewOriginY

public float getNewOriginY()
Gets a float value that indicates the y-coordinate of the new origin when transforming a coordinate system.

Returns:
A float value.

setNewOriginY

public void setNewOriginY(float value)
Sets a float value that indicates the y-coordinate of the new origin when transforming a coordinate system.

Parameters:
value - A float value.

getRotationAngle

public float getRotationAngle()
Gets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.

Returns:
A float value.

setRotationAngle

public void setRotationAngle(float value)
Sets a float value that indicates the rotation angle of the coordinate system when transforming a coordinate system.

Parameters:
value - A float value.

getScalingRateX

public float getScalingRateX()
Gets a float value that indicates the scaling rate of the x-coordinate when transforming a coordinate system.

Returns:
A float value.

setScalingRateX

public void setScalingRateX(float value)
Sets a float value that indicates the scaling rate of the x-coordinate when transforming a coordinate system.

Parameters:
value - A float value.

getScalingRateY

public float getScalingRateY()
Gets a float value that indicates the scaling rate of the y-coordinate when transforming a coordinate system.

Returns:
A float value.

setScalingRateY

public void setScalingRateY(float value)
Sets a float value that indicates the scaling rate of the y-coordinate when transforming a coordinate system.

Parameters:
value - A float value.

getSkewAngleX

public float getSkewAngleX()
Gets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system.

Returns:
A float value.

setSkewAngleX

public void setSkewAngleX(float value)
Sets a float value that indicates the skew angle of the x-coordinate when transforming a coordinate system.

Parameters:
value - A float value.

getSkewAngleY

public float getSkewAngleY()
Gets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system.

Returns:
A float value.

setSkewAngleY

public void setSkewAngleY(float value)
Sets a float value that indicates the skew angle of the y-coordinate when transforming a coordinate system.

Parameters:
value - A float value.

getFillRule

public java.lang.String getFillRule()
Gets a string that indicates the graph fill rule. It can be "winding" or "evenodd". Refer to the programmer's guide for more info.

Returns:
A String value.

setFillRule

public void setFillRule(java.lang.String value)
Sets a string that indicates the graph fill rule. It can be "winding" or "evenodd". Refer to the programmer's guide for more info.

Parameters:
value - A String value.

clone

public java.lang.Object clone()
Clones a new GraphInfo object.

Overrides:
clone in class java.lang.Object
Returns:
The new object.

setPolyDash

public void setPolyDash(java.lang.String dash)
Sets poly dash.

Parameters:
dash - The string contains dash data array, the length of data array should be less than 8, separated by blank.

getBorderStyle

public BorderStyle getBorderStyle()
Gets a BorderStyle object that indicates the graph's border style.

Returns:
A BorderStyle object.

setBorderStyle

public void setBorderStyle(BorderStyle value)
Sets a BorderStyle object that indicates the graph's border style.

Parameters:
value - A BorderStyle object.