Package org.pentaho.di.core.gui
Class BasePainter<Hop extends BaseHopMeta<?>,Part extends BaseMeta>
- java.lang.Object
-
- org.pentaho.di.core.gui.BasePainter<Hop,Part>
-
- Direct Known Subclasses:
JobPainter,TransPainter
public abstract class BasePainter<Hop extends BaseHopMeta<?>,Part extends BaseMeta> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.di.core.gui.Pointareaprotected List<AreaOwner>areaOwnersprotected Hopcandidatestatic intCONTENT_MENU_INDENTstatic intCORNER_RADIUS_2static intCORNER_RADIUS_3static intCORNER_RADIUS_4static intCORNER_RADIUS_5protected org.pentaho.di.core.gui.Pointdrop_candidatestatic floatFACTOR_1_TO_1protected GCInterfacegcprotected intgridSizeprotected org.pentaho.di.core.gui.ScrollBarInterfacehoriprotected inticonsizeprotected intlinewidthprotected floatmagnificationstatic intMINI_ICON_DISTANCEstatic intMINI_ICON_MARGINstatic intMINI_ICON_SIZEstatic intMINI_ICON_SKEWstatic intMINI_ICON_TRIANGLE_BASEprotected org.pentaho.di.core.gui.Pointoffsetprotected org.pentaho.di.core.gui.Rectangleselrectprotected booleanshadowprotected intshadowSizeprotected Objectsubjectdoublethetaprotected floattranslationXprotected floattranslationYprotected org.pentaho.di.core.gui.ScrollBarInterfacevert
-
Constructor Summary
Constructors Constructor Description BasePainter(GCInterface gc, Object subject, org.pentaho.di.core.gui.Point area, org.pentaho.di.core.gui.ScrollBarInterface hori, org.pentaho.di.core.gui.ScrollBarInterface vert, org.pentaho.di.core.gui.Point drop_candidate, org.pentaho.di.core.gui.Rectangle selrect, List<AreaOwner> areaOwners, int iconsize, int linewidth, int gridsize, int shadowSize, boolean antiAliasing, String noteFontName, int noteFontHeight)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected intcalcArrowLength()protected voiddrawArrow(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage arrow, int[] line, Hop hop, Object startObject, Object endObject)protected abstract voiddrawArrow(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage arrow, int x1, int y1, int x2, int y2, double theta, int size, double factor, Hop jobHop, Object startObject, Object endObject)protected voiddrawGrid()protected voiddrawNote(NotePadMeta notePadMeta)protected voiddrawRect(org.pentaho.di.core.gui.Rectangle rect)org.pentaho.di.core.gui.PointgetArea()List<AreaOwner>getAreaOwners()HopgetCandidate()org.pentaho.di.core.gui.PointgetDrop_candidate()GCInterfacegetGc()intgetGridSize()org.pentaho.di.core.gui.ScrollBarInterfacegetHori()intgetIconsize()protected int[]getLine(Part fs, Part ts)intgetLinewidth()floatgetMagnification()intgetNoteFontHeight()StringgetNoteFontName()org.pentaho.di.core.gui.PointgetOffset()protected org.pentaho.di.core.gui.PointgetOffset(org.pentaho.di.core.gui.Point thumb, org.pentaho.di.core.gui.Point area)org.pentaho.di.core.gui.RectanglegetSelrect()intgetShadowSize()static org.pentaho.di.core.gui.PrimitiveGCInterface.EImagegetStreamIconImage(StreamIcon streamIcon)ObjectgetSubject()doublegetTheta()protected org.pentaho.di.core.gui.PointgetThumb(org.pentaho.di.core.gui.Point area, org.pentaho.di.core.gui.Point transMax)floatgetTranslationX()floatgetTranslationY()org.pentaho.di.core.gui.ScrollBarInterfacegetVert()booleanisShadow()protected org.pentaho.di.core.gui.PointmagnifyPoint(org.pentaho.di.core.gui.Point p)protected org.pentaho.di.core.gui.Pointreal2screen(int x, int y)voidsetArea(org.pentaho.di.core.gui.Point area)voidsetAreaOwners(List<AreaOwner> areaOwners)voidsetCandidate(Hop candidate)voidsetDrop_candidate(org.pentaho.di.core.gui.Point drop_candidate)voidsetGc(GCInterface gc)voidsetGridSize(int gridSize)voidsetHori(org.pentaho.di.core.gui.ScrollBarInterface hori)voidsetIconsize(int iconsize)voidsetLinewidth(int linewidth)voidsetMagnification(float magnification)voidsetNoteFontHeight(int noteFontHeight)voidsetNoteFontName(String noteFontName)voidsetOffset(org.pentaho.di.core.gui.Point offset)voidsetSelrect(org.pentaho.di.core.gui.Rectangle selrect)voidsetShadow(boolean shadow)voidsetShadowSize(int shadowSize)voidsetSubject(Object subject)voidsetTranslationX(float translationX)voidsetTranslationY(float translationY)voidsetVert(org.pentaho.di.core.gui.ScrollBarInterface vert)protected inttranslateTo1To1(int value)protected inttranslateToCurrentScale(int value)
-
-
-
Field Detail
-
theta
public final double theta
-
MINI_ICON_SIZE
public static final int MINI_ICON_SIZE
- See Also:
- Constant Field Values
-
MINI_ICON_MARGIN
public static final int MINI_ICON_MARGIN
- See Also:
- Constant Field Values
-
MINI_ICON_TRIANGLE_BASE
public static final int MINI_ICON_TRIANGLE_BASE
- See Also:
- Constant Field Values
-
MINI_ICON_DISTANCE
public static final int MINI_ICON_DISTANCE
- See Also:
- Constant Field Values
-
MINI_ICON_SKEW
public static final int MINI_ICON_SKEW
- See Also:
- Constant Field Values
-
CONTENT_MENU_INDENT
public static final int CONTENT_MENU_INDENT
- See Also:
- Constant Field Values
-
CORNER_RADIUS_5
public static final int CORNER_RADIUS_5
- See Also:
- Constant Field Values
-
CORNER_RADIUS_4
public static final int CORNER_RADIUS_4
- See Also:
- Constant Field Values
-
CORNER_RADIUS_3
public static final int CORNER_RADIUS_3
- See Also:
- Constant Field Values
-
CORNER_RADIUS_2
public static final int CORNER_RADIUS_2
- See Also:
- Constant Field Values
-
FACTOR_1_TO_1
public static final float FACTOR_1_TO_1
- See Also:
- Constant Field Values
-
area
protected org.pentaho.di.core.gui.Point area
-
hori
protected org.pentaho.di.core.gui.ScrollBarInterface hori
-
vert
protected org.pentaho.di.core.gui.ScrollBarInterface vert
-
offset
protected org.pentaho.di.core.gui.Point offset
-
drop_candidate
protected org.pentaho.di.core.gui.Point drop_candidate
-
iconsize
protected int iconsize
-
gridSize
protected int gridSize
-
selrect
protected org.pentaho.di.core.gui.Rectangle selrect
-
linewidth
protected int linewidth
-
magnification
protected float magnification
-
translationX
protected float translationX
-
translationY
protected float translationY
-
shadow
protected boolean shadow
-
subject
protected Object subject
-
gc
protected GCInterface gc
-
shadowSize
protected int shadowSize
-
candidate
protected Hop extends BaseHopMeta<?> candidate
-
-
Constructor Detail
-
BasePainter
public BasePainter(GCInterface gc, Object subject, org.pentaho.di.core.gui.Point area, org.pentaho.di.core.gui.ScrollBarInterface hori, org.pentaho.di.core.gui.ScrollBarInterface vert, org.pentaho.di.core.gui.Point drop_candidate, org.pentaho.di.core.gui.Rectangle selrect, List<AreaOwner> areaOwners, int iconsize, int linewidth, int gridsize, int shadowSize, boolean antiAliasing, String noteFontName, int noteFontHeight)
-
-
Method Detail
-
getStreamIconImage
public static org.pentaho.di.core.gui.PrimitiveGCInterface.EImage getStreamIconImage(StreamIcon streamIcon)
-
drawNote
protected void drawNote(NotePadMeta notePadMeta)
-
translateTo1To1
protected int translateTo1To1(int value)
-
translateToCurrentScale
protected int translateToCurrentScale(int value)
-
real2screen
protected org.pentaho.di.core.gui.Point real2screen(int x, int y)
-
getThumb
protected org.pentaho.di.core.gui.Point getThumb(org.pentaho.di.core.gui.Point area, org.pentaho.di.core.gui.Point transMax)
-
magnifyPoint
protected org.pentaho.di.core.gui.Point magnifyPoint(org.pentaho.di.core.gui.Point p)
-
getOffset
protected org.pentaho.di.core.gui.Point getOffset(org.pentaho.di.core.gui.Point thumb, org.pentaho.di.core.gui.Point area)
-
drawRect
protected void drawRect(org.pentaho.di.core.gui.Rectangle rect)
-
drawGrid
protected void drawGrid()
-
calcArrowLength
protected int calcArrowLength()
-
getMagnification
public float getMagnification()
- Returns:
- the magnification
-
setMagnification
public void setMagnification(float magnification)
- Parameters:
magnification- the magnification to set
-
getArea
public org.pentaho.di.core.gui.Point getArea()
-
setArea
public void setArea(org.pentaho.di.core.gui.Point area)
-
getHori
public org.pentaho.di.core.gui.ScrollBarInterface getHori()
-
setHori
public void setHori(org.pentaho.di.core.gui.ScrollBarInterface hori)
-
getVert
public org.pentaho.di.core.gui.ScrollBarInterface getVert()
-
setVert
public void setVert(org.pentaho.di.core.gui.ScrollBarInterface vert)
-
getOffset
public org.pentaho.di.core.gui.Point getOffset()
-
setOffset
public void setOffset(org.pentaho.di.core.gui.Point offset)
-
getDrop_candidate
public org.pentaho.di.core.gui.Point getDrop_candidate()
-
setDrop_candidate
public void setDrop_candidate(org.pentaho.di.core.gui.Point drop_candidate)
-
getIconsize
public int getIconsize()
-
setIconsize
public void setIconsize(int iconsize)
-
getGridSize
public int getGridSize()
-
setGridSize
public void setGridSize(int gridSize)
-
getSelrect
public org.pentaho.di.core.gui.Rectangle getSelrect()
-
setSelrect
public void setSelrect(org.pentaho.di.core.gui.Rectangle selrect)
-
getLinewidth
public int getLinewidth()
-
setLinewidth
public void setLinewidth(int linewidth)
-
getTranslationX
public float getTranslationX()
-
setTranslationX
public void setTranslationX(float translationX)
-
getTranslationY
public float getTranslationY()
-
setTranslationY
public void setTranslationY(float translationY)
-
isShadow
public boolean isShadow()
-
setShadow
public void setShadow(boolean shadow)
-
getSubject
public Object getSubject()
-
setSubject
public void setSubject(Object subject)
-
getGc
public GCInterface getGc()
-
setGc
public void setGc(GCInterface gc)
-
getShadowSize
public int getShadowSize()
-
setShadowSize
public void setShadowSize(int shadowSize)
-
getNoteFontName
public String getNoteFontName()
-
setNoteFontName
public void setNoteFontName(String noteFontName)
-
getNoteFontHeight
public int getNoteFontHeight()
-
setNoteFontHeight
public void setNoteFontHeight(int noteFontHeight)
-
getTheta
public double getTheta()
-
getCandidate
public Hop getCandidate()
-
setCandidate
public void setCandidate(Hop candidate)
-
drawArrow
protected void drawArrow(org.pentaho.di.core.gui.PrimitiveGCInterface.EImage arrow, int[] line, Hop hop, Object startObject, Object endObject)
-
-