Class URectangle
- java.lang.Object
-
- net.sourceforge.plantuml.ugraphic.URectangle
-
- All Implemented Interfaces:
Scalable,Shadowable,UShape,UShapeSized
public class URectangle extends java.lang.Object implements Scalable, UShapeSized
-
-
Constructor Summary
Constructors Constructor Description URectangle(double width, double height)URectangle(double width, double height, double rx, double ry)URectangle(double width, double height, double rx, double ry, java.lang.String comment)URectangle(java.awt.geom.Dimension2D dim)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URectangleclip(UClip clip)java.lang.StringgetComment()doublegetDeltaShadow()doublegetHeight()MinMaxgetMinMax()doublegetRx()doublegetRy()UShapegetScaled(double scale)doublegetWidth()booleanisIgnoreForCompression()voidsetDeltaShadow(double deltaShadow)voidsetIgnoreForCompression(boolean ignoreForCompression)java.lang.StringtoString()URectanglewithHeight(double newHeight)URectanglewithWidth(double newWidth)
-
-
-
Constructor Detail
-
URectangle
public URectangle(double width, double height)
-
URectangle
public URectangle(double width, double height, double rx, double ry)
-
URectangle
public URectangle(double width, double height, double rx, double ry, java.lang.String comment)
-
URectangle
public URectangle(java.awt.geom.Dimension2D dim)
-
-
Method Detail
-
withHeight
public URectangle withHeight(double newHeight)
-
withWidth
public URectangle withWidth(double newWidth)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getWidth
public double getWidth()
- Specified by:
getWidthin interfaceUShapeSized
-
getHeight
public double getHeight()
- Specified by:
getHeightin interfaceUShapeSized
-
getRx
public double getRx()
-
getRy
public double getRy()
-
clip
public URectangle clip(UClip clip)
-
getMinMax
public MinMax getMinMax()
-
getComment
public final java.lang.String getComment()
-
isIgnoreForCompression
public final boolean isIgnoreForCompression()
-
setIgnoreForCompression
public final void setIgnoreForCompression(boolean ignoreForCompression)
-
getDeltaShadow
public double getDeltaShadow()
- Specified by:
getDeltaShadowin interfaceShadowable
-
setDeltaShadow
public void setDeltaShadow(double deltaShadow)
- Specified by:
setDeltaShadowin interfaceShadowable
-
-