|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
leon.view.win.swing.component.LyJGanttScrollPane
public class LyJGanttScrollPane
This class handles scrolling for the Gantt planning.
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 |
---|
public static final java.lang.String __VERSION
public static int TIP_MAX_CHARS
Constructor Detail |
---|
public LyJGanttScrollPane(LyJTreeComponent treeComponent)
treeComponent
- the tree componentMethod Detail |
---|
public java.lang.Object getManager()
getManager
in interface LyGetManagerInterface
LyGetManagerInterface.getManager()
public LyAbstractGanttPanelManager getGanttManager()
getManager()
public boolean isFocusTraversable()
isFocusTraversable
in class java.awt.Component
true
Component.isFocusTraversable()
public java.lang.String getToolTipText()
getToolTipText
in class javax.swing.JComponent
JComponent.getToolTipText()
public void setGanttElements(java.lang.Object treeElement, java.util.Vector<LyGanttElement> ganttElements)
treeElement
- the tree elementganttElements
- the Gantt elements associated with the given tree elementpublic void setScale(short scaleType)
scaleType
- the scale type. One of the following:
public void setBigScale(short scaleType)
scaleType
- the big scale type. One of the following:
public void setStep(int step)
step
- the new step valuepublic void setBigStep(int step)
step
- the new big step valuepublic LyActionTransmitter getActionTransmitter()
getActionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getActionTransmitter()
public LySelectionTransmitter getSelectionTransmitter()
getSelectionTransmitter
in interface LyEventTransmitter
LyEventTransmitter.getSelectionTransmitter()
public void drawInSplitter(java.awt.Graphics gc, int xOffset, int yOffset)
drawInSplitter
in interface LySplittableCanvas
gc
- the graphical contextxOffset
- the horizontal offset for the splitter drawingyOffset
- the vertical offset for the splitter drawingLySplittableCanvas.drawInSplitter(java.awt.Graphics, int,
int)
public void setCanvasSplitter(LyAbstractCanvasSplitterManager splitter)
setCanvasSplitter
in interface LySplittableCanvas
splitter
- the splitterLySplittableCanvas.setCanvasSplitter(leon.view.win.swing.component.LyAbstractCanvasSplitterManager)
public java.awt.Dimension getScrollableSize()
getScrollableSize
in interface LySplittableCanvas
LySplittableCanvas.getScrollableSize()
public int getTopHeaderHeight()
getTopHeaderHeight
in interface LySplittableCanvas
LySplittableCanvas.getTopHeaderHeight()
public int getLeftHeaderWidth()
getLeftHeaderWidth
in interface LySplittableCanvas
LySplittableCanvas.getLeftHeaderWidth()
public void setCursor(java.awt.Cursor cursor)
setCursor
in class java.awt.Component
Component.setCursor(java.awt.Cursor)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |