Home | History | Annotate | Download | only in grid

Lines Matching defs:gc

57      * @param gc the graphics context to paint into
60 public static void paintStructure(DrawingStyle style, INode layout, IGraphics gc,
64 gc.useStyle(style);
67 gc.drawLine(b.x, y, b.x2(), y);
71 gc.drawLine(x, b.y, x, b.y2());
81 * @param gc the graphics context to paint the grid into
83 public static void paintGrid(INode layout, IGraphics gc) {
86 int oldAlpha = gc.getAlpha();
87 gc.useStyle(DrawingStyle.GUIDELINE);
88 gc.setAlpha(128);
96 gc.drawPoint(x, y);
99 gc.setAlpha(oldAlpha);
105 * @param gc the graphics context
109 public static void paintResizeFeedback(IGraphics gc, INode layout, GridModel grid) {
110 paintStructure(DrawingStyle.GRID, layout, gc, grid);
131 public void paint(@NonNull IGraphics gc, @NonNull INode node,
139 gc.useStyle(DrawingStyle.DROP_RECIPIENT);
140 gc.drawRect(b);
144 paintFreeFormDropFeedback(gc, node, feedback, b, data);
146 paintGridModeDropFeedback(gc, b, data);
153 private void paintFreeFormDropFeedback(IGraphics gc, INode node, DropFeedback feedback,
157 GridLayoutPainter.paintGrid(node, gc);
159 GridLayoutPainter.paintStructure(DrawingStyle.GRID, node, gc, grid);
190 gc.useStyle(DrawingStyle.DISTANCE);
202 gc.drawLine(b.x, y1, b.x2(), y1);
203 gc.drawLine(b.x, y2, b.x2(), y2);
204 gc.drawString(Integer.toString(rowMatch.margin),
207 gc.useStyle(rowMatch.margin == 0 ? DrawingStyle.DISTANCE
210 gc.drawLine(b.x, y, b.x2(), y );
214 gc.useStyle(DrawingStyle.DISTANCE);
226 gc.drawLine(x1, b.y, x1, b.y2());
227 gc.drawLine(x2, b.y, x2, b.y2());
228 gc.drawString(Integer.toString(columnMatch.margin),
231 gc.useStyle(columnMatch.margin == 0 ? DrawingStyle.DISTANCE
234 gc.drawLine(x, b.y, x, b.y2());
238 gc.useStyle(DrawingStyle.DROP_PREVIEW);
244 mRule.drawElement(gc, first, offsetX, offsetY);
249 gc.drawLine(x1, y1, x1 + dragBounds.w, y1);
254 gc.drawRect(b.x + offsetX, b.y + offsetY,
264 private void paintGridModeDropFeedback(IGraphics gc, Rect b, GridDropHandler data) {
268 gc.useStyle(DrawingStyle.GUIDELINE);
272 gc.drawLine(b.x, y - radius, b.x2(), y - radius);
273 gc.drawLine(b.x, y + radius, b.x2(), y + radius);
278 gc.drawLine(x - radius, b.y, x - radius, b.y2());
279 gc.drawLine(x + radius, b.y, x + radius, b.y2());
281 gc.drawRect(b.x, b.y, b.x2(), b.y2());
282 gc.drawRect(b.x + 2 * radius, b.y + 2 * radius,
299 gc.useStyle(DrawingStyle.DROP_ZONE_ACTIVE);
301 gc.fillRect(new Rect(cellBounds.x - radius,
307 gc.fillRect(new Rect(cellBounds.x + radius, cellBounds.y - radius,
312 gc.fillRect(new Rect(cellBounds.x + radius, cellBounds.y + radius,
316 gc.useStyle(DrawingStyle.DROP_PREVIEW);
332 mRule.drawElement(gc, first, x, y);
344 * @param gc the graphics context
349 IGraphics gc) {
355 gc.useStyle(style);
358 gc.drawLine(b.x, y, b.x2(), y);
362 gc.drawLine(x, b.y, x, b.y2());