Package hec.gfx2d

Class G2dBackgroundPropertiesPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
rma.swing.AbstractJPanel
rma.swing.DefaultJPanel
hec.gfx2d.G2dBackgroundPropertiesPanel
All Implemented Interfaces:
hec.gfx2d.components.ComponentPanel, ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, rma.lang.Modifiable, rma.swing.RmaValidComponent

public class G2dBackgroundPropertiesPanel extends rma.swing.DefaultJPanel implements ChangeListener, hec.gfx2d.components.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 rma.swing.AbstractJPanel
    • setComponentsEnabled

      public void setComponentsEnabled(boolean enabled)
      Specified by:
      setComponentsEnabled in interface hec.gfx2d.components.ComponentPanel
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class rma.swing.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: rma.swing.AbstractJPanel
      Force subclasses to use this interface.
      Overrides:
      fillPanel in class rma.swing.DefaultJPanel
    • refresh

      public void refresh()
    • savePanel

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

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