Class Anchor
java.lang.Object
com.independentsoft.office.word.drawing.Anchor
- All Implemented Interfaces:
IContentElement
The Class Anchor.
-
Constructor Summary
ConstructorsConstructorDescriptionAnchor()Instantiates a new anchor.Anchor(GraphicObject graphicObject)Instantiates a new anchor.Anchor(InternalXMLStreamReader reader)Instantiates a new anchor. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanGets the as hidden.Gets the description.Gets the distance between text and bottom edge.Gets the distance between text and left edge.Gets the distance between text and right edge.Gets the distance between text and top edge.Gets the effect extent.Gets the graphic object.Gets the horizontal positioning.getID()Gets the id.Gets the locking.getName()Gets the name.Gets the wp14:sizeRelH / wp14:sizeRelV relative-size extensions preserved verbatim for the round trip.longGets the relative z order positon.Gets the simple positioning coordinates.getSize()Gets the size.Gets the vertical positioning.Gets the wrap type.booleanChecks if is allow overlap.booleanChecks if is display behind text.booleanisHidden()Checks if is hidden.booleanChecks if is layout in cell.booleanisLocked()Checks if is locked.voidsetAllowOverlap(boolean allowOverlap)Sets the allow overlap.voidsetAsHidden(boolean hidden)Sets the as hidden.voidsetDescription(String description)Sets the description.voidsetDisplayBehindText(boolean displayBehindText)Sets the display behind text.voidsetDistanceBetweenTextAndBottomEdge(Unit distanceBetweenTextAndBottomEdge)Sets the distance between text and bottom edge.voidsetDistanceBetweenTextAndLeftEdge(Unit distanceBetweenTextAndLeftEdge)Sets the distance between text and left edge.voidsetDistanceBetweenTextAndRightEdge(Unit distanceBetweenTextAndRightEdge)Sets the distance between text and right edge.voidsetDistanceBetweenTextAndTopEdge(Unit distanceBetweenTextAndTopEdge)Sets the distance between text and top edge.voidsetEffectExtent(EffectExtent effectExtent)Sets the effect extent.voidsetGraphicObject(GraphicObject graphicObject)Sets the graphic object.voidsetHidden(boolean isHidden)Sets the hidden.voidsetHorizontalPositioning(HorizontalPositioning horizontalPositioning)Sets the horizontal positioning.voidSets the id.voidsetLayoutInCell(boolean layoutInCell)Sets the layout in cell.voidsetLocked(boolean isLocked)Sets the locked.voidsetLocking(GraphicFrameLocking locking)Sets the locking.voidSets the name.voidsetRelativeSizeExtensions(List<RawXmlElement> relativeSizeExtensions)Sets the wp14:sizeRelH / wp14:sizeRelV relative-size extensions.voidsetRelativeZOrderPositon(long relativeZOrderPositon)Sets the relative z order positon.voidsetSimplePositioningCoordinates(Point2D simplePositioningCoordinates)Sets the simple positioning coordinates.voidsetSize(DrawingObjectSize size)Sets the size.voidsetUseSimplePositioningCoordinates(boolean useSimplePositioningCoordinates)Sets the use simple positioning coordinates.voidsetVerticalPositioning(VerticalPositioning verticalPositioning)Sets the vertical positioning.voidsetWrapType(WrapType wrapType)Sets the wrap type.toString()booleanUse simple positioning coordinates.
-
Constructor Details
-
Anchor
public Anchor()Instantiates a new anchor. -
Anchor
Instantiates a new anchor.- Parameters:
graphicObject- the graphic object
-
Anchor
Instantiates a new anchor.- Parameters:
reader- the reader- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement
-
clone
- Specified by:
clonein interfaceIContentElement- Overrides:
clonein classObject
-
toString
-
isAllowOverlap
public boolean isAllowOverlap()Checks if is allow overlap.- Returns:
- true, if is allow overlap
-
setAllowOverlap
public void setAllowOverlap(boolean allowOverlap)Sets the allow overlap.- Parameters:
allowOverlap- the new allow overlap
-
isDisplayBehindText
public boolean isDisplayBehindText()Checks if is display behind text.- Returns:
- true, if is display behind text
-
setDisplayBehindText
public void setDisplayBehindText(boolean displayBehindText)Sets the display behind text.- Parameters:
displayBehindText- the new display behind text
-
getDistanceBetweenTextAndBottomEdge
Gets the distance between text and bottom edge.- Returns:
- the distance between text and bottom edge
-
setDistanceBetweenTextAndBottomEdge
Sets the distance between text and bottom edge.- Parameters:
distanceBetweenTextAndBottomEdge- the new distance between text and bottom edge
-
getDistanceBetweenTextAndLeftEdge
Gets the distance between text and left edge.- Returns:
- the distance between text and left edge
-
setDistanceBetweenTextAndLeftEdge
Sets the distance between text and left edge.- Parameters:
distanceBetweenTextAndLeftEdge- the new distance between text and left edge
-
getDistanceBetweenTextAndRightEdge
Gets the distance between text and right edge.- Returns:
- the distance between text and right edge
-
setDistanceBetweenTextAndRightEdge
Sets the distance between text and right edge.- Parameters:
distanceBetweenTextAndRightEdge- the new distance between text and right edge
-
getDistanceBetweenTextAndTopEdge
Gets the distance between text and top edge.- Returns:
- the distance between text and top edge
-
setDistanceBetweenTextAndTopEdge
Sets the distance between text and top edge.- Parameters:
distanceBetweenTextAndTopEdge- the new distance between text and top edge
-
getAsHidden
public boolean getAsHidden()Gets the as hidden.- Returns:
- the as hidden
-
setAsHidden
public void setAsHidden(boolean hidden)Sets the as hidden.- Parameters:
hidden- the new as hidden
-
isLayoutInCell
public boolean isLayoutInCell()Checks if is layout in cell.- Returns:
- true, if is layout in cell
-
setLayoutInCell
public void setLayoutInCell(boolean layoutInCell)Sets the layout in cell.- Parameters:
layoutInCell- the new layout in cell
-
isLocked
public boolean isLocked()Checks if is locked.- Returns:
- true, if is locked
-
setLocked
public void setLocked(boolean isLocked)Sets the locked.- Parameters:
isLocked- the new locked
-
getRelativeZOrderPositon
public long getRelativeZOrderPositon()Gets the relative z order positon.- Returns:
- the relative z order positon
-
setRelativeZOrderPositon
public void setRelativeZOrderPositon(long relativeZOrderPositon)Sets the relative z order positon.- Parameters:
relativeZOrderPositon- the new relative z order positon
-
useSimplePositioningCoordinates
public boolean useSimplePositioningCoordinates()Use simple positioning coordinates.- Returns:
- true, if successful
-
setUseSimplePositioningCoordinates
public void setUseSimplePositioningCoordinates(boolean useSimplePositioningCoordinates)Sets the use simple positioning coordinates.- Parameters:
useSimplePositioningCoordinates- the new use simple positioning coordinates
-
getSimplePositioningCoordinates
Gets the simple positioning coordinates.- Returns:
- the simple positioning coordinates
-
setSimplePositioningCoordinates
Sets the simple positioning coordinates.- Parameters:
simplePositioningCoordinates- the new simple positioning coordinates
-
getHorizontalPositioning
Gets the horizontal positioning.- Returns:
- the horizontal positioning
-
setHorizontalPositioning
Sets the horizontal positioning.- Parameters:
horizontalPositioning- the new horizontal positioning
-
getVerticalPositioning
Gets the vertical positioning.- Returns:
- the vertical positioning
-
setVerticalPositioning
Sets the vertical positioning.- Parameters:
verticalPositioning- the new vertical positioning
-
getSize
Gets the size.- Returns:
- the size
-
setSize
Sets the size.- Parameters:
size- the new size
-
getEffectExtent
Gets the effect extent.- Returns:
- the effect extent
-
setEffectExtent
Sets the effect extent.- Parameters:
effectExtent- the new effect extent
-
getWrapType
Gets the wrap type.- Returns:
- the wrap type
-
setWrapType
Sets the wrap type.- Parameters:
wrapType- the new wrap type
-
getRelativeSizeExtensions
Gets the wp14:sizeRelH / wp14:sizeRelV relative-size extensions preserved verbatim for the round trip.- Returns:
- the relative-size extensions
-
setRelativeSizeExtensions
Sets the wp14:sizeRelH / wp14:sizeRelV relative-size extensions.- Parameters:
relativeSizeExtensions- the new relative-size extensions
-
getGraphicObject
Gets the graphic object.- Returns:
- the graphic object
-
setGraphicObject
Sets the graphic object.- Parameters:
graphicObject- the new graphic object
-
getLocking
Gets the locking.- Returns:
- the locking
-
setLocking
Sets the locking.- Parameters:
locking- the new locking
-
getID
Gets the id.- Returns:
- the id
-
setID
Sets the id.- Parameters:
id- the new id
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getDescription
Gets the description.- Returns:
- the description
-
setDescription
Sets the description.- Parameters:
description- the new description
-
isHidden
public boolean isHidden()Checks if is hidden.- Returns:
- true, if is hidden
-
setHidden
public void setHidden(boolean isHidden)Sets the hidden.- Parameters:
isHidden- the new hidden
-