Package net.sourceforge.plantuml.klimt
Class UPath
- java.lang.Object
-
- net.sourceforge.plantuml.klimt.AbstractShadowable
-
- net.sourceforge.plantuml.klimt.UPath
-
- All Implemented Interfaces:
java.lang.Iterable<USegment>
,UShapeIgnorableForCompression
,Shadowable
,UShape
public class UPath extends AbstractShadowable implements java.lang.Iterable<USegment>, UShapeIgnorableForCompression
-
-
Constructor Summary
Constructors Constructor Description UPath(java.lang.String comment, java.lang.String codeLine)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(double[] coord, USegmentType pathType)
UPath
affine(java.awt.geom.AffineTransform transform, double angle, double scale)
void
arcTo(double rx, double ry, double x_axis_rotation, double large_arc_flag, double sweep_flag, double x, double y)
void
arcTo(XPoint2D pt, double radius, double large_arc_flag, double sweep_flag)
void
closePath()
void
cubicTo(double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
void
cubicTo(XPoint2D p1, XPoint2D p2, XPoint2D p)
void
drawWhenCompressed(UGraphic ug, CompressionMode mode)
java.lang.String
getCodeLine()
java.lang.String
getComment()
double
getMaxX()
double
getMaxY()
double
getMinX()
double
getMinY()
boolean
isEmpty()
boolean
isIgnoreForCompressionOn(CompressionMode mode)
boolean
isOpenIconic()
java.util.Iterator<USegment>
iterator()
void
lineTo(double x, double y)
void
lineTo(XPoint2D pt)
void
moveTo(double x, double y)
void
moveTo(XPoint2D pt)
static UPath
none()
void
quadTo(double ctrlx, double ctrly, double x2, double y2)
void
quadTo(XPoint2D ctrl, XPoint2D pt)
UPath
rotate(double theta)
void
setIgnoreForCompressionOnX()
void
setIgnoreForCompressionOnY()
void
setOpenIconic(boolean isOpenIconic)
java.lang.String
toString()
UPath
translate(double dx, double dy)
-
Methods inherited from class net.sourceforge.plantuml.klimt.AbstractShadowable
getDeltaShadow, setDeltaShadow
-
-
-
-
Method Detail
-
none
public static UPath none()
-
add
public void add(double[] coord, USegmentType pathType)
-
isEmpty
public boolean isEmpty()
-
translate
public UPath translate(double dx, double dy)
-
rotate
public UPath rotate(double theta)
-
affine
public UPath affine(java.awt.geom.AffineTransform transform, double angle, double scale)
-
moveTo
public void moveTo(XPoint2D pt)
-
lineTo
public void lineTo(XPoint2D pt)
-
moveTo
public void moveTo(double x, double y)
-
lineTo
public void lineTo(double x, double y)
-
cubicTo
public void cubicTo(double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)
-
quadTo
public void quadTo(double ctrlx, double ctrly, double x2, double y2)
-
arcTo
public void arcTo(double rx, double ry, double x_axis_rotation, double large_arc_flag, double sweep_flag, double x, double y)
-
arcTo
public void arcTo(XPoint2D pt, double radius, double large_arc_flag, double sweep_flag)
-
closePath
public void closePath()
-
getMaxX
public double getMaxX()
-
getMaxY
public double getMaxY()
-
getMinX
public double getMinX()
-
getMinY
public double getMinY()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
iterator
public java.util.Iterator<USegment> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<USegment>
-
isOpenIconic
public boolean isOpenIconic()
-
setOpenIconic
public void setOpenIconic(boolean isOpenIconic)
-
getComment
public final java.lang.String getComment()
-
getCodeLine
public final java.lang.String getCodeLine()
-
setIgnoreForCompressionOnX
public void setIgnoreForCompressionOnX()
-
setIgnoreForCompressionOnY
public void setIgnoreForCompressionOnY()
-
drawWhenCompressed
public void drawWhenCompressed(UGraphic ug, CompressionMode mode)
- Specified by:
drawWhenCompressed
in interfaceUShapeIgnorableForCompression
-
isIgnoreForCompressionOn
public boolean isIgnoreForCompressionOn(CompressionMode mode)
- Specified by:
isIgnoreForCompressionOn
in interfaceUShapeIgnorableForCompression
-
-