Package hec.gfx2d

Class SamplePanel

All Implemented Interfaces:
LabelLayoutConstants, ImageObserver, MenuContainer, Serializable, Accessible

public class SamplePanel extends EnabledJPanel implements LabelLayoutConstants
Title: General CWMS Project Description: Copyright: Copyright (c) 2000 Company: RMA
See Also:
  • Constructor Details

    • SamplePanel

      public SamplePanel()
      Constructor for the SamplePanel object
  • Method Details

    • setNoneCustomPanel

      public void setNoneCustomPanel(G2dNoneCustomPanel panel)
    • setCheckBoxPanel

      public void setCheckBoxPanel(CheckBoxPanel panel)
    • setBackgroundPropPanel

      public void setBackgroundPropPanel(G2dBackgroundPropertiesPanel panel)
    • setBorderPropPanel

      public void setBorderPropPanel(SimpleLinePropertiesPanel panel)
    • setDrawLine

      public void setDrawLine(boolean drawLine)
      set whether to draw a horizontal line with the text
    • setTextAlignment

      public void setTextAlignment(String alignment)
      set the text alignment.
      Parameters:
      alignment - the text alignment must be:
      LabelLayoutConstants.LEFT,
      LabelLayoutConstants.CENTER,
      LabelLayoutConstants.RIGHT,
    • setTextPosition

      public void setTextPosition(String position)
      set the text position.
      Parameters:
      position - the text position must be:
      LabelLayoutConstants.ABOVE,
      LabelLayoutConstants.CENTER,
      LabelLayoutConstants.BELOW,
    • setTextSize

      public void setTextSize(int size)
      set the text position.
      Parameters:
      size - the text size must not be negative
    • setSampleText

      public void setSampleText(String text)
      set the sample text string.
      Parameters:
      text - the sample text
    • paint

      public void paint(Graphics g)
      Method Description
      Overrides:
      paint in class JComponent
      Parameters:
      g - Description
    • setTextForeground

      public void setTextForeground(Color foreground)