public abstract class HSSFShape extends Object
Modifier and Type | Field and Description |
---|---|
(package private) HSSFAnchor |
anchor |
(package private) int |
fillColor |
(package private) int |
lineStyle |
static int |
LINESTYLE_DASHDOTDOTSYS |
static int |
LINESTYLE_DASHDOTGEL |
static int |
LINESTYLE_DASHDOTSYS |
static int |
LINESTYLE_DASHGEL |
static int |
LINESTYLE_DASHSYS |
static int |
LINESTYLE_DOTGEL |
static int |
LINESTYLE_DOTSYS |
static int |
LINESTYLE_LONGDASHDOTDOTGEL |
static int |
LINESTYLE_LONGDASHDOTGEL |
static int |
LINESTYLE_LONGDASHGEL |
static int |
LINESTYLE_NONE |
static int |
LINESTYLE_SOLID |
(package private) int |
lineStyleColor |
(package private) int |
lineWidth |
static int |
LINEWIDTH_DEFAULT |
static int |
LINEWIDTH_ONE_PT |
(package private) boolean |
noFill |
(package private) HSSFShape |
parent |
Constructor and Description |
---|
HSSFShape(HSSFShape parent,
HSSFAnchor anchor)
Create a new shape with the specified parent and anchor.
|
Modifier and Type | Method and Description |
---|---|
int |
countOfAllChildren()
Count of all children and their childrens children.
|
HSSFAnchor |
getAnchor() |
int |
getFillColor()
The color used to fill this shape.
|
int |
getLineStyle() |
int |
getLineStyleColor()
The color applied to the lines of this shape.
|
int |
getLineWidth() |
HSSFShape |
getParent()
Gets the parent shape.
|
boolean |
isNoFill() |
void |
setAnchor(HSSFAnchor anchor)
Sets a particular anchor.
|
void |
setFillColor(int fillColor)
The color used to fill this shape.
|
void |
setFillColor(int red,
int green,
int blue)
The color used to fill this shape.
|
void |
setLineStyle(int lineStyle)
Sets the line style.
|
void |
setLineStyleColor(int lineStyleColor)
The color applied to the lines of this shape.
|
void |
setLineStyleColor(int red,
int green,
int blue)
The color applied to the lines of this shape.
|
void |
setLineWidth(int lineWidth)
Sets the width of the line.
|
void |
setNoFill(boolean noFill)
Sets whether this shape is filled or transparent.
|
public static final int LINEWIDTH_ONE_PT
public static final int LINEWIDTH_DEFAULT
public static final int LINESTYLE_SOLID
public static final int LINESTYLE_DASHSYS
public static final int LINESTYLE_DOTSYS
public static final int LINESTYLE_DASHDOTSYS
public static final int LINESTYLE_DASHDOTDOTSYS
public static final int LINESTYLE_DOTGEL
public static final int LINESTYLE_DASHGEL
public static final int LINESTYLE_LONGDASHGEL
public static final int LINESTYLE_DASHDOTGEL
public static final int LINESTYLE_LONGDASHDOTGEL
public static final int LINESTYLE_LONGDASHDOTDOTGEL
public static final int LINESTYLE_NONE
HSSFShape parent
HSSFAnchor anchor
int lineStyleColor
int fillColor
int lineWidth
int lineStyle
boolean noFill
HSSFShape(HSSFShape parent, HSSFAnchor anchor)
public HSSFShape getParent()
public HSSFAnchor getAnchor()
public void setAnchor(HSSFAnchor anchor)
anchor
- the anchor to use.IllegalArgumentException
- when the wrong anchor is used for
this particular shape.HSSFChildAnchor
,
HSSFClientAnchor
public int getLineStyleColor()
public void setLineStyleColor(int lineStyleColor)
public void setLineStyleColor(int red, int green, int blue)
public int getFillColor()
public void setFillColor(int fillColor)
public void setFillColor(int red, int green, int blue)
public int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth
- width in EMU's. 12700EMU's = 1 ptLINEWIDTH_ONE_PT
public int getLineStyle()
public void setLineStyle(int lineStyle)
lineStyle
- One of the constants in LINESTYLE_*public boolean isNoFill()
public void setNoFill(boolean noFill)
public int countOfAllChildren()
Copyright © 2015 Open Microscopy Environment