Package hec.gfx2d

Class SimpleLinePropertiesPanel

All Implemented Interfaces:
ComponentPanel, ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, Modifiable, RmaValidComponent
Direct Known Subclasses:
LinePropertiesPanel

public class SimpleLinePropertiesPanel extends DefaultJPanel implements ActionListener, ComponentPanel
This is a simple panel that allows a user to edit generic line properties such as line color, line width, line style, etc. This panel is not to be confused with G2dLinePropertiesPanel which allows a user to edit the properties of a G2dLine.
See Also:
  • Field Details

    • _samplePanel

      protected JPanel _samplePanel
    • weightLabel

      protected JLabel weightLabel
    • jWeightCombo

      protected RmaJComboBox jWeightCombo
  • Constructor Details

    • SimpleLinePropertiesPanel

      public SimpleLinePropertiesPanel()
      create a LinePropertiesPanel with the checkbox label of "Draw Border"
    • SimpleLinePropertiesPanel

      public SimpleLinePropertiesPanel(String checkBoxLabel)
  • Method Details

    • buildControls

      protected void buildControls(String checkBoxLabel)
    • addListeners

      protected void addListeners()
    • 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
    • getLineColor

      public Color getLineColor()
    • setLineColor

      public void setLineColor(Color c)
    • getLineWidth

      public float getLineWidth()
    • setLineWidth

      public void setLineWidth(float f)
      Sets the line width combo box - line widths range from 1-10
    • setLineStyle

      public void setLineStyle(float[] style)
    • getLineStyle

      public float[] getLineStyle()
    • setSamplePanel

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

      @Deprecated public void setCustomEnabled(boolean enabled)
      Deprecated.
      - use setSelected(boolean)
      Parameters:
      enabled -
    • setSelected

      public void setSelected(boolean selected)
    • isCustomEnabled

      @Deprecated public boolean isCustomEnabled()
      Deprecated.
      - use isSelected()
      Returns:
    • isSelected

      public boolean isSelected()
    • 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
    • clearPanel

      public void clearPanel()
    • setCheckBoxVisible

      public void setCheckBoxVisible(boolean visible)
      Parameters:
      visible -
    • setRendererColorNames

      public void setRendererColorNames(boolean b)
      Parameters:
      b -