LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJSeparator

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JSeparator
                  extended by leon.view.win.swing.component.LyJSeparator
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants

public class LyJSeparator
extends javax.swing.JSeparator

This class defines a line which acts as a graphical separator.

See Also:
JPanel, 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
static java.lang.String __VERSION
           
static int MENU_STYLE
          Menu style.
static int MIN_LENGTH
          Minimum length of the separator, in pixels.
static int TOOLBAR_STYLE
          ToolBar style.
 
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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LyJSeparator(int align, int style, java.awt.Color foregroundColor)
          Creates a separator object with the specified attributes.
LyJSeparator(int align, int style, java.awt.Color foregroundColor, int gap)
          Creates a separator object with the specified attributes.
 
Method Summary
 java.awt.Component getAfterGap()
          Gets the gap after this component.
 java.awt.Component getBeforeGap()
          Gets the gap before this component.
 java.awt.Dimension getMaximumSize()
          Gets the size to have a nice looking size and to auto-adapt with orientation change (for a floatable toolbar).
 java.awt.Dimension getMinimumSize()
          (non-Javadoc).
 java.awt.Dimension getPreferredSize()
          Gets the size to have a nice looking size and to auto-adapt with orientation change (for a floatable toolbar).
 void setAfterGap(int gap)
          Sets the gap between the next component and this separator.
 void setBeforeGap(int gap)
          Sets the gap between the previous component and this separator.
 
Methods inherited from class javax.swing.JSeparator
getAccessibleContext, getOrientation, getUI, getUIClassID, setOrientation, 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, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, 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, transferFocusBackward, 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, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

MENU_STYLE

public static final int MENU_STYLE
Menu style.

See Also:
Constant Field Values

TOOLBAR_STYLE

public static final int TOOLBAR_STYLE
ToolBar style.

See Also:
Constant Field Values

MIN_LENGTH

public static final int MIN_LENGTH
Minimum length of the separator, in pixels.

See Also:
Constant Field Values
Constructor Detail

LyJSeparator

public LyJSeparator(int align,
                    int style,
                    java.awt.Color foregroundColor)
Creates a separator object with the specified attributes. No gap is used here.

Parameters:
align - the orientation. SwingConstants.HORIZONTAL or SwingConstants.VERTICAL.
style - the style. MENU_STYLE or TOOLBAR_STYLE.
foregroundColor - the foreground color

LyJSeparator

public LyJSeparator(int align,
                    int style,
                    java.awt.Color foregroundColor,
                    int gap)
Creates a separator object with the specified attributes.

Parameters:
align - the orientation. HORIZONTAL or VERTICAL.
style - the style, not used here
foregroundColor - the foreground color
gap - the gap around this separator
Method Detail

getBeforeGap

public java.awt.Component getBeforeGap()
Gets the gap before this component. Used only for TOOLBAR_STYLE.

Returns:
the gap between the previous component and this separator
See Also:
setBeforeGap(int)

getAfterGap

public java.awt.Component getAfterGap()
Gets the gap after this component. Used only for TOOLBAR_STYLE.

Returns:
the gap between the next component and this separator
See Also:
setAfterGap(int)

setBeforeGap

public void setBeforeGap(int gap)
Sets the gap between the previous component and this separator.

Parameters:
gap - the new gap value
See Also:
getBeforeGap()

setAfterGap

public void setAfterGap(int gap)
Sets the gap between the next component and this separator.

Parameters:
gap - the new gap value
See Also:
getAfterGap()

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the size to have a nice looking size and to auto-adapt with orientation change (for a floatable toolbar).

Overrides:
getPreferredSize in class javax.swing.JComponent
See Also:
Component.getPreferredSize()

getMaximumSize

public java.awt.Dimension getMaximumSize()
Gets the size to have a nice looking size and to auto-adapt with orientation change (for a floatable toolbar).

Overrides:
getMaximumSize in class javax.swing.JComponent
See Also:
Component.getMaximumSize()

getMinimumSize

public java.awt.Dimension getMinimumSize()
(non-Javadoc).

Overrides:
getMinimumSize in class javax.swing.JComponent
See Also:
Component.getMinimumSize()

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com