public abstract class OShape extends OEnumPropObj
| Modifier and Type | Method and Description |
|---|---|
com.sun.star.awt.Point |
position()
Returns the shape's position.
|
void |
setFillColor(OColor color)
Sets the fill color for the shape and FillStyle.SOLID.
|
void |
setLineDash(ODrawDoc.LineDash dash)
Sets the shape's line dash.
|
void |
setPosition(com.sun.star.awt.Point pos)
Sets the shape's position.
|
void |
setShadow(OColor color,
int xSize,
int ySize)
Enables the shape's shadow and sets the shadow's color, X size, and Y size.
|
void |
setSize(com.sun.star.awt.Size size)
Sets the shape's size.
|
void |
setSolidLine(OColor color,
int width)
Sets the line color and width for the shape and LineStyle.SOLID.
|
void |
setText(java.lang.String text)
Sets the shape's text.
|
com.sun.star.awt.Size |
size()
Returns the shape's size.
|
java.lang.String |
toString()
Returns the shape's class name.
|
com.sun.star.drawing.XShape |
xGetXShape()
Gets the XShape object.
|
prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, prop, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProp, setProplogProps, xGetPropSetpublic com.sun.star.awt.Size size()
public com.sun.star.awt.Point position()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setSize(com.sun.star.awt.Size size)
throws com.sun.star.uno.Exception
size - the sizecom.sun.star.uno.Exceptionpublic void setPosition(com.sun.star.awt.Point pos)
pos - the positionpublic void setText(java.lang.String text)
throws com.sun.star.uno.Exception
text - the textcom.sun.star.uno.Exceptionpublic void setSolidLine(OColor color, int width) throws com.sun.star.uno.Exception
color - the colorwidth - the widthcom.sun.star.uno.Exceptionpublic void setFillColor(OColor color) throws com.sun.star.uno.Exception
color - the colorcom.sun.star.uno.Exceptionpublic void setShadow(OColor color, int xSize, int ySize) throws com.sun.star.uno.Exception
color - the colorxSize - the X sizeySize - the Y sizecom.sun.star.uno.Exceptionpublic void setLineDash(ODrawDoc.LineDash dash) throws com.sun.star.uno.Exception
dash - the line dashcom.sun.star.uno.Exceptionpublic com.sun.star.drawing.XShape xGetXShape()