Class URectangle

java.lang.Object
net.sourceforge.plantuml.ugraphic.URectangle
All Implemented Interfaces:
Shadowable, UShape, UShapeIgnorableForCompression, UShapeSized

public class URectangle extends java.lang.Object implements UShapeSized, UShapeIgnorableForCompression
  • Constructor Details

    • URectangle

      public URectangle(double width, double height)
    • URectangle

      public URectangle(Dimension2D dim)
  • Method Details

    • withHeight

      public URectangle withHeight(double newHeight)
    • withWidth

      public URectangle withWidth(double newWidth)
    • withCommentAndCodeLine

      public URectangle withCommentAndCodeLine(java.lang.String comment, java.lang.String codeLine)
    • rounded

      public URectangle rounded(double round)
    • diagonalCorner

      public Shadowable diagonalCorner(double diagonalCorner)
    • ignoreForCompressionOnX

      public final URectangle ignoreForCompressionOnX()
    • ignoreForCompressionOnY

      public final URectangle ignoreForCompressionOnY()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • getWidth

      public double getWidth()
      Specified by:
      getWidth in interface UShapeSized
    • getHeight

      public double getHeight()
      Specified by:
      getHeight in interface UShapeSized
    • 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()
    • getCodeLine

      public java.lang.String getCodeLine()
    • drawWhenCompressed

      public void drawWhenCompressed(UGraphic ug, CompressionMode mode)
      Specified by:
      drawWhenCompressed in interface UShapeIgnorableForCompression
    • isIgnoreForCompressionOn

      public boolean isIgnoreForCompressionOn(CompressionMode mode)
      Specified by:
      isIgnoreForCompressionOn in interface UShapeIgnorableForCompression
    • getDeltaShadow

      public double getDeltaShadow()
      Specified by:
      getDeltaShadow in interface Shadowable
    • setDeltaShadow

      public void setDeltaShadow(double deltaShadow)
      Specified by:
      setDeltaShadow in interface Shadowable