Class NoteVisual

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class NoteVisual extends StepVisual
Visual representation for the Note "step".
Version:
$Revision: $
Author:
Mark Hall (mhall{[at]}pentaho{[dot]}com)
See Also:
  • Constructor Details

    • NoteVisual

      public NoteVisual()
  • Method Details

    • setStepManager

      public void setStepManager(StepManagerImpl manager)
      Set the StepManagerImpl for the step covered by this visual
      Overrides:
      setStepManager in class StepVisual
      Parameters:
      manager - the step manager to wrap
    • setHighlighted

      public void setHighlighted(boolean highlighted)
      Set whether the note should appear "highlighted" (i.e. thicker border)
      Parameters:
      highlighted - true if the note should appear highlighted
    • setDisplayConnectors

      public void setDisplayConnectors(boolean dc)
      Turn on/off the connector points
      Overrides:
      setDisplayConnectors in class StepVisual
      Parameters:
      dc - a boolean value
    • setDisplayConnectors

      public void setDisplayConnectors(boolean dc, Color c)
      Turn on/off the connector points
      Overrides:
      setDisplayConnectors in class StepVisual
      Parameters:
      dc - a boolean value
      c - the Color to use
    • getDisplayStepLabel

      public boolean getDisplayStepLabel()
      Description copied from class: StepVisual
      Returns true if the step label is to be displayed. Subclasses can override to change this.
      Overrides:
      getDisplayStepLabel in class StepVisual
      Returns:
      true (default) if the step label is to be displayed
    • paintComponent

      public void paintComponent(Graphics gx)
      Overrides:
      paintComponent in class StepVisual
    • getFontSizeAdjust

      public int getFontSizeAdjust()
      Get the font size adjustment
      Returns:
      the font size adjustment
    • setFontSizeAdjust

      public void setFontSizeAdjust(int adjust)
      set the font size adjustment
      Parameters:
      adjust - the font size adjustment
    • decreaseFontSize

      public void decreaseFontSize()
      Decrease the font size by one
    • increaseFontSize

      public void increaseFontSize()
      Increase the font size by one