public abstract class BasicShape extends ImageOperation implements DrawOperation
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fill |
protected int |
height |
protected java.lang.String |
stroke |
protected int |
strokeWidth |
protected int |
width |
instructions
description, location, project
Constructor and Description |
---|
BasicShape() |
Modifier and Type | Method and Description |
---|---|
void |
setFill(java.lang.String col)
Set the fill attribute.
|
void |
setHeight(int h)
Set the height.
|
void |
setStroke(java.lang.String col)
Set the stroke attribute.
|
void |
setStrokewidth(int sw)
Set the stroke width attribute.
|
void |
setWidth(int w)
Set the width.
|
addDraw, addRotate, addScale
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
executeDrawOperation
protected int width
protected int height
protected int strokeWidth
protected java.lang.String stroke
protected java.lang.String fill
public void setWidth(int w)
w
- the width of the shape.public void setHeight(int h)
h
- the height of the shape.public void setStrokewidth(int sw)
sw
- the value to use.public void setStroke(java.lang.String col)
col
- the color value to use.public void setFill(java.lang.String col)
col
- the color value to use.