Package java.awt.geom

Examples of java.awt.geom.GeneralPath.transform()


        -45, Arc2D.OPEN), true);
    generalPath.lineTo((float) x, (float) (y + topLeftHeight));//8
    generalPath.append(configureArc(x, y, 2 * topLeftWidth, 2 * topLeftHeight, -180, -45, Arc2D.OPEN), true);

    generalPath.closePath();
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShape = generalPath;
    return generalPath;
  }

  public Shape getBorderTopShape()
View Full Code Here


    final GeneralPath generalPath = new GeneralPath(GeneralPath.WIND_NON_ZERO, 20);
    generalPath.append(configureArc(x, y, 2 * topLeftWidth, 2 * topLeftHeight, -225, -45, Arc2D.OPEN), true);
    generalPath.lineTo((float) (x + w - topRightWidth), (float) y);//2
    generalPath.append(configureArc(x + w - 2 * topRightWidth, y, 2 * topRightWidth, 2 * topRightHeight, 90, -45,
        Arc2D.OPEN), true);
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShapeTop = generalPath;
    return generalPath;
  }

  public Shape getBorderBottomShape()
View Full Code Here

    generalPath.append(configureArc(x + w - 2 * bottomRightWidth, y + h - 2 * bottomRightHeight, 2 * bottomRightWidth,
        2 * bottomRightHeight, -45, -45, Arc2D.OPEN), true);
    generalPath.lineTo((float) (x + bottomLeftWidth), (float) (y + h));//6
    generalPath.append(configureArc(x, y + h - 2 * bottomLeftHeight, 2 * bottomLeftWidth, 2 * bottomLeftHeight, -90,
        -45, Arc2D.OPEN), true);
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShapeBottom = generalPath;
    return generalPath;
  }


View Full Code Here

    final GeneralPath generalPath = new GeneralPath(GeneralPath.WIND_NON_ZERO, 20);
    generalPath.append(configureArc(x, y + h - 2 * bottomLeftHeight, 2 * bottomLeftWidth, 2 * bottomLeftHeight, -135,
        -45, Arc2D.OPEN), true);
    generalPath.lineTo((float) x, (float) (y + topLeftHeight));//8
    generalPath.append(configureArc(x, y, 2 * topLeftWidth, 2 * topLeftHeight, -180, -45, Arc2D.OPEN), true);
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShapeLeft = generalPath;
    return generalPath;
  }

  public Shape getBorderRightShape()
View Full Code Here

    generalPath.append(configureArc(x + w - 2 * topRightWidth, y, 2 * topRightWidth, 2 * topRightHeight, 45, -45,
        Arc2D.OPEN), true);
    generalPath.lineTo((float) (x + w), (float) (y + h - bottomRightHeight));//4
    generalPath.append(configureArc(x + w - 2 * bottomRightWidth, y + h - 2 * bottomRightHeight, 2 * bottomRightWidth,
        2 * bottomRightHeight, 0, -45, Arc2D.OPEN), true);
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShapeRight = generalPath;
    return generalPath;
  }
}
View Full Code Here

            dstShape.append(tlc.getOutline(locs[n], locs[n+1]), false);
        }

        if (tx != null) {
            dstShape.transform(tx);
        }
        return dstShape;
    }

    public int hashCode() {
View Full Code Here

                System.err.println("TTFGlyfTable: WE_HAVE_A_TWO_BY_TWO not implemented.");
            }

            ShapedGlyph glyph = (ShapedGlyph) table.getGlyph(glyphIndex);
            GeneralPath appendGlyph = (GeneralPath) glyph.getShape().clone();
            appendGlyph.transform(t);
            shape.append(appendGlyph, false);
        }
    }

    public String toString() {
View Full Code Here

    generalPath.append(configureArc(x + w - 2 * bottomRightWidth, y + h - 2 * bottomRightHeight, 2 * bottomRightWidth,
        2 * bottomRightHeight, -45, -45, Arc2D.OPEN), true);
    generalPath.lineTo((float) (x + bottomLeftWidth), (float) (y + h));//6
    generalPath.append(configureArc(x, y + h - 2 * bottomLeftHeight, 2 * bottomLeftWidth, 2 * bottomLeftHeight, -90,
        -45, Arc2D.OPEN), true);
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShapeBottom = generalPath;
    return generalPath;
  }


View Full Code Here

    final GeneralPath generalPath = new GeneralPath(GeneralPath.WIND_NON_ZERO, 20);
    generalPath.append(configureArc(x, y + h - 2 * bottomLeftHeight, 2 * bottomLeftWidth, 2 * bottomLeftHeight, -135,
        -45, Arc2D.OPEN), true);
    generalPath.lineTo((float) x, (float) (y + topLeftHeight));//8
    generalPath.append(configureArc(x, y, 2 * topLeftWidth, 2 * topLeftHeight, -180, -45, Arc2D.OPEN), true);
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShapeLeft = generalPath;
    return generalPath;
  }

  public Shape getBorderRightShape()
View Full Code Here

    generalPath.append(configureArc(x + w - 2 * topRightWidth, y, 2 * topRightWidth, 2 * topRightHeight, 45, -45,
        Arc2D.OPEN), true);
    generalPath.lineTo((float) (x + w), (float) (y + h - bottomRightHeight));//4
    generalPath.append(configureArc(x + w - 2 * bottomRightWidth, y + h - 2 * bottomRightHeight, 2 * bottomRightWidth,
        2 * bottomRightHeight, 0, -45, Arc2D.OPEN), true);
    generalPath.transform(BorderRenderer.scaleInstance);
    borderShapeRight = generalPath;
    return generalPath;
  }
}
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.