public abstract class BasePainter<Hop extends BaseHopMeta<?>,Part extends BaseMeta> extends Object
Modifier and Type | Field and Description |
---|---|
protected Point |
area |
protected List<AreaOwner> |
areaOwners |
protected Hop |
candidate |
static int |
CONTENT_MENU_INDENT |
static int |
CORNER_RADIUS_2 |
static int |
CORNER_RADIUS_3 |
static int |
CORNER_RADIUS_4 |
static int |
CORNER_RADIUS_5 |
protected Point |
drop_candidate |
static float |
FACTOR_1_TO_1 |
protected GCInterface |
gc |
protected int |
gridSize |
protected ScrollBarInterface |
hori |
protected int |
iconsize |
protected int |
linewidth |
protected float |
magnification |
static int |
MINI_ICON_DISTANCE |
static int |
MINI_ICON_MARGIN |
static int |
MINI_ICON_SIZE |
static int |
MINI_ICON_SKEW |
static int |
MINI_ICON_TRIANGLE_BASE |
protected Point |
offset |
protected Rectangle |
selrect |
protected boolean |
shadow |
protected int |
shadowSize |
protected Object |
subject |
double |
theta |
protected float |
translationX |
protected float |
translationY |
protected ScrollBarInterface |
vert |
Constructor and Description |
---|
BasePainter(GCInterface gc,
Object subject,
Point area,
ScrollBarInterface hori,
ScrollBarInterface vert,
Point drop_candidate,
Rectangle selrect,
List<AreaOwner> areaOwners,
int iconsize,
int linewidth,
int gridsize,
int shadowSize,
boolean antiAliasing,
String noteFontName,
int noteFontHeight) |
public final double theta
public static final int MINI_ICON_SIZE
public static final int MINI_ICON_MARGIN
public static final int MINI_ICON_TRIANGLE_BASE
public static final int MINI_ICON_DISTANCE
public static final int MINI_ICON_SKEW
public static final int CONTENT_MENU_INDENT
public static final int CORNER_RADIUS_5
public static final int CORNER_RADIUS_4
public static final int CORNER_RADIUS_3
public static final int CORNER_RADIUS_2
public static final float FACTOR_1_TO_1
protected Point area
protected ScrollBarInterface hori
protected ScrollBarInterface vert
protected Point offset
protected Point drop_candidate
protected int iconsize
protected int gridSize
protected Rectangle selrect
protected int linewidth
protected float magnification
protected float translationX
protected float translationY
protected boolean shadow
protected Object subject
protected GCInterface gc
protected int shadowSize
protected Hop extends BaseHopMeta<?> candidate
public BasePainter(GCInterface gc, Object subject, Point area, ScrollBarInterface hori, ScrollBarInterface vert, Point drop_candidate, Rectangle selrect, List<AreaOwner> areaOwners, int iconsize, int linewidth, int gridsize, int shadowSize, boolean antiAliasing, String noteFontName, int noteFontHeight)
public static PrimitiveGCInterface.EImage getStreamIconImage(StreamIcon streamIcon)
protected void drawNote(NotePadMeta notePadMeta)
protected int translateTo1To1(int value)
protected int translateToCurrentScale(int value)
protected Point real2screen(int x, int y)
protected void drawRect(Rectangle rect)
protected void drawGrid()
protected int calcArrowLength()
public float getMagnification()
public void setMagnification(float magnification)
magnification
- the magnification to setpublic Point getArea()
public void setArea(Point area)
public ScrollBarInterface getHori()
public void setHori(ScrollBarInterface hori)
public ScrollBarInterface getVert()
public void setVert(ScrollBarInterface vert)
public Point getOffset()
public void setOffset(Point offset)
public Point getDrop_candidate()
public void setDrop_candidate(Point drop_candidate)
public int getIconsize()
public void setIconsize(int iconsize)
public int getGridSize()
public void setGridSize(int gridSize)
public Rectangle getSelrect()
public void setSelrect(Rectangle selrect)
public int getLinewidth()
public void setLinewidth(int linewidth)
public float getTranslationX()
public void setTranslationX(float translationX)
public float getTranslationY()
public void setTranslationY(float translationY)
public boolean isShadow()
public void setShadow(boolean shadow)
public Object getSubject()
public void setSubject(Object subject)
public GCInterface getGc()
public void setGc(GCInterface gc)
public int getShadowSize()
public void setShadowSize(int shadowSize)
public String getNoteFontName()
public void setNoteFontName(String noteFontName)
public int getNoteFontHeight()
public void setNoteFontHeight(int noteFontHeight)
public double getTheta()
public Hop getCandidate()
public void setCandidate(Hop candidate)
protected void drawArrow(PrimitiveGCInterface.EImage arrow, int[] line, Hop hop, Object startObject, Object endObject)
protected abstract void drawArrow(PrimitiveGCInterface.EImage arrow, int x1, int y1, int x2, int y2, double theta, int size, double factor, Hop jobHop, Object startObject, Object endObject)
Copyright © 2018 Hitachi Vantara. All rights reserved.