Package hec.gfx2d

Class G2dTitle

All Implemented Interfaces:
G2dToolbarListener, ImageObserver, MenuContainer, Serializable, Observer, Accessible
Direct Known Subclasses:
Title

public class G2dTitle extends G2dLabel implements Observer
Title: General CWMS Project Description: This class represents the title block for the Graphics Package. Copyright: Copyright (c) 2000 Company: RMA
See Also:
  • Field Details

  • Constructor Details

    • G2dTitle

      public G2dTitle(G2dPanel p)
    • G2dTitle

      public G2dTitle(G2dPanel p, int align)
    • G2dTitle

      public G2dTitle(G2dPanel p, int align, int rot)
  • Method Details

    • getPreferredSizeLocal

      public Dimension getPreferredSizeLocal()
      Description copied from class: G2dLabel
      Compute the preferred size based on label size and orientation
      Overrides:
      getPreferredSizeLocal in class G2dLabel
      Returns:
      Dimension preferred sized of the component
    • createPopupMenu

      public void createPopupMenu()
      Overrides:
      createPopupMenu in class G2dLabel
    • editProperties

      public void editProperties()
      Overrides:
      editProperties in class G2dLabel
    • setProperties

      public void setProperties(TitleDrawProp prop)
    • getTitleProperties

      public TitleDrawProp getTitleProperties()
    • setDrawTitleOn

      public void setDrawTitleOn()
      set the title to draw
    • setDrawTitleOff

      public void setDrawTitleOff()
      set the title not to draw
    • isTitleDrawn

      public boolean isTitleDrawn()
      get whether the title is drawn or not
      Returns:
      whether the title is drawn
    • paintGfx

      public void paintGfx(Graphics g)
      Paints the G2dTitle to the specified graphics context
      Overrides:
      paintGfx in class G2dLabel
      Parameters:
      g - the graphics context to paint to.