Package hec.gfx2d

Class G2dBackgroundPropertiesPanel

All Implemented Interfaces:
ComponentPanel, ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, Modifiable, RmaValidComponent

public class G2dBackgroundPropertiesPanel extends DefaultJPanel implements ChangeListener, ComponentPanel
See Also:
  • Constructor Details

    • G2dBackgroundPropertiesPanel

      public G2dBackgroundPropertiesPanel()
  • Method Details

    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class AbstractJPanel
    • setComponentsEnabled

      public void setComponentsEnabled(boolean enabled)
      Specified by:
      setComponentsEnabled in interface ComponentPanel
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class DefaultJPanel
    • getBackgroundColor

      public Color getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor(Color c)
    • setBackgroundFill

      public void setBackgroundFill(int i)
    • getAlpha

      public float getAlpha()
      Returns an alpa value between 0 - 1. For an alpha value of 1 is opaque and 0 is transparent
      Returns:
    • setAlpha

      public void setAlpha(float alpha)
    • getBackgroundFill

      public int getBackgroundFill()
    • setCustomEnabled

      public void setCustomEnabled(boolean enabled)
    • isCustomEnabled

      public boolean isCustomEnabled()
    • fillPanel

      public void fillPanel()
      Description copied from class: AbstractJPanel
      Force subclasses to use this interface.
      Overrides:
      fillPanel in class DefaultJPanel
    • refresh

      public void refresh()
    • savePanel

      public boolean savePanel()
      Overrides:
      savePanel in class DefaultJPanel
    • setSamplePanel

      public void setSamplePanel(JPanel s)
      Sets a reference to a panel that needs to get repainted when line styles or colors changes