Examples of draw3DRect()


Examples of java.awt.Graphics.draw3DRect()

    memG.setClip(0, 0, d.width-barWidth-12, d.height - 1);
    memG.drawString(s, 5, 14);
    memG.setClip(clip);

    memG.setColor(getBackground());
    memG.draw3DRect(0,0,d.width-barWidth-12,d.height-1, false);
    memG.draw3DRect(d.width-barWidth-10,0,barWidth+9,d.height-1, false);
   
    int x0 = d.width - barWidth - 5;
    int x1 = d.width - 5;
    int diff  = x1 - x0;
View Full Code Here

Examples of java.awt.Graphics.draw3DRect()

    memG.drawString(s, 5, 14);
    memG.setClip(clip);

    memG.setColor(getBackground());
    memG.draw3DRect(0,0,d.width-barWidth-12,d.height-1, false);
    memG.draw3DRect(d.width-barWidth-10,0,barWidth+9,d.height-1, false);
   
    int x0 = d.width - barWidth - 5;
    int x1 = d.width - 5;
    int diff  = x1 - x0;
   
View Full Code Here

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

Examples of java.awt.Graphics2D.draw3DRect()

        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

Examples of java.awt.Graphics2D.draw3DRect()

        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

Examples of java.awt.Graphics2D.draw3DRect()

   * @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

Examples of java.awt.Graphics2D.draw3DRect()

      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

Examples of java.awt.Graphics2D.draw3DRect()

            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

Examples of java.awt.Graphics2D.draw3DRect()

      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

Examples of java.awt.Graphics2D.draw3DRect()

                                                  (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
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.