From notifications-return-31894-archive-asf-public=cust-asf.ponee.io@ant.apache.org Sun Aug 12 22:10:13 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D495318077A for ; Sun, 12 Aug 2018 22:10:11 +0200 (CEST) Received: (qmail 15772 invoked by uid 500); 12 Aug 2018 20:10:11 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 15738 invoked by uid 99); 12 Aug 2018 20:10:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2018 20:10:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 343E9E09EC; Sun, 12 Aug 2018 20:10:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: gintas@apache.org To: notifications@ant.apache.org Date: Sun, 12 Aug 2018 20:10:12 -0000 Message-Id: <968e3f906c164067a70ebca09959d6e3@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [3/5] ant git commit: ImageIO task (a replacement for Image task) http://git-wip-us.apache.org/repos/asf/ant/blob/ed567daf/manual/Tasks/imageio.graphml ---------------------------------------------------------------------- diff --git a/manual/Tasks/imageio.graphml b/manual/Tasks/imageio.graphml new file mode 100644 index 0000000..99c2a14 --- /dev/null +++ b/manual/Tasks/imageio.graphml @@ -0,0 +1,498 @@ + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.tools.ant.types.DataType + + + + + + + + + + + + + + + ImageOperation + + instructions : List + addDraw(Draw : instr) +addRotate(Rotate : instr) +addScale(Scale : instr) + + + + + + + + + + + + The setType() method forces type to +one of the values of java.awt.geom.Arc2D: +open = Arc2D.OPEN +pie = Arc2D.PIE +chord = Arc2D.CHORD +Parameter is not case-sensitive. + + + + + + + + + + + BasicShape + + height : int = 0 +width : int = 0 +strokeWidth : int = 0 +stroke : String = "black" +fill : String = "transparent" + + + + + + + + + + + + + TransformOperation + + + executeTransformOperation(BufferedImage img) : BufferedImage + + + + + + + + + + + + DrawOperation + + + executeDrawOperation() : BufferedImage + + + + + + + + + + + + The implementing class uses +ColorMapper to evaluate the color. +Only the values defined in +ColorMapper are used. + + + + + + + + + + + ColorMapper + + COLOR_BLACK : String = "black" +COLOR_BLUE : String = "blue" +COLOR_CYAN : String = "cyan" +COLOR_DARKGRAY : String = "darkgray" +COLOR_GRAY : String = "gray" +COLOR_LIGHTGRAY : String = "lightgray" +COLOR_DARKGREY : String = "darkgrey" +COLOR_GREY : String = "grey" +COLOR_LIGHTGREY : String = "lightgrey" +COLOR_GREEN : String = "green" +COLOR_MAGENTA : String = "magenta" +COLOR_ORANGE : String = "orange" +COLOR_PINK : String = "pink" +COLOR_RED : String = "red" +COLOR_WHITE : String = "white" +COLOR_YELLOW : String = "yellow" + + + + + + + + + + + + + Text + + string : String = "" +font : String = "Arial" +point : int = 10 +bold : boolean = false +color : String = "black" +italic : boolean = false + + + + + + + + + + + + + Rotate + + angle : float = 0.0F + + + + + + + + + + + + + Scale + + width : String = "100%" +height : String = "100%" +keepProportions : boolean = false + + + + + + + + + + + + + Draw + + xloc : int = 0 +yloc : int = 0 + addText(Text : text) +addRectangle(Rectangle rect) +addEllipse(Ellipse elip) +addArc(Arc arc) + + + + + + + + + + + + Rectangle + + archeight : int = 0 +arcwidth : int = 0 + + + + + + + + + + + + + Ellipse + + + + + + + + + + + + + + + Arc + + start : int = 0 +stop : int = 0 +type : enumerated = open + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +