Examples of HSrect


Examples of guicomponents.HotSpot.HSrect

    // The image buffer is just for the typing area
    buffer = (PGraphicsJava2D) winApp.createGraphics((int)width, (int)height, PApplet.JAVA2D);
    buffer.rectMode(PApplet.CORNER);
    buffer.g2.setFont(fLocalFont);
    hotspots = new HotSpot[]{
        new HSrect(1, tx, ty, tw, th),      // typing area
        new HSrect(9, 0, 0, width, height),    // control surface
    };
    if((sbPolicy & SCROLLBAR_HORIZONTAL) != 0){
      hsb = new FScrollbar(theApplet, 0, 0, tw, 16);
      addCompoundControl(hsb, tx, ty + th + 2, 0);
      hsb.addEventHandler(this, "hsbEventHandler");
View Full Code Here

Examples of guicomponents.HotSpot.HSrect

    // The image buffer is just for the typing area
    buffer = (PGraphicsJava2D) winApp.createGraphics((int)width, (int)height, PApplet.JAVA2D);
    buffer.rectMode(PApplet.CORNER);
    buffer.g2.setFont(fLocalFont);
    hotspots = new HotSpot[]{
        new HSrect(1, tx, ty, tw, th),      // typing area
        new HSrect(9, 0, 0, width, height),    // control surface
    };
    if((sbPolicy & SCROLLBAR_HORIZONTAL) != 0){
      hsb = new FScrollbar(theApplet, 0, 0, tw, 10);
      addCompoundControl(hsb, tx, ty + th + 2, 0);
      hsb.addEventHandler(this, "hsbEventHandler");
View Full Code Here

Examples of guicomponents.HotSpot.HSrect

  public FScrollbar(PApplet theApplet, float p0, float p1, float p2, float p3) {
    super(theApplet, p0, p1, p2, p3);
    buffer = (PGraphicsJava2D) winApp.createGraphics((int)width, (int)height, PApplet.JAVA2D);
    buffer.rectMode(PApplet.CORNER);
    hotspots = new HotSpot[]{
        new HSrect(1, 0, 0, 16, height),      // low cap
        new HSrect(2, width - 16, 0, 16, height)// high cap
        new HSrect(9, 17, 0, width - 17, height// thumb track
    };
    Arrays.sort(hotspots); // belt and braces

    lowCap = new RoundRectangle2D.Float(1, 1, 15, height-2, 6, 6);
    highCap = new RoundRectangle2D.Float(width - 15, 1, 14.5f, height-2, 6, 6);
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.