public abstract class HSLFSimpleShape extends HSLFShape implements SimpleShape<HSLFShape,HSLFTextParagraph>
Modifier and Type | Field and Description |
---|---|
protected HSLFHyperlink |
_hyperlink
Hyperlink
(超链接)
|
protected static EscherPropertyTypes[] |
ADJUST_VALUES |
static double |
DEFAULT_LINE_WIDTH |
Modifier | Constructor and Description |
---|---|
protected |
HSLFSimpleShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
Create a SimpleShape object and initialize it from the supplied Record container.
(创建一个 SimpleShape 对象并从提供的 Record 容器中初始化它。)
|
Modifier and Type | Method and Description |
---|---|
HSLFHyperlink |
createHyperlink()
Creates a hyperlink and asigns it to this shape.
(创建一个超链接并将其分配给此形状。)
|
protected EscherContainerRecord |
createSpContainer(boolean isChild)
Create a new Shape
(创建一个新形状)
|
Guide |
getAdjustValue(java.lang.String name) |
java.awt.Color |
getFillColor()
Returns the solid color fill.
(返回纯色填充。)
|
CustomGeometry |
getGeometry() |
HSLFHyperlink |
getHyperlink()
Returns the hyperlink assigned to this shape
(返回分配给此形状的超链接)
|
java.awt.Color |
getLineBackgroundColor() |
StrokeStyle.LineCap |
getLineCap()
Gets line cap.
(获取线帽。)
|
java.awt.Color |
getLineColor() |
StrokeStyle.LineCompound |
getLineCompound()
Gets the line compound style
(获取线条复合样式)
|
StrokeStyle.LineDash |
getLineDash()
Gets line dashing.
(获取划线。)
|
LineDecoration |
getLineDecoration() |
LineDecoration.DecorationShape |
getLineHeadDecoration() |
LineDecoration.DecorationSize |
getLineHeadLength() |
LineDecoration.DecorationSize |
getLineHeadWidth() |
LineDecoration.DecorationShape |
getLineTailDecoration() |
LineDecoration.DecorationSize |
getLineTailLength() |
LineDecoration.DecorationSize |
getLineTailWidth() |
double |
getLineWidth()
Returns width of the line in in points
(以点为单位返回线的宽度)
|
Placeholder |
getPlaceholder() |
HSLFShapePlaceholderDetails |
getPlaceholderDetails() |
Shadow<HSLFShape,HSLFTextParagraph> |
getShadow() |
double |
getShadowAngle() |
java.awt.Color |
getShadowColor() |
double |
getShadowDistance() |
StrokeStyle |
getStrokeStyle()
Returns line style.
(返回线条样式。)
|
boolean |
isPlaceholder()
Checks if the shape is a placeholder.
(检查形状是否为占位符。)
|
void |
setFillColor(java.awt.Color color)
Specifies a solid color fill.
(指定纯色填充。)
|
protected void |
setHyperlink(HSLFHyperlink link)
Sets the hyperlink - used when the document is parsed
(设置超链接 - 解析文档时使用)
|
void |
setLineBackgroundColor(java.awt.Color color)
Sets the background color of line
(设置线条的背景颜色)
|
void |
setLineCap(StrokeStyle.LineCap pen)
Sets line cap.
(设置线帽。)
|
void |
setLineColor(java.awt.Color color)
Sets the color of line
(设置线条的颜色)
|
void |
setLineCompound(StrokeStyle.LineCompound style)
Sets the line compound style
(设置线复合样式)
|
void |
setLineDash(StrokeStyle.LineDash pen)
Sets line dashing.
(设置划线。)
|
void |
setLineHeadDecoration(LineDecoration.DecorationShape decoShape) |
void |
setLineHeadLength(LineDecoration.DecorationSize decoSize) |
void |
setLineHeadWidth(LineDecoration.DecorationSize decoSize) |
void |
setLineTailDecoration(LineDecoration.DecorationShape decoShape) |
void |
setLineTailLength(LineDecoration.DecorationSize decoSize) |
void |
setLineTailWidth(LineDecoration.DecorationSize decoSize) |
void |
setLineWidth(double width)
Sets the width of line in in points
(以点为单位设置线的宽度)
|
void |
setPlaceholder(Placeholder placeholder)
Specifies that the corresponding shape should be represented by the generating application as a placeholder.
(指定相应的形状应由生成应用程序表示为占位符。)
|
void |
setStrokeStyle(java.lang.Object... styles)
Sets the line attributes.
(设置线属性。)
|
afterInsert, draw, getAnchor, getClientData, getClientDataRecord, getClientRecords, getEscherChild, getEscherChild, getEscherChild, getEscherChild, getEscherOptRecord, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getEscherProperty, getFill, getFillStyle, getFlipHorizontal, getFlipVertical, getParent, getRotation, getShapeId, getShapeName, getShapeType, getSheet, getSpContainer, moveTo, setAnchor, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setEscherProperty, setFlipHorizontal, setFlipVertical, setRotation, setShapeId, setShapeType, setSheet
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFillStyle, getShapeType, setShapeType
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
public static final double DEFAULT_LINE_WIDTH
protected static final EscherPropertyTypes[] ADJUST_VALUES
protected HSLFHyperlink _hyperlink
protected HSLFSimpleShape(EscherContainerRecord escherRecord, ShapeContainer<HSLFShape,HSLFTextParagraph> parent)
escherRecord
-
EscherSpContainer
container which holds information about this shape
(escherRecord - 包含此形状信息的 EscherSpContainer 容器)
parent
- the parent of the shape
(parent - 形状的父级)
protected EscherContainerRecord createSpContainer(boolean isChild)
createSpContainer
in class
HSLFShape
isChild
-
true
if the Line is inside a group,
false
otherwise
(isChild - 如果 Line 在组内,则为 true,否则为 false)
public double getLineWidth()
public void setLineWidth(double width)
width
- the width of line in in points
(width - 线的宽度,以点为单位)
public void setLineColor(java.awt.Color color)
color
- new color of the line
(颜色 - 线条的新颜色)
public java.awt.Color getLineColor()
null
(线的颜色。如果未设置颜色,则返回 null)
public java.awt.Color getLineBackgroundColor()
null
(线条的背景颜色。如果未设置颜色,则返回 null)
public void setLineBackgroundColor(java.awt.Color color)
color
- new background color of the line
(color - 线条的新背景颜色)
public StrokeStyle.LineCap getLineCap()
public void setLineCap(StrokeStyle.LineCap pen)
pen
- new style of the line.
(笔 - 新风格的线条。)
public StrokeStyle.LineDash getLineDash()
public void setLineDash(StrokeStyle.LineDash pen)
pen
- new style of the line.
(笔 - 新风格的线条。)
public StrokeStyle.LineCompound getLineCompound()
public void setLineCompound(StrokeStyle.LineCompound style)
style
- new compound style of the line.
(style - 线条的新复合样式。)
public StrokeStyle getStrokeStyle()
getStrokeStyle
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getStrokeStyle
public java.awt.Color getFillColor()
SimpleShape
getFillColor
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getFillColor
public void setFillColor(java.awt.Color color)
SimpleShape
setFillColor
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 setFillColor
color
- the solid color fill. The value of
null
unsets the solid fill attribute from the underlying implementation
(color - 纯色填充。 null 的值从底层实现中取消设置实心填充属性)
public Guide getAdjustValue(java.lang.String name)
getAdjustValue
in interface
IAdjustableShape
(接口 IAdjustableShape 中的 getAdjustValue)
name
- name of a adjust value, e.g. adj1
(name - 调整值的名称,例如 adj1)
public CustomGeometry getGeometry()
getGeometry
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getGeometry
public double getShadowAngle()
public double getShadowDistance()
public java.awt.Color getShadowColor()
java.awt.Color.black
(线的颜色。如果未设置颜色,则返回 java.awt.Color.black)
public Shadow<HSLFShape,HSLFTextParagraph> getShadow()
getShadow
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getShadow
public LineDecoration.DecorationShape getLineHeadDecoration()
public void setLineHeadDecoration(LineDecoration.DecorationShape decoShape)
public LineDecoration.DecorationSize getLineHeadWidth()
public void setLineHeadWidth(LineDecoration.DecorationSize decoSize)
public LineDecoration.DecorationSize getLineHeadLength()
public void setLineHeadLength(LineDecoration.DecorationSize decoSize)
public LineDecoration.DecorationShape getLineTailDecoration()
public void setLineTailDecoration(LineDecoration.DecorationShape decoShape)
public LineDecoration.DecorationSize getLineTailWidth()
public void setLineTailWidth(LineDecoration.DecorationSize decoSize)
public LineDecoration.DecorationSize getLineTailLength()
public void setLineTailLength(LineDecoration.DecorationSize decoSize)
public LineDecoration getLineDecoration()
getLineDecoration
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getLineDecoration
public HSLFShapePlaceholderDetails getPlaceholderDetails()
getPlaceholderDetails
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getPlaceholderDetails
public Placeholder getPlaceholder()
getPlaceholder
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getPlaceholder
SimpleShape.setPlaceholder(Placeholder)
public void setPlaceholder(Placeholder placeholder)
SimpleShape
setPlaceholder
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 setPlaceholder
placeholder
- the placeholder or null to remove the reference to the placeholder
(placeholder - 占位符或 null 删除对占位符的引用)
public void setStrokeStyle(java.lang.Object... styles)
SimpleShape
setStrokeStyle
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 setStrokeStyle
styles
- the line attributes
(样式 - 线条属性)
public HSLFHyperlink getHyperlink()
SimpleShape
getHyperlink
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 getHyperlink
null
if not found.
(分配给此形状的超链接,如果未找到,则为 null。)
public HSLFHyperlink createHyperlink()
SimpleShape
createHyperlink
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 createHyperlink
protected void setHyperlink(HSLFHyperlink link)
link
- the hyperlink
(链接 - 超链接)
public boolean isPlaceholder()
SimpleShape
isPlaceholder
in interface
SimpleShape<HSLFShape,HSLFTextParagraph>
(接口 SimpleShape 中的 isPlaceholder
isPlaceholder
in class
HSLFShape
true
if the shape is a placeholder
(如果形状是占位符,则为真)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.