public class URectangle extends java.lang.Object implements UShapeSized, UShapeIgnorableForCompression
Constructor and Description |
---|
URectangle(Dimension2D dim) |
URectangle(double width,
double height) |
Modifier and Type | Method and Description |
---|---|
URectangle |
clip(UClip clip) |
Shadowable |
diagonalCorner(double diagonalCorner) |
void |
drawWhenCompressed(UGraphic ug,
CompressionMode mode) |
java.lang.String |
getCodeLine() |
java.lang.String |
getComment() |
double |
getDeltaShadow() |
double |
getHeight() |
MinMax |
getMinMax() |
double |
getRx() |
double |
getRy() |
double |
getWidth() |
URectangle |
ignoreForCompressionOnX() |
URectangle |
ignoreForCompressionOnY() |
boolean |
isIgnoreForCompressionOn(CompressionMode mode) |
URectangle |
rounded(double round) |
void |
setDeltaShadow(double deltaShadow) |
java.lang.String |
toString() |
URectangle |
withCommentAndCodeLine(java.lang.String comment,
java.lang.String codeLine) |
URectangle |
withHeight(double newHeight) |
URectangle |
withWidth(double newWidth) |
public URectangle(double width, double height)
public URectangle(Dimension2D dim)
public URectangle withHeight(double newHeight)
public URectangle withWidth(double newWidth)
public URectangle withCommentAndCodeLine(java.lang.String comment, java.lang.String codeLine)
public URectangle rounded(double round)
public Shadowable diagonalCorner(double diagonalCorner)
public final URectangle ignoreForCompressionOnX()
public final URectangle ignoreForCompressionOnY()
public java.lang.String toString()
toString
in class java.lang.Object
public double getWidth()
getWidth
in interface UShapeSized
public double getHeight()
getHeight
in interface UShapeSized
public double getRx()
public double getRy()
public URectangle clip(UClip clip)
public MinMax getMinMax()
public final java.lang.String getComment()
public java.lang.String getCodeLine()
public void drawWhenCompressed(UGraphic ug, CompressionMode mode)
drawWhenCompressed
in interface UShapeIgnorableForCompression
public boolean isIgnoreForCompressionOn(CompressionMode mode)
isIgnoreForCompressionOn
in interface UShapeIgnorableForCompression
public double getDeltaShadow()
getDeltaShadow
in interface Shadowable
public void setDeltaShadow(double deltaShadow)
setDeltaShadow
in interface Shadowable