JavaCAD
PathHandler.java
Go to the documentation of this file.
1 /*
2 
3  Licensed to the Apache Software Foundation (ASF) under one or more
4  contributor license agreements. See the NOTICE file distributed with
5  this work for additional information regarding copyright ownership.
6  The ASF licenses this file to You under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with
8  the License. You may obtain a copy of the License at
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 
18  */
19 package com.piro.bezier;
20 
29 public interface PathHandler {
34  void startPath() throws ParseException;
35 
40  void endPath() throws ParseException;
41 
49  void movetoRel(float x, float y) throws ParseException;
50 
58  void movetoAbs(float x, float y) throws ParseException;
59 
65  void closePath() throws ParseException;
66 
74  void linetoRel(float x, float y) throws ParseException;
75 
83  void linetoAbs(float x, float y) throws ParseException;
84 
91  void linetoHorizontalRel(float x) throws ParseException;
92 
99  void linetoHorizontalAbs(float x) throws ParseException;
100 
107  void linetoVerticalRel(float y) throws ParseException;
108 
115  void linetoVerticalAbs(float y) throws ParseException;
116 
128  void curvetoCubicRel(float x1, float y1,
129  float x2, float y2,
130  float x, float y) throws ParseException;
131 
132 
144  void curvetoCubicAbs(float x1, float y1,
145  float x2, float y2,
146  float x, float y) throws ParseException;
147 
160  void curvetoCubicSmoothRel(float x2, float y2,
161  float x, float y) throws ParseException;
162 
175  void curvetoCubicSmoothAbs(float x2, float y2,
176  float x, float y) throws ParseException;
177 
187  void curvetoQuadraticRel(float x1, float y1,
188  float x, float y) throws ParseException;
189 
199  void curvetoQuadraticAbs(float x1, float y1,
200  float x, float y) throws ParseException;
201 
212  void curvetoQuadraticSmoothRel(float x, float y) throws ParseException;
213 
224  void curvetoQuadraticSmoothAbs(float x, float y) throws ParseException;
225 
239  void arcRel(float rx, float ry,
240  float xAxisRotation,
241  boolean largeArcFlag, boolean sweepFlag,
242  float x, float y) throws ParseException;
243 
244 
258  void arcAbs(float rx, float ry,
259  float xAxisRotation,
260  boolean largeArcFlag, boolean sweepFlag,
261  float x, float y) throws ParseException;
262 }
void linetoAbs(float x, float y)
void linetoVerticalAbs(float y)
void linetoVerticalRel(float y)
void linetoRel(float x, float y)
void curvetoCubicSmoothAbs(float x2, float y2, float x, float y)
void curvetoQuadraticSmoothAbs(float x, float y)
void linetoHorizontalRel(float x)
void arcAbs(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
void curvetoCubicSmoothRel(float x2, float y2, float x, float y)
void arcRel(float rx, float ry, float xAxisRotation, boolean largeArcFlag, boolean sweepFlag, float x, float y)
void linetoHorizontalAbs(float x)
void curvetoQuadraticRel(float x1, float y1, float x, float y)
void curvetoQuadraticAbs(float x1, float y1, float x, float y)
void movetoRel(float x, float y)
void curvetoCubicAbs(float x1, float y1, float x2, float y2, float x, float y)
void curvetoCubicRel(float x1, float y1, float x2, float y2, float x, float y)
void curvetoQuadraticSmoothRel(float x, float y)
void movetoAbs(float x, float y)