Package org.apache.hop.pipeline
Class PipelinePainter
- java.lang.Object
-
- org.apache.hop.core.gui.BasePainter<PipelineHopMeta,TransformMeta>
-
- org.apache.hop.pipeline.PipelinePainter
-
public class PipelinePainter extends BasePainter<PipelineHopMeta,TransformMeta>
-
-
Field Summary
Fields Modifier and Type Field Description static String[]magnificationDescriptionsstatic StringSTRING_HOP_TYPE_COPYstatic StringSTRING_PARTITIONING_CURRENT_TRANSFORMstatic StringSTRING_ROW_DISTRIBUTIONstatic StringSTRING_TRANSFORM_ERROR_LOG-
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 PipelinePainter(IGc gc, IVariables variables, PipelineMeta pipelineMeta, Point area, DPoint offset, PipelineHopMeta candidate, Rectangle selectionRectangle, List<AreaOwner> areaOwners, int iconSize, int lineWidth, int gridSize, String noteFontName, int noteFontHeight, double zoomFactor, boolean drawingEditIcons, Map<String,Object> stateMap)PipelinePainter(IGc gc, IVariables variables, PipelineMeta pipelineMeta, Point area, DPoint offset, PipelineHopMeta candidate, Rectangle selectRectangle, List<AreaOwner> areaOwners, int iconSize, int lineWidth, int gridSize, String noteFontName, int noteFontHeight, IPipelineEngine<PipelineMeta> pipeline, boolean slowTransformIndicatorEnabled, double zoomFactor, Map<String,RowBuffer> outputRowsMap, boolean drawingEditIcons, Map<String,Object> stateMap)
-
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
-
-
-
-
Field Detail
-
STRING_PARTITIONING_CURRENT_TRANSFORM
public static final String STRING_PARTITIONING_CURRENT_TRANSFORM
- See Also:
- Constant Field Values
-
STRING_TRANSFORM_ERROR_LOG
public static final String STRING_TRANSFORM_ERROR_LOG
- See Also:
- Constant Field Values
-
STRING_HOP_TYPE_COPY
public static final String STRING_HOP_TYPE_COPY
- See Also:
- Constant Field Values
-
STRING_ROW_DISTRIBUTION
public static final String STRING_ROW_DISTRIBUTION
- See Also:
- Constant Field Values
-
magnificationDescriptions
public static final String[] magnificationDescriptions
-
-
Constructor Detail
-
PipelinePainter
public PipelinePainter(IGc gc, IVariables variables, PipelineMeta pipelineMeta, Point area, DPoint offset, PipelineHopMeta candidate, Rectangle selectRectangle, List<AreaOwner> areaOwners, int iconSize, int lineWidth, int gridSize, String noteFontName, int noteFontHeight, IPipelineEngine<PipelineMeta> pipeline, boolean slowTransformIndicatorEnabled, double zoomFactor, Map<String,RowBuffer> outputRowsMap, boolean drawingEditIcons, Map<String,Object> stateMap)
-
PipelinePainter
public PipelinePainter(IGc gc, IVariables variables, PipelineMeta pipelineMeta, Point area, DPoint offset, PipelineHopMeta candidate, Rectangle selectionRectangle, List<AreaOwner> areaOwners, int iconSize, int lineWidth, int gridSize, String noteFontName, int noteFontHeight, double zoomFactor, boolean drawingEditIcons, Map<String,Object> stateMap)
-
-
Method Detail
-
drawPipelineImage
public void drawPipelineImage() throws HopException- Throws:
HopException
-
getPeekFields
public String[] getPeekFields(IEngineComponent component)
-
drawArrow
protected void drawArrow(IGc.EImage arrow, int x1, int y1, int x2, int y2, double theta, int size, double factor, PipelineHopMeta pipelineHop, Object startObject, Object endObject) throws HopException
- Specified by:
drawArrowin classBasePainter<PipelineHopMeta,TransformMeta>- Throws:
HopException
-
setTransformLogMap
public void setTransformLogMap(Map<String,String> transformLogMap)
- Parameters:
transformLogMap- the transformLogMap to set
-
setStartHopTransform
public void setStartHopTransform(TransformMeta startHopTransform)
- Parameters:
startHopTransform- the start Hop Transform to set
-
setEndHopLocation
public void setEndHopLocation(Point endHopLocation)
- Parameters:
endHopLocation- the endHopLocation to set
-
setNoInputTransform
public void setNoInputTransform(TransformMeta noInputTransform)
- Parameters:
noInputTransform- the no Input Transform to set
-
setEndHopTransform
public void setEndHopTransform(TransformMeta endHopTransform)
- Parameters:
endHopTransform- the end Hop Transform to set
-
setCandidateHopType
public void setCandidateHopType(IStream.StreamType candidateHopType)
-
setStartErrorHopTransform
public void setStartErrorHopTransform(boolean startErrorHopTransform)
-
getPipelineMeta
public PipelineMeta getPipelineMeta()
-
setPipelineMeta
public void setPipelineMeta(PipelineMeta pipelineMeta)
-
getPipeline
public IPipelineEngine<PipelineMeta> getPipeline()
-
setPipeline
public void setPipeline(IPipelineEngine<PipelineMeta> pipeline)
-
isSlowTransformIndicatorEnabled
public boolean isSlowTransformIndicatorEnabled()
-
setSlowTransformIndicatorEnabled
public void setSlowTransformIndicatorEnabled(boolean slowTransformIndicatorEnabled)
-
getStartHopTransform
public TransformMeta getStartHopTransform()
-
getEndHopLocation
public Point getEndHopLocation()
-
getEndHopTransform
public TransformMeta getEndHopTransform()
-
getNoInputTransform
public TransformMeta getNoInputTransform()
-
getCandidateHopType
public IStream.StreamType getCandidateHopType()
-
isStartErrorHopTransform
public boolean isStartErrorHopTransform()
-
getOutputRowsMap
public Map<String,RowBuffer> getOutputRowsMap()
Gets outputRowsMap- Returns:
- value of outputRowsMap
-
setOutputRowsMap
public void setOutputRowsMap(Map<String,RowBuffer> outputRowsMap)
- Parameters:
outputRowsMap- The outputRowsMap to set
-
-