com.ibm.broker.config.appdev

Class StickyNote

  • java.lang.Object
    • com.ibm.broker.config.appdev.StickyNote
  • All Implemented Interfaces:
    java.io.Serializable


    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
     
    See Also:
    Serialized Form
    • Constructor Detail

      • StickyNote

        public StickyNote(java.lang.String noteText)
        Parameters:
        noteText - The text this sticky note displays.
    • Method Detail

      • getLocation

        public Point getLocation()
        Gets the location of the sticky note in the format "x,y"
        Returns:
        Point; location defined as "x,y"
      • setLocation

        public StickyNote setLocation(Point location)
        Sets the location of the sticky note in the format "x,y"
        Parameters:
        location -
      • setLocation

        public StickyNote setLocation(int x,
                                      int y)
        Sets the location of the sticky note in the format "x,y"
        Parameters:
        x -
        y -
      • setAssociatedNodes

        public StickyNote setAssociatedNodes(java.util.Vector<Node> associatedNodes)
        Parameters:
        associatedNodes - Vector ; the node associated with this sticky note
      • getAssociatedNodes

        public java.util.Vector<Node> getAssociatedNodes()
        Returns:
        Vector; the list of nodes associated with this sticky note
      • setNoteText

        public StickyNote setNoteText(java.lang.String noteText)
        Parameters:
        noteText - String ; the sticky note text to present
      • getNoteText

        public java.lang.String getNoteText()
        Returns:
        String; the text of this sticky note
      • equals

        public boolean equals(java.lang.Object compare)
        Returns true if and only if the supplied StickyNote is equivalent to the current StickyNote
        Overrides:
        equals in class java.lang.Object
        Parameters:
        compare - Object; StickNote for comparison
        Returns:
        boolean; true if and only if the StickyNotes are equivalent