Package org.apache.hop.workflow
Class WorkflowPainter
- java.lang.Object
-
- org.apache.hop.core.gui.BasePainter<WorkflowHopMeta,ActionMeta>
-
- org.apache.hop.workflow.WorkflowPainter
-
public class WorkflowPainter extends BasePainter<WorkflowHopMeta,ActionMeta>
-
-
Field Summary
-
Fields inherited from class org.apache.hop.core.gui.BasePainter
area, areaOwners, candidate, CONTENT_MENU_INDENT, CORNER_RADIUS_2, CORNER_RADIUS_3, CORNER_RADIUS_4, CORNER_RADIUS_5, drawingEditIcons, gc, graphPort, gridSize, iconSize, lineWidth, magnification, maximum, MINI_ICON_DISTANCE, MINI_ICON_MARGIN, MINI_ICON_SKEW, MINI_ICON_TRIANGLE_BASE, miniIconSize, offset, screenMagnification, selectionRectangle, showingNavigationView, subject, theta, variables, viewPort, zoomFactor
-
-
Constructor Summary
Constructors Constructor Description WorkflowPainter(IGc gc, IVariables variables, WorkflowMeta workflowMeta, Point area, DPoint offset, WorkflowHopMeta candidate, Rectangle selrect, List<AreaOwner> areaOwners, int iconSize, int lineWidth, int gridSize, String noteFontName, int noteFontHeight, double zoomFactor, boolean drawingEditIcons)
-
Method Summary
-
Methods inherited from class org.apache.hop.core.gui.BasePainter
calcArrowLength, drawArrow, drawGrid, drawNavigationView, drawNote, drawRect, getArea, getAreaOwners, getCandidate, getGc, getGraphPort, getGridSize, getIconSize, getLine, getLineWidth, getMagnification, getMaximum, getMiniIconSize, getNoteFontHeight, getNoteFontName, getOffset, getScreenMagnification, getSelectionRectangle, getStreamIconImage, getSubject, getTheta, getVariables, getViewPort, getZoomFactor, isDrawingEditIcons, isShowingNavigationView, magnifyPoint, real2screen, round, setArea, setAreaOwners, setCandidate, setDrawingEditIcons, setGc, setGraphPort, setGridSize, setIconSize, setLineWidth, setMagnification, setMaximum, setMiniIconSize, setNoteFontHeight, setNoteFontName, setOffset, setScreenMagnification, setSelectionRectangle, setShowingNavigationView, setSubject, setVariables, setViewPort, setZoomFactor
-
-
-
-
Constructor Detail
-
WorkflowPainter
public WorkflowPainter(IGc gc, IVariables variables, WorkflowMeta workflowMeta, Point area, DPoint offset, WorkflowHopMeta candidate, Rectangle selrect, List<AreaOwner> areaOwners, int iconSize, int lineWidth, int gridSize, String noteFontName, int noteFontHeight, double zoomFactor, boolean drawingEditIcons)
-
-
Method Detail
-
drawWorkflow
public void drawWorkflow() throws HopException- Throws:
HopException
-
drawAction
protected void drawAction(ActionMeta actionMeta) throws HopException
- Throws:
HopException
-
drawWorkflowHop
protected void drawWorkflowHop(WorkflowHopMeta hop, boolean candidate) throws HopException
- Throws:
HopException
-
drawLine
protected void drawLine(WorkflowHopMeta workflowHop, boolean isCandidate) throws HopException
Calculates line coordinates from center to center.- Throws:
HopException
-
drawArrow
protected void drawArrow(IGc.EImage arrow, int x1, int y1, int x2, int y2, double theta, int size, double factor, WorkflowHopMeta workflowHop, Object startObject, Object endObject) throws HopException
- Specified by:
drawArrowin classBasePainter<WorkflowHopMeta,ActionMeta>- Throws:
HopException
-
setStartHopAction
public void setStartHopAction(ActionMeta action)
-
setEndHopLocation
public void setEndHopLocation(Point location)
-
setEndHopAction
public void setEndHopAction(ActionMeta action)
-
setNoInputAction
public void setNoInputAction(ActionMeta action)
-
setActiveActions
public void setActiveActions(List<ActionMeta> activeActions)
-
getActionResults
public List<ActionResult> getActionResults()
- Returns:
- the actionResults
-
setActionResults
public void setActionResults(List<ActionResult> actionResults)
- Parameters:
actionResults- Sets AND sorts the action results by name and number
-
getWorkflowMeta
public WorkflowMeta getWorkflowMeta()
-
setWorkflowMeta
public void setWorkflowMeta(WorkflowMeta workflowMeta)
-
getStartHopAction
public ActionMeta getStartHopAction()
-
getEndHopLocation
public Point getEndHopLocation()
-
getEndHopAction
public ActionMeta getEndHopAction()
-
getNoInputAction
public ActionMeta getNoInputAction()
-
getActiveActions
public List<ActionMeta> getActiveActions()
-
-