TextBlock
Inheritance: java.lang.Object
public class TextBlock
Contains elements that specify the alignment, margins, and default tab stop positions of text in a shape’s text block.
Methods
Method | Description |
---|---|
deepClone() | Creates deep copy of this instance. |
equals(Object arg0) | |
getBottomMargin() | Determines the distance between the bottom border of the text block and the last line of text it contains. |
getClass() | |
getDefaultTabStop() | Specifies the interval of the default tab stops in a text block. |
getDel() | A flag indicating whether the element has been deleted locally. |
getLeftMargin() | Specifies the distance between the left border of the text block and the text it contains. |
getRightMargin() | Specifies the distance between the right border of the text block and the text it contains. |
getTextBkgnd() | Specifies the text background color for a shape. |
getTextBkgndTrans() | Specifies the transparency level for the background color of a shape’s text block, from 0 (completely opaque) to 1 (completely transparent). |
getTextDirection() | Specifies the direction of the characters in a text block. |
getTopMargin() | Specifies the distance between the top border of the text block and the first line of text it contains. |
getVerticalAlign() | Specifies the vertical alignment of text within the text block. |
hashCode() | |
notify() | |
notifyAll() | |
setBottomMargin(DoubleValue value) | For the description of this property, please see getBottomMargin() |
setDefaultTabStop(DoubleValue value) | For the description of this property, please see getDefaultTabStop() |
setDel(int value) | For the description of this property, please see getDel() |
setLeftMargin(DoubleValue value) | For the description of this property, please see getLeftMargin() |
setRightMargin(DoubleValue value) | For the description of this property, please see getRightMargin() |
setTextBkgnd(ColorValue value) | For the description of this property, please see getTextBkgnd() |
setTextBkgndTrans(DoubleValue value) | For the description of this property, please see getTextBkgndTrans() |
setTextDirection(TextDirection value) | For the description of this property, please see getTextDirection() |
setTopMargin(DoubleValue value) | For the description of this property, please see getTopMargin() |
setVerticalAlign(VerticalAlign value) | For the description of this property, please see getVerticalAlign() |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
deepClone()
public Object deepClone()
Creates deep copy of this instance.
Returns: java.lang.Object -
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getBottomMargin()
public DoubleValue getBottomMargin()
Determines the distance between the bottom border of the text block and the last line of text it contains. The default is 4 pt. This value is independent of the scale of the drawing. If the drawing is scaled, the bottom margin remains the same.
Returns: DoubleValue
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getDefaultTabStop()
public DoubleValue getDefaultTabStop()
Specifies the interval of the default tab stops in a text block.
Returns: DoubleValue
getDel()
public int getDel()
A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally.
Returns: int
getLeftMargin()
public DoubleValue getLeftMargin()
Specifies the distance between the left border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the left margin remains the same.
Returns: DoubleValue
getRightMargin()
public DoubleValue getRightMargin()
Specifies the distance between the right border of the text block and the text it contains. This value is independent of the scale of the drawing. If the drawing is scaled, the right margin remains the same.
Returns: DoubleValue
getTextBkgnd()
public ColorValue getTextBkgnd()
Specifies the text background color for a shape.
Returns: ColorValue
getTextBkgndTrans()
public DoubleValue getTextBkgndTrans()
Specifies the transparency level for the background color of a shape’s text block, from 0 (completely opaque) to 1 (completely transparent).
Returns: DoubleValue
getTextDirection()
public TextDirection getTextDirection()
Specifies the direction of the characters in a text block.
Returns: TextDirection
getTopMargin()
public DoubleValue getTopMargin()
Specifies the distance between the top border of the text block and the first line of text it contains.
Returns: DoubleValue
getVerticalAlign()
public VerticalAlign getVerticalAlign()
Specifies the vertical alignment of text within the text block.
Returns: VerticalAlign
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setBottomMargin(DoubleValue value)
public void setBottomMargin(DoubleValue value)
For the description of this property, please see getBottomMargin()
Parameters:
Parameter | Type | Description |
---|---|---|
value | DoubleValue |
setDefaultTabStop(DoubleValue value)
public void setDefaultTabStop(DoubleValue value)
For the description of this property, please see getDefaultTabStop()
Parameters:
Parameter | Type | Description |
---|---|---|
value | DoubleValue |
setDel(int value)
public void setDel(int value)
For the description of this property, please see getDel()
Parameters:
Parameter | Type | Description |
---|---|---|
value | int |
setLeftMargin(DoubleValue value)
public void setLeftMargin(DoubleValue value)
For the description of this property, please see getLeftMargin()
Parameters:
Parameter | Type | Description |
---|---|---|
value | DoubleValue |
setRightMargin(DoubleValue value)
public void setRightMargin(DoubleValue value)
For the description of this property, please see getRightMargin()
Parameters:
Parameter | Type | Description |
---|---|---|
value | DoubleValue |
setTextBkgnd(ColorValue value)
public void setTextBkgnd(ColorValue value)
For the description of this property, please see getTextBkgnd()
Parameters:
Parameter | Type | Description |
---|---|---|
value | ColorValue |
setTextBkgndTrans(DoubleValue value)
public void setTextBkgndTrans(DoubleValue value)
For the description of this property, please see getTextBkgndTrans()
Parameters:
Parameter | Type | Description |
---|---|---|
value | DoubleValue |
setTextDirection(TextDirection value)
public void setTextDirection(TextDirection value)
For the description of this property, please see getTextDirection()
Parameters:
Parameter | Type | Description |
---|---|---|
value | TextDirection |
setTopMargin(DoubleValue value)
public void setTopMargin(DoubleValue value)
For the description of this property, please see getTopMargin()
Parameters:
Parameter | Type | Description |
---|---|---|
value | DoubleValue |
setVerticalAlign(VerticalAlign value)
public void setVerticalAlign(VerticalAlign value)
For the description of this property, please see getVerticalAlign()
Parameters:
Parameter | Type | Description |
---|---|---|
value | VerticalAlign |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |