Documentation of 'japlot.jaxodraw.JaxoOptionsPanel' Java class
JaxoOptionsPanel
japlot.jaxodraw

Class JaxoOptionsPanel

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
    Direct Known Subclasses:
    JaxoLineOptionsPanel


    public abstract class JaxoOptionsPanel
    extends javax.swing.JPanel
    implements java.awt.event.ActionListener
    A panel to change the parameters of a line object.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.BaselineResizeBehavior
    • Field Summary

      • Fields inherited from class javax.swing.JComponent

        TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
      • Fields inherited from class java.awt.Component

        BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
    • Constructor Summary

      Constructors 
      Constructor and Description
      JaxoOptionsPanel() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      void actionPerformed(java.awt.event.ActionEvent evt)
      Checks for ActionEvents that have ocurred on the panel, presently only whether the color button has been pressed in which case a new color chooser panel is popped up.
      void addColorPanel(int gridx, int gridy)
      Adds the color panel to this OptionPanel.
      void addFinalDimSPanel(int gridx, int gridy)
      Adds the position panel to this OptionPanel.
      java.awt.Color getColor()
      Returns the new color.
      java.awt.GridBagConstraints getGBConstraints()
      Returns the GridBagConstraints of this option panel.
      java.awt.GridBagLayout getGBLayout()
      Returns the GridBagLayout of this option panel.
      java.awt.Insets getInsets()
      Returns the current insets of this option panel.
      javax.swing.Icon getPanelIcon()
      Returns the icon for this option panel.
      java.lang.String getPanelTitle()
      Returns the current title of this option panel.
      int getXfin()
      Returns the new Xfin.
      int getXin()
      Returns the new Xin.
      int getYfin()
      Returns the new Yfin.
      int getYin()
      Returns the new Yin.
      void setColor(java.awt.Color color)
      Sets the newColor property.
      void setGBConstraints(int gx, int gy)
      Sets the GridBagConstraints and insets.
      void setGBLayout(javax.swing.JPanel panel)
      Applies the current GridBagConstraints to the specified JPanel.
      void setInsets(int top, int left, int bottom, int right)
      Sets the insets for this option panel.
      void setPanelIcon(java.lang.String icon)
      Sets the icon for this option panel.
      void setPanelTitle(java.lang.String title)
      Sets the title for this option panel.
      void setXYLineCoord(int x, int y, int relw, int relh)
      Sets the Xin, Xfin, Yin and Yfin coordinates.
      abstract boolean showPanel()
      An abstract method that displays the EditPanel.
      • Methods inherited from class javax.swing.JPanel

        getAccessibleContext, getUI, getUIClassID, setUI, updateUI
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JaxoOptionsPanel

        public JaxoOptionsPanel()
    • Method Detail

      • actionPerformed

        public final void actionPerformed(java.awt.event.ActionEvent evt)
        Checks for ActionEvents that have ocurred on the panel, presently only whether the color button has been pressed in which case a new color chooser panel is popped up.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
        Parameters:
        evt - The ActionEvent that has ocurred.
      • setPanelIcon

        public final void setPanelIcon(java.lang.String icon)
        Sets the icon for this option panel.
        Parameters:
        icon - A string with the path to the icon file.
      • getPanelIcon

        public final javax.swing.Icon getPanelIcon()
        Returns the icon for this option panel.
        Returns:
        The current icon of this option panel.
      • setPanelTitle

        public final void setPanelTitle(java.lang.String title)
        Sets the title for this option panel.
        Parameters:
        title - A string with the panel title (this string gets internationalized here, so make sure it is in the properties files).
      • getPanelTitle

        public final java.lang.String getPanelTitle()
        Returns the current title of this option panel.
        Returns:
        The current title of this option panel.
      • setInsets

        public final void setInsets(int top,
                                    int left,
                                    int bottom,
                                    int right)
        Sets the insets for this option panel.
        Parameters:
        top - The top inset.
        left - The left inset.
        bottom - The bottom inset.
        right - The right inset.
      • setColor

        public final void setColor(java.awt.Color color)
        Sets the newColor property.
        Parameters:
        color - The new color.
      • getGBLayout

        public final java.awt.GridBagLayout getGBLayout()
        Returns the GridBagLayout of this option panel.
        Returns:
        The GridBagLayout of this option panel.
      • setGBLayout

        public final void setGBLayout(javax.swing.JPanel panel)
        Applies the current GridBagConstraints to the specified JPanel.
        Parameters:
        panel - The panel to apply the layout to.
      • getGBConstraints

        public final java.awt.GridBagConstraints getGBConstraints()
        Returns the GridBagConstraints of this option panel.
        Returns:
        The GridBagConstraints of this option panel.
      • setGBConstraints

        public final void setGBConstraints(int gx,
                                           int gy)
        Sets the GridBagConstraints and insets.
        Parameters:
        gx - The x coordinate of the GridBagConstraint.
        gy - The y coordinate of the GridBagConstraint.
      • getInsets

        public final java.awt.Insets getInsets()
        Returns the current insets of this option panel.
        Overrides:
        getInsets in class javax.swing.JComponent
        Returns:
        The current insets of this option panel.
      • getColor

        public final java.awt.Color getColor()
        Returns the new color.
        Returns:
        The new color.
      • getXin

        public final int getXin()
        Returns the new Xin.
        Returns:
        The new Xin.
      • getXfin

        public final int getXfin()
        Returns the new Xfin.
        Returns:
        The new Xfin.
      • getYin

        public final int getYin()
        Returns the new Yin.
        Returns:
        The new Yin.
      • getYfin

        public final int getYfin()
        Returns the new Yfin.
        Returns:
        The new Yfin.
      • setXYLineCoord

        public final void setXYLineCoord(int x,
                                         int y,
                                         int relw,
                                         int relh)
        Sets the Xin, Xfin, Yin and Yfin coordinates.
        Parameters:
        x - The x coordinate.
        y - The y coordinate.
        relw - The relative width.
        relh - The relative height.
      • addColorPanel

        public final void addColorPanel(int gridx,
                                        int gridy)
        Adds the color panel to this OptionPanel.
        Parameters:
        gridx - The x position of the color panel.
        gridy - The y position of the color panel.
      • addFinalDimSPanel

        public final void addFinalDimSPanel(int gridx,
                                            int gridy)
        Adds the position panel to this OptionPanel.
        Parameters:
        gridx - The x position of the color panel.
        gridy - The y position of the color panel.
      • showPanel

        public abstract boolean showPanel()
        An abstract method that displays the EditPanel.
        Returns:
        A boolean variable that indicates if the object has been modified.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.