public class StickyNote
extends java.lang.Object
implements java.io.Serializable
Each StickyNote instance holds a sticky note representation.
Here is an example implementation of the GeneratePatternInstanceTransform interface that demonstrates how to use the Message Flow class to create and position a sticky note:
File msgFlow1 = new File("Test.msgflow"); MessageFlow mf1 = FlowRendererMSGFLOW.read(msgFlow1); StickyNote note = new StickyNote("This is really sticky..!"); note.setLocation(new Point(100,100)); mf1.addStickyNote(note);
Change Activity: -------- ----------- ------------- ------------------------------------ Reason: Date: Originator: Comments: -------- ----------- ------------- ------------------------------------ xxxxx.x 2010-08-10 dstorey v7.0.0.2 Release xxxxx.x 2011-07-06 dstorey v8.0.0.0 Release
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
copyright |
Constructor and Description |
---|
StickyNote(java.lang.String noteText) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object compare)
Returns true if and only if the supplied StickyNote
is equivalent to the current StickyNote
|
java.util.Vector<Node> |
getAssociatedNodes() |
Point |
getLocation()
Gets the location of the sticky note in the format "x,y"
|
java.lang.String |
getNoteText() |
StickyNote |
setAssociatedNodes(java.util.Vector<Node> associatedNodes) |
StickyNote |
setLocation(int x,
int y)
Sets the location of the sticky note in the format "x,y"
|
StickyNote |
setLocation(Point location)
Sets the location of the sticky note in the format "x,y"
|
StickyNote |
setNoteText(java.lang.String noteText) |
public static final java.lang.String copyright
public StickyNote(java.lang.String noteText)
noteText
- The text this sticky note displays.public Point getLocation()
public StickyNote setLocation(Point location)
location
- public StickyNote setLocation(int x, int y)
x
- y
- public StickyNote setAssociatedNodes(java.util.Vector<Node> associatedNodes)
associatedNodes
- Vectorpublic java.util.Vector<Node> getAssociatedNodes()
public StickyNote setNoteText(java.lang.String noteText)
noteText
- String ; the sticky note text to presentpublic java.lang.String getNoteText()
public boolean equals(java.lang.Object compare)
equals
in class java.lang.Object
compare
- Object; StickNote for comparison