-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
452ae89
commit 39ebea4
Showing
2 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
form/src/main/java/com/bin/david/form/data/format/grid/SimpleGridFormat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package com.bin.david.form.data.format.grid; | ||
|
||
|
||
import android.graphics.Canvas; | ||
import android.graphics.Paint; | ||
import android.graphics.Rect; | ||
|
||
import com.bin.david.form.data.CellInfo; | ||
import com.bin.david.form.data.column.Column; | ||
|
||
/** | ||
* Created by huang on 2018/3/9. | ||
* 简单的绘制边界 | ||
*/ | ||
|
||
public class SimpleGridFormat implements IGridFormat { | ||
|
||
|
||
@Override | ||
public void drawContentGrid(Canvas canvas, int col, int row, Rect rect, CellInfo cellInfo, Paint paint) { | ||
canvas.drawRect(rect,paint); | ||
} | ||
|
||
@Override | ||
public void drawXSequenceGrid(Canvas canvas, int col, Rect rect, Paint paint) { | ||
canvas.drawRect(rect,paint); | ||
} | ||
|
||
@Override | ||
public void drawYSequenceGrid(Canvas canvas, int row, Rect rect, Paint paint) { | ||
canvas.drawRect(rect,paint); | ||
} | ||
|
||
@Override | ||
public void drawCountGrid(Canvas canvas, int col, Rect rect, Column column, Paint paint) { | ||
canvas.drawRect(rect,paint); | ||
} | ||
|
||
@Override | ||
public void drawColumnTitleGrid(Canvas canvas, Rect rect, Column column, int col, Paint paint) { | ||
canvas.drawRect(rect,paint); | ||
} | ||
|
||
@Override | ||
public void drawTableBorderGrid(Canvas canvas, int left, int top, int right, int bottom, Paint paint) { | ||
canvas.drawRect(left,top,right,bottom,paint); | ||
} | ||
|
||
@Override | ||
public void drawLeftAndTopGrid(Canvas canvas, Rect rect, Paint paint) { | ||
canvas.drawRect(rect,paint); | ||
} | ||
} |