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 URectangle
clip(UClip clip)
java.lang.String
getComment()
double
getDeltaShadow()
double
getHeight()
MinMax
getMinMax()
double
getRx()
double
getRy()
UShape
getScaled(double scale)
double
getWidth()
boolean
isIgnoreForCompression()
void
setDeltaShadow(double deltaShadow)
void
setIgnoreForCompression(boolean ignoreForCompression)
java.lang.String
toString()
URectangle
withHeight(double newHeight)
URectangle
withWidth(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:
toString
in classjava.lang.Object
-
getWidth
public double getWidth()
- Specified by:
getWidth
in interfaceUShapeSized
-
getHeight
public double getHeight()
- Specified by:
getHeight
in 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:
getDeltaShadow
in interfaceShadowable
-
setDeltaShadow
public void setDeltaShadow(double deltaShadow)
- Specified by:
setDeltaShadow
in interfaceShadowable
-
-