Method Summary |
|
protected ElementDefaultStyleSheet | createGlobalDefaultStyle() Returns the ShapeElement specific global stylesheet. |
public String | getContentType() Returns the content type, in this case 'shape/generic'. |
public static synchronized ElementDefaultStyleSheet | getDefaultStyle() Returns the default style-sheet for shape elements. |
public Stroke | getStroke() Returns the stroke. |
public boolean | isKeepAspectRatio() Returns true if the shape's aspect ratio should be preserved, and false otherwise. |
public boolean | isScale() Returns true if the shape should be scaled, and false otherwise. |
public boolean | isShouldDraw() Returns true if the element outline should be drawn, and false otherwise. |
public boolean | isShouldFill() Returns true of the element should be filled, and false otherwise. |
public void | setKeepAspectRatio(boolean kar) Sets a flag that controls whether the shape should be scaled to fit the element
bounds. |
public void | setScale(boolean scale) Sets a flag that controls whether the shape should be scaled to fit the element
bounds. |
public void | setShouldDraw(boolean shouldDraw) Sets a flag that controls whether or not the outline of the shape is drawn. |
public void | setShouldFill(boolean shouldFill) Sets a flag that controls whether or not the area of the shape is filled. |
public void | setStroke(Stroke stroke) Sets the stroke. |
public String | toString() Returns a string describing the element. |