Class draw2d.Annotation
Object
|
+--draw2d.Figure
|
+--draw2d.Annotation
- class
draw2d.Annotation
- extends draw2d.Figure
Defined in Annotation.js
Version: 0.9.14
Author: Andreas Herz
| Methods inherited from class draw2d.Figure |
getProperties, getProperty, setProperty, getId, getWorkflow, getParent, getZOrder, setZOrder, hasFixedPosition, getMinWidth, getMinHeight, setBorder, getContextMenu, onMouseEnter, onMouseLeave, onDragstart, setCanDrag, setAlpha, setDimension, setPosition, isResizeable, setResizeable, isSelectable, setSelectable, isStrechable, isDeleteable, setDeleteable, setCanSnapToHelper, getCanSnapToHelper, getSnapToGridAnchor, setSnapToGridAnchor, getBounds, getWidth, getHeight, getY, getX, getAbsoluteY, getAbsoluteX, onKeyDown, getPosition, isOver, attachMoveListener, detachMoveListener
|
draw2d.Annotation
draw2d.Annotation( <String> msg)
Parameters:
msg - The annotation text to display.
Version: 0.9.14
Author: Andreas Herz
getBackgroundColor
draw2d.Color getBackgroundColor()
Returns the current background color of this objetc.
Returns:
Returns the current background color of this figure.
getText
String getText()
Returns:
Returns the annotation text.
onDoubleClick
void onDoubleClick()
This method will be called from the framework if the user dbl click on this
figure. Sub classes can override this method to implement there own behaviour.
setBackgroundColor
void setBackgroundColor( <draw2d.Color> color)
Set the background color of this figure
Parameters:
color - The new background color of this object.
setFontSize
void setFontSize( <int> size)
Set the font size of the annotation text
Parameters:
size - The font size in pt
setStyledText
void setStyledText( text)
setText
void setText( <String> text)
Set the text or message of this annotation figure.
Parameters:
text - The new text of the annotation.
Documentation generated by
JSDoc on Thu Feb 7 23:45:47 2008