public class TrianaTask extends TrianaTool implements TaskListener, TaskComponent
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static double |
PROCESS_LED_HEIGHT_FACTOR |
static double |
PROCESS_LED_WIDTH_FACTOR |
protected boolean |
processled
A a flag indicating whether the processing led is shown in the middle of the icon.
|
DEFAULT_NAME_LENGTH, STRIPE_ANGLE_OFFSET, SUB_NAME, SUB_NAME_VALUE, THICK_STRIPE_OFFSET, THICK_STRIPE_WIDTH, THIN_STRIPE_OFFSET, THIN_STRIPE_WIDTHaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTBACKGROUND_COLOR, CABLE_COLOR, CONTROL_CABLE_COLOR, DEFAULT_ERROR_COLOR, ERROR_NODE_COLOR, ERROR_TOOL_COLOR, GROUP_TOOL_COLOR, NAME_COLOR, NAME_ELEMENT, NODE_COLOR, PROGRESS_COLOR, PROGRESS_ELEMENT, SHOW_TOOL_CONNECTED_COLOR, SHOW_TOOL_CONNECTED_ELEMENT, SHOW_TOOL_UNCONNECTED_COLOR, SHOW_TOOL_UNCONNECTED_ELEMENT, STRIPE_ELEMENT, TOOL_COLOR, TOOL_ELEMENT, TRIGGER_NODE_COLOR| Constructor and Description |
|---|
TrianaTask(Task task)
Constructs a new TrianaTool for a task
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes of the tool and its associated windows
|
java.awt.Component |
getComponent() |
boolean |
getProcessingLED() |
int |
getStartProcessCount() |
int |
getStopProcessCount() |
Task |
getTaskInterface() |
java.lang.String |
getToolTipText() |
protected void |
initNodes()
initialises the input/output nodes
|
void |
nodeAdded(TaskNodeEvent event)
Called when a data input node is added.
|
void |
nodeRemoved(TaskNodeEvent event)
Called before a data input node is removed.
|
void |
paintComponent(java.awt.Graphics graphs)
Paints the tool by placing the correct number of input and output nodes on the icon and putting the tool's name
on it.
|
protected void |
paintProcessProgress(java.awt.Graphics g) |
void |
parameterUpdated(ParameterUpdateEvent event)
Called when the value of a parameter is changed, including when a parameter is removed.
|
protected void |
processParameterUpdate(ParameterUpdateEvent evt) |
void |
setProcessingLED(boolean state)
Sets the state of the processing LED
|
void |
taskDisposed(TaskDisposedEvent event)
Called before the task is disposed
|
void |
taskPropertyUpdate(TaskPropertyEvent event)
Called when the core properties of a task change i.e.
|
addNotify, clearError, drawRectangle, drawStripes, getErrorMessage, getMainComponent, getNodeComponent, getStripeColor, getStripeOffset, getStripeWidth, getTool, getToolColor, getToolName, invalidateSize, isErrorState, isSelected, removeNodeComponent, removeNotify, setError, setMainComponent, setNodeComponent, setSelectedgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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, updateadd, 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, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, 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, 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, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeComponent, isSelected, setSelectedpublic static double PROCESS_LED_WIDTH_FACTOR
public static double PROCESS_LED_HEIGHT_FACTOR
protected boolean processled
public TrianaTask(Task task)
protected void initNodes()
public java.lang.String getToolTipText()
getToolTipText in class javax.swing.JComponentpublic java.awt.Component getComponent()
getComponent in interface TaskComponentpublic Task getTaskInterface()
getTaskInterface in interface TaskComponentpublic void paintComponent(java.awt.Graphics graphs)
paintComponent in class TrianaToolprotected void paintProcessProgress(java.awt.Graphics g)
public void setProcessingLED(boolean state)
public boolean getProcessingLED()
public int getStartProcessCount()
public int getStopProcessCount()
public void taskPropertyUpdate(TaskPropertyEvent event)
taskPropertyUpdate in interface TaskListenerpublic void nodeAdded(TaskNodeEvent event)
nodeAdded in interface TaskListenerpublic void nodeRemoved(TaskNodeEvent event)
nodeRemoved in interface TaskListenerpublic void parameterUpdated(ParameterUpdateEvent event)
parameterUpdated in interface TaskListenerprotected void processParameterUpdate(ParameterUpdateEvent evt)
public void taskDisposed(TaskDisposedEvent event)
taskDisposed in interface TaskListenerpublic void dispose()
dispose in interface TaskComponentdispose in class TrianaTool