Package java.awt

Examples of java.awt.Graphics2D.draw3DRect()


        if (fillHeight > 0) {
          grp.fillRect(borderWidth, progressY, width - borderWidth * 2, fillHeight);
        }
      }
      if (Settings.propProgramTableOnAirProgramsShowingBorder.getBoolean()) {
        grp.draw3DRect(0, 0, width - 1, height - 1, true);
      }
    }

    // If there are plugins that have marked the program -> paint the background
    Marker[] markedByPluginArr = mProgram.getMarkerArr();
View Full Code Here


        int height = info.size()*fm.getHeight()+PADDING*2;

        gr.setColor(new Color(Color.DARK_GRAY.getRed(), Color.DARK_GRAY.getGreen(), Color.DARK_GRAY.getBlue(), 128));
        gr.fillRect(TOP, LEFT, WIDTH+2, height);
        gr.setColor(Color.LIGHT_GRAY);
        gr.draw3DRect(TOP, LEFT, WIDTH+2, height, false);
        gr.draw3DRect(TOP+1, LEFT+1, WIDTH, height-2, true);
        int ypos = TOP+PADDING+fm.getAscent();
        for (String line : info) {
            gr.drawString(line, LEFT+PADDING, ypos);
            ypos += fm.getHeight();
View Full Code Here

        gr.setColor(new Color(Color.DARK_GRAY.getRed(), Color.DARK_GRAY.getGreen(), Color.DARK_GRAY.getBlue(), 128));
        gr.fillRect(TOP, LEFT, WIDTH+2, height);
        gr.setColor(Color.LIGHT_GRAY);
        gr.draw3DRect(TOP, LEFT, WIDTH+2, height, false);
        gr.draw3DRect(TOP+1, LEFT+1, WIDTH, height-2, true);
        int ypos = TOP+PADDING+fm.getAscent();
        for (String line : info) {
            gr.drawString(line, LEFT+PADDING, ypos);
            ypos += fm.getHeight();
        }
View Full Code Here

   * @see javax.swing.Icon#paintIcon(java.awt.Component, java.awt.Graphics, int, int)
   */
  public void paintIcon(@SuppressWarnings("unused") Component c, Graphics g, int x, int y) {
    if (g instanceof Graphics2D) {
      Graphics2D g2 = (Graphics2D) g.create();
      g2.draw3DRect(x, y, getIconWidth() - 1, getIconHeight() - 1, false);
      g2.drawLine(x + 2, y + 2, x + getIconWidth() - 3, y + getIconHeight() - 3);
      g2.drawLine(x + 2, y + getIconHeight() - 3, x + getIconWidth() - 3, y + 2);
      g2.dispose();
    }
    position = new Rectangle(x, y, getIconWidth(), getIconHeight());
View Full Code Here

      grp.setColor(Plugin.getPluginManager().getTvBrowserSettings().getProgramPanelOnAirDarkColor());
          grp.fillRect(1, 1, width - 2, progressY - 1);
          grp.setColor(Plugin.getPluginManager().getTvBrowserSettings().getProgramPanelOnAirLightColor());
          grp.fillRect(1, progressY, width - 2, height - progressY - 1);
          grp.draw3DRect(0, 0, width - 1, height - 1, true);
        }

        // If there are plugins that have marked the program -> paint the background
        Marker[] markedByPluginArr = getMarkedByPlugins(mProgram);
        if (mSettings.getPaintPluginMarks() && markedByPluginArr.length != 0) {
View Full Code Here

            int[] ypts = {GRIP_MIDDLE_Y, GRIP_TOP_Y, GRIP_BOTTOM_Y};
            g2.fillPolygon(xpts, ypts, 3);
        }
        if (lSlideMoved || rSlideMoved) {
            g2.setColor(Color.gray);
            g2.draw3DRect(minGrip + 1, GRIP_MIDDLE_Y - 7, maxGrip - minGrip - 1, 15, true);
            g2.fill3DRect(minGrip + 1, GRIP_MIDDLE_Y - 7, maxGrip - minGrip - 1, 15, true);
        }
        if (textChanged) drawLabels(g2, w);
        lSlideMoved = false;
        rSlideMoved = false;
View Full Code Here

      GradientPaint gradient = new GradientPaint( 0.0F, 0.0F, bkColor.brighter(),
                                                  (float)rect.height/2, (float)rect.width/2,
                                                  bkColor.darker(), true );
      g2d.setPaint( gradient );
      g2d.fill( new Rectangle( 0, 0, rect.width, rect.height ));
      g2d.draw3DRect( 0, 0, rect.width-1, rect.height-1, true );
    }
    else
      g.fillRect( 0, 0, rect.width, rect.height );

    super.paintComponent( g );
View Full Code Here

                                                  (float)3.0F*rect.height/4.0F,
                                                  brightenColor( bkColor, 90 ),//.darker(),
                                                  true );
      g2d.setPaint( gradient );
      g2d.fill( new Rectangle( 0, 0, rect.width, rect.height ));
      g2d.draw3DRect( 0, 0, rect.width-1, rect.height-1, true );
    }
    else
      g.fillRect( 0, 0, rect.width, rect.height );

    if ( active ) {
View Full Code Here

        g.drawLine(386, 672, 382, 662);
        g.drawLine(386, 672, 390, 662);
        g.drawString("Desce", 453, 668);
                                                          /*****************/
        g.setColor(Color.darkGray);
        g.draw3DRect(369, 41, 145, 39, false);               // Grade Pontos
        for(int i=0; i<7; i++) {
            g.draw3DRect(369, i*41+42+a, 145, 38, false);    // Grade Peças
        }
        g.draw3DRect(369, 396, 145, 38, false);              // Grade Trunfos
        g.draw3DRect(369, 451, 145, 38, false);              // Grade High Score
View Full Code Here

        g.drawString("Desce", 453, 668);
                                                          /*****************/
        g.setColor(Color.darkGray);
        g.draw3DRect(369, 41, 145, 39, false);               // Grade Pontos
        for(int i=0; i<7; i++) {
            g.draw3DRect(369, i*41+42+a, 145, 38, false);    // Grade Peças
        }
        g.draw3DRect(369, 396, 145, 38, false);              // Grade Trunfos
        g.draw3DRect(369, 451, 145, 38, false);              // Grade High Score
        g.draw3DRect(369, 691, 145, 24, false);              // Grade Timer
        g.drawString(timer.contar(jogo1.pausado), 427, 708); // Timer
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.