|
|||||||||
| 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.JPanel
eu.beesoft.gantt.JGantt
public class JGantt
Swing component that displays a conventional gantt chart. JGantt consists of:
These components are built automatically when you create a JGantt. The communication between them is automated, too. You just need to set their properties:
Warning: This component is protected by BeeSoft Abeona license system. It is fully functional, but if you don't have purchased a license, the component displays 10 minutes after it was constructed a warning message and stops to paint itself. You need restart an application you use this component in.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
|---|---|
JGantt()
Creates a new instance of JGantt. |
|
JGantt(GanttModel model)
Creates a new instance of JGantt with a given model. |
|
| Method Summary | |
|---|---|
void |
addColumn(GanttColumn column)
Appends a column to the end of table columns. |
GanttColumn |
addColumn(java.lang.String key,
java.lang.String binding)
Appends a new column to the end of table columns. |
void |
addLayer(Layer layer)
Adds given layer to the list of chart component layers. |
void |
addLayer(Layer layer,
int index)
Adds given layer to the list of chart component layers. |
void |
doubleClicked(GanttNode node)
Invoked when user double clicked on the node. |
int |
getDividerLocation()
Returns divider location of the split pane (between treetable and chart component). |
ChartComponent |
getChartComponent()
Returns the instance of ChartComponent. |
ChartHeader |
getChartHeader()
Returns the instance of ChartHeader. |
java.util.List<Layer> |
getLayers()
Returns the list of chart component layers. |
License |
getLicense()
Returns instance of valid License or null. |
GanttModel |
getModel()
Returns GanttModel model instance for this JGantt object. |
protected java.util.List<javax.swing.Action> |
getPopupActions(java.util.List<GanttNode> selectedNodes)
Returns a list of actions for selected nodes. |
java.lang.String |
getResourceBundleName()
Returns the name of the resource bundle. |
GanttTreeTable |
getTreeTable()
Returns the tree table object of this JGantt. |
javax.swing.undo.UndoManager |
getUndoManager()
Returns the undo manager for JGantt operations. |
void |
removeColumn(GanttColumn column)
Removes the column from the treetable.Redirects to
JTable.removeColumn(javax.swing.table.TableColumn). |
void |
removeColumn(java.lang.String key)
Removes a column with given key from the treetable.Redirects
to GanttTreeTable.removeColumn(String). |
void |
removeLayer(Layer layer)
Removes given layer from the list of chart component layers. |
void |
setDividerLocation(int location)
Sets the divider location of the split pane (between treetable and chart component). |
License |
setLicense(java.io.InputStream licenseStream)
Loads license from given licenseStream. |
void |
setModel(GanttModel model)
Sets the new model for JGantt object. |
void |
setResourceBundleName(java.lang.String resourceBundleName)
Sets the name of resource bundle. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintComponent, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printComponent, printChildren, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, checkImage, checkImage, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JGantt()
public JGantt(GanttModel model)
model.
model - - model to set| Method Detail |
|---|
public GanttModel getModel()
GanttModel model instance for this JGantt object.
public void setModel(GanttModel model)
model - - the model to setpublic GanttTreeTable getTreeTable()
public int getDividerLocation()
public void setDividerLocation(int location)
location - - x-coordinate of the split pane divider locationpublic void addColumn(GanttColumn column)
column to the end of table columns. Redirects to
GanttTreeTable.addColumn(javax.swing.table.TableColumn).
column - - the column to be added
public GanttColumn addColumn(java.lang.String key,
java.lang.String binding)
GanttTreeTable.addColumn(String, String).
key - - key to resource bundle key, where is stored column label
under this key.binding - - name of the property from model domain object, which value
is displyed in this column
public void removeColumn(GanttColumn column)
column from the treetable.Redirects to
JTable.removeColumn(javax.swing.table.TableColumn).
column - - column to be removedpublic void removeColumn(java.lang.String key)
key from the treetable.Redirects
to GanttTreeTable.removeColumn(String).
key - - resource bundle key to identify columnpublic java.lang.String getResourceBundleName()
public void setResourceBundleName(java.lang.String resourceBundleName)
ResourceBundle specification. Resource bundle is then
used to construct treetable columns and gantt actions.
resourceBundleName - - resource bundle name to setpublic javax.swing.undo.UndoManager getUndoManager()
public ChartComponent getChartComponent()
ChartComponent.
public ChartHeader getChartHeader()
ChartHeader.
public void addLayer(Layer layer)
layer to the list of chart component layers.
Simply redirects to ChartComponent.addLayer(Layer).
layer - - the layer to add
public void addLayer(Layer layer,
int index)
layer to the list of chart component layers.
Simply redirects to ChartComponent.addLayer(Layer, int).
layer - - the layer to addindex - - position in layers list where to insertpublic void removeLayer(Layer layer)
layer from the list of chart component layers.
Simply redirects to ChartComponent.removeLayer(Layer).
layer - - the layer to removepublic java.util.List<Layer> getLayers()
ChartComponent.getLayers().
public License setLicense(java.io.InputStream licenseStream)
licenseStream. This is a key method
of library protection system.
licenseStream - - input stream from license properties file
public License getLicense()
License or null.
public void doubleClicked(GanttNode node)
node. In this
implementation does nothing. Typically, you should display properties
dialog for node's user object.
node - - double clicked nodeprotected java.util.List<javax.swing.Action> getPopupActions(java.util.List<GanttNode> selectedNodes)
selectedNodes - - list of selected GanttNode instances
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||