Klasse CornerShadow

Alle implementierten Schnittstellen:
IElement, ICornerShadow

public final class CornerShadow extends AbstractElement implements ICornerShadow
A CornerShadow is not mutable.
Version:
2025-08-09
Autor:
Silvan Wyss
  • Felddetails

    • DEFAULT_LOCATION

      public static final Location DEFAULT_LOCATION
  • Methodendetails

    • fromCornerShadow

      public static CornerShadow fromCornerShadow(ICornerShadow cornerShadow)
      Parameter:
      cornerShadow -
      Gibt zurück:
      a CornerShadow from the given cornerShadow.
      Löst aus:
      RuntimeException - if the given cornerShadow is null.
    • fromSpecification

      public static CornerShadow fromSpecification(INode<?> specification)
      Parameter:
      specification -
      Gibt zurück:
      a CornerShadow from the given specification.
      Löst aus:
      RuntimeException - if the given specification is not valid.
    • withCornerAndLocationAndSide1ThicknessAnsSide2ThicknessAndBlurRadiusAndColor

      public static CornerShadow withCornerAndLocationAndSide1ThicknessAnsSide2ThicknessAndBlurRadiusAndColor(Corner corner, Location location, int side1Thickness, int side2Thickness, int blurRadius, IColor color)
      Parameter:
      corner -
      location -
      side1Thickness -
      side2Thickness -
      blurRadius -
      color -
      Gibt zurück:
      a new CornerShadow with the given corner, location, side1Thickness, side2Thickness, blurRadius and color.
      Löst aus:
      RuntimeException - if the given corner is null.
      RuntimeException - if the given location is null.
      RuntimeException - if the given side1Thickness is negative.
      RuntimeException - if the given side2Thickness is negative.
      RuntimeException - if the given blurRadius is negative.
      RuntimeException - if the given color is null.
    • getAttributes

      public IContainer<INode<?>> getAttributes()
      Angegeben von:
      getAttributes in Schnittstelle IElement
      Gibt zurück:
      the attributes of the current IElement.
    • getBlurRadius

      public int getBlurRadius()
      Angegeben von:
      getBlurRadius in Schnittstelle ICornerShadow
      Gibt zurück:
      the blur radius of the current {ICornerShadow}.
    • getColor

      public IColor getColor()
      Angegeben von:
      getColor in Schnittstelle ICornerShadow
      Gibt zurück:
      the color of the current {ICornerShadow}.
    • getCorner

      public Corner getCorner()
      Angegeben von:
      getCorner in Schnittstelle ICornerShadow
      Gibt zurück:
      the corner of the current {ICornerShadow}.
    • getLocation

      public Location getLocation()
      Angegeben von:
      getLocation in Schnittstelle ICornerShadow
      Gibt zurück:
      the location of the current {ICornerShadow}.
    • getSide1Thickness

      public int getSide1Thickness()
      Angegeben von:
      getSide1Thickness in Schnittstelle ICornerShadow
      Gibt zurück:
      the side 1 thickness of the current {ICornerShadow}.
    • getSide2Thickness

      public int getSide2Thickness()
      Angegeben von:
      getSide2Thickness in Schnittstelle ICornerShadow
      Gibt zurück:
      the side 2 thickness of the current {ICornerShadow}.