LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJGanttScrollPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JScrollPane
                  extended by leon.view.win.swing.component.LyJGanttScrollPane
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.ScrollPaneConstants, LyEventTransmitter, LyGetManagerInterface, LySplittableCanvas

public class LyJGanttScrollPane
extends javax.swing.JScrollPane
implements LyGetManagerInterface, LySplittableCanvas, LyEventTransmitter

This class handles scrolling for the Gantt planning.

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
static java.lang.String __VERSION
           
static int TIP_MAX_CHARS
          The maximum width of a line in a tooltip.
 
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.ScrollPaneConstants
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LyJGanttScrollPane(LyJTreeComponent treeComponent)
          Creates a Gantt scroll pane for the specified tree component.
 
Method Summary
 void drawInSplitter(java.awt.Graphics gc, int xOffset, int yOffset)
          (non-Javadoc).
 LyActionTransmitter getActionTransmitter()
          (non-Javadoc).
 LyAbstractGanttPanelManager getGanttManager()
          Gets the Gantt manager.
 int getLeftHeaderWidth()
          (non-Javadoc).
 java.lang.Object getManager()
          (non-Javadoc).
 java.awt.Dimension getScrollableSize()
          (non-Javadoc).
 LySelectionTransmitter getSelectionTransmitter()
          (non-Javadoc).
 java.lang.String getToolTipText()
          (non-Javadoc).
 int getTopHeaderHeight()
          (non-Javadoc).
 boolean isFocusTraversable()
          This component can always gain focus.
 void setBigScale(short scaleType)
          Sets the big scale type.
 void setBigStep(int step)
          Sets the big step of the planning.
 void setCanvasSplitter(LyAbstractCanvasSplitterManager splitter)
          (non-Javadoc).
 void setCursor(java.awt.Cursor cursor)
          (non-Javadoc).
 void setGanttElements(java.lang.Object treeElement, java.util.Vector<LyGanttElement> ganttElements)
          Sets the tree element and Gantt elements association.
 void setScale(short scaleType)
          Sets the scale type.
 void setStep(int step)
          Sets the step of the planning.
 
Methods inherited from class javax.swing.JScrollPane
createHorizontalScrollBar, createVerticalScrollBar, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, 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, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, 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, 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, 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, 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
 
Methods inherited from interface leon.view.win.swing.component.LySplittableCanvas
getKeyListeners, getMouseListeners, getMouseMotionListeners
 

Field Detail

__VERSION

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

TIP_MAX_CHARS

public static int TIP_MAX_CHARS
The maximum width of a line in a tooltip.

Constructor Detail

LyJGanttScrollPane

public LyJGanttScrollPane(LyJTreeComponent treeComponent)
Creates a Gantt scroll pane for the specified tree component.

Parameters:
treeComponent - the tree component
Method Detail

getManager

public java.lang.Object getManager()
(non-Javadoc).

Specified by:
getManager in interface LyGetManagerInterface
See Also:
LyGetManagerInterface.getManager()

getGanttManager

public LyAbstractGanttPanelManager getGanttManager()
Gets the Gantt manager.

Returns:
the associated Gantt panel manager
See Also:
getManager()

isFocusTraversable

public boolean isFocusTraversable()
This component can always gain focus.

Overrides:
isFocusTraversable in class java.awt.Component
Returns:
true
See Also:
Component.isFocusTraversable()

getToolTipText

public java.lang.String getToolTipText()
(non-Javadoc).

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

setGanttElements

public void setGanttElements(java.lang.Object treeElement,
                             java.util.Vector<LyGanttElement> ganttElements)
Sets the tree element and Gantt elements association.

Parameters:
treeElement - the tree element
ganttElements - the Gantt elements associated with the given tree element

setScale

public void setScale(short scaleType)
Sets the scale type.

Parameters:
scaleType - the scale type. One of the following:

setBigScale

public void setBigScale(short scaleType)
Sets the big scale type.

Parameters:
scaleType - the big scale type. One of the following:

setStep

public void setStep(int step)
Sets the step of the planning.

Parameters:
step - the new step value

setBigStep

public void setBigStep(int step)
Sets the big step of the planning.

Parameters:
step - the new big step value

getActionTransmitter

public LyActionTransmitter getActionTransmitter()
(non-Javadoc).

Specified by:
getActionTransmitter in interface LyEventTransmitter
Returns:
the action transmitter of this component
See Also:
LyEventTransmitter.getActionTransmitter()

getSelectionTransmitter

public LySelectionTransmitter getSelectionTransmitter()
(non-Javadoc).

Specified by:
getSelectionTransmitter in interface LyEventTransmitter
Returns:
the selection transmitter of this component
See Also:
LyEventTransmitter.getSelectionTransmitter()

drawInSplitter

public void drawInSplitter(java.awt.Graphics gc,
                           int xOffset,
                           int yOffset)
(non-Javadoc).

Specified by:
drawInSplitter in interface LySplittableCanvas
Parameters:
gc - the graphical context
xOffset - the horizontal offset for the splitter drawing
yOffset - the vertical offset for the splitter drawing
See Also:
LySplittableCanvas.drawInSplitter(java.awt.Graphics, int, int)

setCanvasSplitter

public void setCanvasSplitter(LyAbstractCanvasSplitterManager splitter)
(non-Javadoc).

Specified by:
setCanvasSplitter in interface LySplittableCanvas
Parameters:
splitter - the splitter
See Also:
LySplittableCanvas.setCanvasSplitter(leon.view.win.swing.component.LyAbstractCanvasSplitterManager)

getScrollableSize

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

Specified by:
getScrollableSize in interface LySplittableCanvas
Returns:
the scrollable size
See Also:
LySplittableCanvas.getScrollableSize()

getTopHeaderHeight

public int getTopHeaderHeight()
(non-Javadoc).

Specified by:
getTopHeaderHeight in interface LySplittableCanvas
Returns:
the top header height
See Also:
LySplittableCanvas.getTopHeaderHeight()

getLeftHeaderWidth

public int getLeftHeaderWidth()
(non-Javadoc).

Specified by:
getLeftHeaderWidth in interface LySplittableCanvas
Returns:
the left header width
See Also:
LySplittableCanvas.getLeftHeaderWidth()

setCursor

public void setCursor(java.awt.Cursor cursor)
(non-Javadoc).

Overrides:
setCursor in class java.awt.Component
See Also:
Component.setCursor(java.awt.Cursor)

(c) January 2013 - W4 S.A.

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