Browse Source

grid

master
hzzz 7 years ago
parent
commit
da6ab7c322
  1. 2
      designer/src/com/fr/grid/Grid.java
  2. 3
      designer/src/com/fr/grid/GridColumnUI.java
  3. 2
      designer/src/com/fr/grid/GridRow.java
  4. 4
      designer/src/com/fr/grid/GridRowUI.java

2
designer/src/com/fr/grid/Grid.java

@ -57,7 +57,7 @@ public class Grid extends BaseGridComponent {
transient private TemplateCellElement editingCellElement; transient private TemplateCellElement editingCellElement;
private boolean showGridLine = true; private boolean showGridLine = true;
private Color gridLineColor = Color.lightGray; // line color. private Color gridLineColor = new Color(0xF0F0F3); // line color.
private boolean isShowPaginateLine = true; private boolean isShowPaginateLine = true;
private Color paginationLineColor = Color.RED; // line color of paper private Color paginationLineColor = Color.RED; // line color of paper

3
designer/src/com/fr/grid/GridColumnUI.java

@ -27,8 +27,7 @@ import com.fr.report.elementcase.ElementCase;
* @since 2012-3-22下午5:51:10 * @since 2012-3-22下午5:51:10
*/ */
public class GridColumnUI extends ComponentUI { public class GridColumnUI extends ComponentUI {
protected Color withoutDetailsBackground = new Color(0xF0F0F3);
protected Color withoutDetailsBackground = Color.lightGray;
private int resolution ; private int resolution ;
public GridColumnUI(int resolution){ public GridColumnUI(int resolution){

2
designer/src/com/fr/grid/GridRow.java

@ -21,7 +21,7 @@ import javax.swing.plaf.ComponentUI;
*/ */
public class GridRow extends GridHeader<Integer> { public class GridRow extends GridHeader<Integer> {
private static final int MAX = 5; private static final int MAX = 4;
private int resolution = ScreenResolution.getScreenResolution(); private int resolution = ScreenResolution.getScreenResolution();
private GridRowMouseHandler gridRowMouseHandler; private GridRowMouseHandler gridRowMouseHandler;

4
designer/src/com/fr/grid/GridRowUI.java

@ -26,7 +26,7 @@ import com.fr.report.elementcase.ElementCase;
* @since 2012-3-22下午5:54:21 * @since 2012-3-22下午5:54:21
*/ */
public class GridRowUI extends ComponentUI { public class GridRowUI extends ComponentUI {
private Color detailsBackground = Color.lightGray; private Color detailsBackground = new Color(0xF0F0F3);
private int resolution ; private int resolution ;
GridRowUI(int resolution){ GridRowUI(int resolution){
@ -68,7 +68,7 @@ public class GridRowUI extends ComponentUI {
rowTopHeight = Math.min(horizontalLineHeight, rowTopHeight); rowTopHeight = Math.min(horizontalLineHeight, rowTopHeight);
if (gridRow.getBackground() != null) { if (gridRow.getBackground() != null) {
g2d.setPaint(this.detailsBackground); g2d.setPaint(this.detailsBackground);
GraphHelper.fill(g2d, new Rectangle2D.Double(0, 0, size.getWidth(), rowTopHeight)); GraphHelper.fill(g2d, new Rectangle2D.Double(0, 0, size.getWidth(), rowTopHeight));
g2d.setPaint(gridRow.getBackground()); g2d.setPaint(gridRow.getBackground());
GraphHelper.fill(g2d, new Rectangle2D.Double(0, rowTopHeight, size.getHeight(), size.getHeight() - rowTopHeight)); GraphHelper.fill(g2d, new Rectangle2D.Double(0, rowTopHeight, size.getHeight(), size.getHeight() - rowTopHeight));
} }

Loading…
Cancel
Save