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 voidadd(double[] coord, USegmentType pathType)UPathaffine(java.awt.geom.AffineTransform transform, double angle, double scale)voidarcTo(double rx, double ry, double x_axis_rotation, double large_arc_flag, double sweep_flag, double x, double y)voidarcTo(XPoint2D pt, double radius, double large_arc_flag, double sweep_flag)voidclosePath()voidcubicTo(double ctrlx1, double ctrly1, double ctrlx2, double ctrly2, double x2, double y2)voidcubicTo(XPoint2D p1, XPoint2D p2, XPoint2D p)voiddrawWhenCompressed(UGraphic ug, CompressionMode mode)java.lang.StringgetCodeLine()java.lang.StringgetComment()doublegetMaxX()doublegetMaxY()doublegetMinX()doublegetMinY()booleanisEmpty()booleanisIgnoreForCompressionOn(CompressionMode mode)booleanisOpenIconic()java.util.Iterator<USegment>iterator()voidlineTo(double x, double y)voidlineTo(XPoint2D pt)voidmoveTo(double x, double y)voidmoveTo(XPoint2D pt)static UPathnone()voidquadTo(double ctrlx, double ctrly, double x2, double y2)voidquadTo(XPoint2D ctrl, XPoint2D pt)UPathrotate(double theta)voidsetIgnoreForCompressionOnX()voidsetIgnoreForCompressionOnY()voidsetOpenIconic(boolean isOpenIconic)java.lang.StringtoString()UPathtranslate(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:
toStringin classjava.lang.Object
-
iterator
public java.util.Iterator<USegment> iterator()
- Specified by:
iteratorin 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:
drawWhenCompressedin interfaceUShapeIgnorableForCompression
-
isIgnoreForCompressionOn
public boolean isIgnoreForCompressionOn(CompressionMode mode)
- Specified by:
isIgnoreForCompressionOnin interfaceUShapeIgnorableForCompression
-
-