Class JaxoEditPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
Jaxo2PointsEditPanel, Jaxo3PointsEditPanel, Jaxo4PointsEditPanel, JaxoArrowEditPanel, JaxoCenterSizeEditPanel, JaxoColorEditPanel, JaxoDashEditPanel, JaxoDefaultArrowEditPanel, JaxoDLEditPanel, JaxoLatexAlignPanel, JaxoLatexFontSizePanel, JaxoPositionEditPanel, JaxoPSFontPanel, JaxoRotationEditPanel, JaxoScaleEditPanel, JaxoStretchingEditPanel, JaxoStrokeEditPanel, JaxoSymmEditPanel, JaxoTextEditPanel, JaxoWiggleEditPanel, JaxoXYREditPanel

public abstract class JaxoEditPanel extends JPanel
A parent class for edit panel components.
Since:
2.0
See Also:
  • Constructor Details

    • JaxoEditPanel

      protected JaxoEditPanel()
      Create without LayoutManager.
    • JaxoEditPanel

      protected JaxoEditPanel(LayoutManager l)
      Create with given LayoutManager.
      Parameters:
      l - A LayoutManager, may be null.
  • Method Details

    • setLineBoxLayout

      protected void setLineBoxLayout()
      Set LayoutManager to a new LINE_AXIS BoxLayout
    • createI18NBorder

      protected TitledBorder createI18NBorder(String key)
      Returns a TitledBorder with translated text.
      Parameters:
      key - A key to be translated by the JaxoLanguage class.
      Returns:
      A TitledBorder with translated text.
    • createI18NLabel

      protected JLabel createI18NLabel(String key)
      Returns a JLabel with translated text.
      Parameters:
      key - A key to be translated by the JaxoLanguage class.
      Returns:
      A JLabel with translated text.
    • createBorder

      protected TitledBorder createBorder(String title)
      Returns a TitledBorder with given text.
      Parameters:
      title - The title text of the border.
      Returns:
      A TitledBorder with given text.
    • createLabel

      protected JLabel createLabel(String title)
      Returns a JLabel with given text.
      Parameters:
      title - The text for the label.
      Returns:
      A JLabel with given text.
    • getSpinner

      protected JSpinner getSpinner(float value, float min, float max, float step, String name)
      Returns a JSpinner.
      Parameters:
      value - The value of the corresponding SpinnerNumberModel.
      min - The min value of the corresponding SpinnerNumberModel.
      max - The max value of the corresponding SpinnerNumberModel.
      step - The step size of the corresponding SpinnerNumberModel.
      name - The name to set for the JSpinner.
      Returns:
      A JSpinner with the given values.
    • getSpinner

      protected JSpinner getSpinner(int value, int min, int max, int step, String name)
      Returns a JSpinner.
      Parameters:
      value - The value of the corresponding SpinnerNumberModel.
      min - The min value of the corresponding SpinnerNumberModel.
      max - The max value of the corresponding SpinnerNumberModel.
      step - The step size of the corresponding SpinnerNumberModel.
      name - The name to set for the JSpinner.
      Returns:
      A JSpinner with the given values.
    • addEditPanelListener

      public abstract void addEditPanelListener(JaxoEditPanelListener listener)
      Adds the given listener as an ActionListener to this panel. If listener is null, does nothing.
      Parameters:
      listener - The listener to add to this panel.
    • getPanelLayout

      protected GridLayout getPanelLayout()
      Get the PanelLayout.
      Returns:
      the PanelLayout.
    • setPanelLayout

      protected void setPanelLayout(GridLayout newLayout)
      Set the PanelLayout.
      Parameters:
      newLayout - the panelLayout.
    • getOneColumnPanelLayout

      protected GridLayout getOneColumnPanelLayout()
      Returns the layout of one column.
      Returns:
      the layout of one column.
    • setOneColumnPanelLayout

      protected void setOneColumnPanelLayout(GridLayout newLayout)
      Sets the layout of one column.
      Parameters:
      newLayout - the layout of one column.
    • getCheckBoxPanelSize

      protected Dimension getCheckBoxPanelSize()
      Returns the size of a single checkbox panel.
      Returns:
      the size of a single checkbox panel.
    • setCheckBoxPanelSize

      protected void setCheckBoxPanelSize(Dimension newSize)
      Sets the size of a single checkbox panel.
      Parameters:
      newSize - the size of a single checkbox panel.