Package hec.gfx2d

Class G2dLinePropertiesPanel

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

public class G2dLinePropertiesPanel extends hec.gfx2d.components.G2dDefaultJPanel implements ActionListener, hec.gfx2d.components.ComponentPanel
This is a panel that allows a user to edit properties of the G2dLine
See Also:
  • Field Details

    • SOLID_LINE

      public static final float[] SOLID_LINE
  • Constructor Details

    • G2dLinePropertiesPanel

      public G2dLinePropertiesPanel()
  • Method Details

    • 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
    • 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()
    • validatePanel

      public boolean validatePanel()
      Scans the panel to make sure that the data is valid
    • savePanel

      public boolean savePanel()
      Saves all of the information on this panel. Returns true if it was all successfully saved otherwise returns false.
      Overrides:
      savePanel in class rma.swing.DefaultJPanel
      Returns:
      true if data is saved successfully otherwise false
    • setData

      public void setData(G2dLineProperties prop)
    • getData

      public G2dLineProperties getData()