Package java.awt

Examples of java.awt.Graphics.drawLine()


                }

                if (priorityBand != currentPriorityBand) {
                    currentPriorityBand = priorityBand;
                    bandsGraphics.setColor(EgaPalette.COLOR_OBJECTS[priorityBand]);
                    bandsGraphics.drawLine(0, y, 319, y);
                }
            }
        }
    }
View Full Code Here


            // increase the x position by the width of the current column.
            x += column.getWidth();
            newGraphics.setColor(ITUNES_TABLE_GRID_COLOR);
            // draw the grid line (not sure what the -1 is for, but BasicTableUI
            // also does it.
            newGraphics.drawLine(x - 1, firstNonExistentRowY, x - 1, getHeight());
        }

        newGraphics.dispose();
    }
View Full Code Here

  g.fillRect( 0, 0, IMAGE_SIZE, IMAGE_SIZE );

  g.setColor(topColor);
  for (int x = 0; x < IMAGE_SIZE; x+=4) {
      for (int y = 0; y < IMAGE_SIZE; y+=4) {
          g.drawLine( x, y, x, y );
    g.drawLine( x+2, y+2, x+2, y+2);
      }
  }

  g.setColor(shadowColor);
View Full Code Here

  g.setColor(topColor);
  for (int x = 0; x < IMAGE_SIZE; x+=4) {
      for (int y = 0; y < IMAGE_SIZE; y+=4) {
          g.drawLine( x, y, x, y );
    g.drawLine( x+2, y+2, x+2, y+2);
      }
  }

  g.setColor(shadowColor);
  for (int x = 0; x < IMAGE_SIZE; x+=4) {
View Full Code Here

  }

  g.setColor(shadowColor);
  for (int x = 0; x < IMAGE_SIZE; x+=4) {
      for (int y = 0; y < IMAGE_SIZE; y+=4) {
          g.drawLine( x+1, y+1, x+1, y+1 );
    g.drawLine( x+3, y+3, x+3, y+3);
      }
  }
  g.dispose();
    }
View Full Code Here

  g.setColor(shadowColor);
  for (int x = 0; x < IMAGE_SIZE; x+=4) {
      for (int y = 0; y < IMAGE_SIZE; y+=4) {
          g.drawLine( x+1, y+1, x+1, y+1 );
    g.drawLine( x+3, y+3, x+3, y+3);
      }
  }
  g.dispose();
    }
View Full Code Here

    CircuitState state = context.getCircuitState();
    Graphics g = context.getGraphics();

    GraphicsUtil.switchToWidth(g, WIDTH);
    g.setColor(state.getValue(e0).getColor());
    g.drawLine(e0.getX(), e0.getY(),
      e1.getX(), e1.getY());
  }
 
  public Object getFeature(Object key) {
    if (key == CustomHandles.class) return this;
View Full Code Here

    for (int i = 0, n = attrs.fanout; i < n; i++) {
      if (showState) {
        Value val = state.getValue(Location.create(x, y));
        g.setColor(val.getColor());
      }
      g.drawLine(x, y, x + dxEndSpine, y + dyEndSpine);
      x += dx;
      y += dy;
    }
    GraphicsUtil.switchToWidth(g, SPINE_WIDTH);
    g.setColor(oldColor);
View Full Code Here

          spine1y--;
        } else {
          spine0y--;
          spine1y++;
        }
        g.drawLine(x0 + parms.getSpine1X() / 4, y0, spine0x, y0);
      } else {
        if (spine0x < spine1x) {
          spine0x++;
          spine1x--;
        } else {
View Full Code Here

          spine1x--;
        } else {
          spine0x--;
          spine1x++;
        }
        g.drawLine(x0, y0 + parms.getSpine1Y() / 4, x0, spine0y);
      }
      if (fanout <= 1) { // spine is empty
        int diam = SPINE_DOT;
        g.fillOval(spine0x - diam / 2, spine0y - diam / 2, diam, diam);
      } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.