AbstractPlotRenderer: Make private methods static where applicable
Change-Id: Iaf02502b02b2420c059f04bbe09254941301c727 Signed-off-by: Konrad Kügler <swamblumat-eclipsebugs@yahoo.de>
This commit is contained in:
parent
e5f7fdcf4f
commit
d5ee5ede3e
|
@ -170,7 +170,7 @@ protected void paintCommit(final PlotCommit<TLane> commit, final int h) {
|
||||||
*/
|
*/
|
||||||
protected abstract int drawLabel(int x, int y, Ref ref);
|
protected abstract int drawLabel(int x, int y, Ref ref);
|
||||||
|
|
||||||
private int computeDotSize(final int h) {
|
private static int computeDotSize(final int h) {
|
||||||
int d = (int) (Math.min(h, LANE_WIDTH) * 0.50f);
|
int d = (int) (Math.min(h, LANE_WIDTH) * 0.50f);
|
||||||
d += (d & 1);
|
d += (d & 1);
|
||||||
return d;
|
return d;
|
||||||
|
@ -262,12 +262,12 @@ protected abstract void drawLine(TColor color, int x1, int y1, int x2,
|
||||||
*/
|
*/
|
||||||
protected abstract void drawText(String msg, int x, int y);
|
protected abstract void drawText(String msg, int x, int y);
|
||||||
|
|
||||||
private int laneX(final PlotLane myLane) {
|
private static int laneX(final PlotLane myLane) {
|
||||||
final int p = myLane != null ? myLane.getPosition() : 0;
|
final int p = myLane != null ? myLane.getPosition() : 0;
|
||||||
return LEFT_PAD + LANE_WIDTH * p;
|
return LEFT_PAD + LANE_WIDTH * p;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int laneC(final PlotLane myLane) {
|
private static int laneC(final PlotLane myLane) {
|
||||||
return laneX(myLane) + LANE_WIDTH / 2;
|
return laneX(myLane) + LANE_WIDTH / 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue