Methods Summary |
---|
public int | countOfAllChildren()Count of all children and their childrens children.
return 1;
|
public org.apache.poi.hssf.usermodel.HSSFAnchor | getAnchor()
return anchor;
|
public int | getFillColor()The color used to fill this shape.
return fillColor;
|
public int | getLineStyle()
return lineStyle;
|
public int | getLineStyleColor()The color applied to the lines of this shape.
return lineStyleColor;
|
public int | getLineWidth()
return lineWidth;
|
public org.apache.poi.hssf.usermodel.HSSFShape | getParent()Gets the parent shape.
return parent;
|
public boolean | isNoFill()
return noFill;
|
public void | setAnchor(org.apache.poi.hssf.usermodel.HSSFAnchor anchor)Sets a particular anchor. A top-level shape must have an anchor of
HSSFClientAnchor. A child anchor must have an anchor of HSSFChildAnchor
if ( parent == null )
{
if ( anchor instanceof HSSFChildAnchor )
throw new IllegalArgumentException( "Must use client anchors for shapes directly attached to sheet." );
}
else
{
if ( anchor instanceof HSSFClientAnchor )
throw new IllegalArgumentException( "Must use child anchors for shapes attached to groups." );
}
this.anchor = anchor;
|
public void | setFillColor(int red, int green, int blue)The color used to fill this shape.
this.fillColor = ((blue) << 16) | ((green) << 8) | red;
|
public void | setFillColor(int fillColor)The color used to fill this shape.
this.fillColor = fillColor;
|
public void | setLineStyle(int lineStyle)Sets the line style.
this.lineStyle = lineStyle;
|
public void | setLineStyleColor(int lineStyleColor)The color applied to the lines of this shape.
this.lineStyleColor = lineStyleColor;
|
public void | setLineStyleColor(int red, int green, int blue)The color applied to the lines of this shape.
this.lineStyleColor = ((blue) << 16) | ((green) << 8) | red;
|
public void | setLineWidth(int lineWidth)Sets the width of the line. 12700 = 1 pt.
this.lineWidth = lineWidth;
|
public void | setNoFill(boolean noFill)Sets whether this shape is filled or transparent.
this.noFill = noFill;
|