Interface SVGRectangle
- All Superinterfaces:
AllowsConditionalProcessingAttributes, AllowsGlobalEventAttributes, AllowsGraphicalEventAttributes, AllowsPresentationAttributes, AllowsStyleAttributes, SVGElement, SVGElementWithChildren
- All Known Implementing Classes:
SVGElementAdapter, SVGGenericElement, SVGRectangleImpl
@ClassVersion(sourceVersion="$Id: SVGRectangle.java 1074 2023-10-02 12:05:06Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public sealed interface SVGRectangle
extends SVGElementWithChildren, AllowsConditionalProcessingAttributes, AllowsGlobalEventAttributes, AllowsGraphicalEventAttributes, AllowsPresentationAttributes, AllowsStyleAttributes
permits SVGElementAdapter, SVGRectangleImpl
The definition for the SVG
<rect> element.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: SVGRectangle.java 1074 2023-10-02 12:05:06Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.svg.SVGRectangle"
-
Field Summary
Fields inherited from interface AllowsConditionalProcessingAttributes
CONDITIONALPROCESSING_ATTRIBUTESFields inherited from interface AllowsGlobalEventAttributes
GLOBALEVENT_ATTRIBUTESFields inherited from interface AllowsGraphicalEventAttributes
GRAPHICALEVENT_ATTRIBUTESFields inherited from interface AllowsPresentationAttributes
PRESENTATION_ATTRIBUTESFields inherited from interface AllowsStyleAttributes
STYLE_ATTRIBUTESFields inherited from interface SVGElement
CORE_ATTRIBUTES -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddefineRectangle(SVGNumber x, SVGNumber y, SVGNumber width, SVGNumber height) Sets the start and end points for this line.voidSets the height for this SVG<rect>element.default voidsetPathLength(double length) Sets the length of the path represented by this SVG<rect>element.default voidsetPathLength(long length) Sets the length of the path represented by this SVG<rect>element.voidSets the length of the path represented by this SVG<rect>element.voidSets the horizontal corner radius for this SVG<rect>element.voidSets the vertical corner radius for this SVG<rect>element.voidSets the width for this SVG<rect>element.voidSets the x coordinate for the upper left corner of the rectangle.voidSets the y coordinate for the upper left corner of the rectangle.Methods inherited from interface AllowsConditionalProcessingAttributes
setExternalResourcesRequired, setRequiredExtensions, setRequiredFeatures, setSystemLanguageMethods inherited from interface AllowsGlobalEventAttributes
setCancelHandler, setCanPlayHandler, setCanPlayThroughHandler, setChangeHandler, setClickHandler, setCloseHandler, setCueChangeHandler, setDblClickHandler, setDragEndHandler, setDragEnterHandler, setDragExitHandler, setDragHandler, setDragLeaveHandler, setDragOverHandler, setDragStartHandler, setDropHandler, setDurationChangeHandler, setEmptiedHandler, setEndedHandler, setErrorHandler, setFocusHandler, setInputHandler, setInvalidHandler, setKeyDownHandler, setKeyPressHandler, setKeyUpHandler, setLoadedDataHandler, setLoadedMetadataHandler, setLoadHandler, setLoadStartHandler, setMouseDownHandler, setMouseEnterHandler, setMouseLeaveHandler, setMouseMoveHandler, setMouseOutHandler, setMouseOverHandler, setMouseUpHandler, setMouseWheelHandler, setPauseHandler, setPlayHandler, setPlayingHandler, setProgressHandler, setRateChangeHandler, setResetHandler, setResizeHandler, setScrollHandler, setSeekedHandler, setSeekingHandler, setSelectHandler, setShowHandler, setStalledHandler, setSubmitHandler, setSuspendHandler, setTimeUpdateHandler, setToggleHandler, setVolumeChangeHandler, setWaitHandlerMethods inherited from interface AllowsGraphicalEventAttributes
setActivationHandler, setFocusInHandler, setFocusOutHandlerMethods inherited from interface AllowsPresentationAttributes
setAlignmentBaseline, setBaselineShift, setClip, setClipPath, setClipRule, setColor, setColorInterpolation, setColorInterpolationFilters, setColorProfile, setColorRendering, setCursor, setDirection, setDisplay, setDominantBaseline, setEnableBackground, setFill, setFillOpacity, setFillRule, setFilter, setFloodColor, setFloodOpacity, setFontFamily, setFontSize, setFontSizeAdjust, setFontStretch, setFontStyle, setFontVariant, setFontWeight, setGlyphOrientationHorizontal, setGlyphOrientationVertical, setImageRendering, setKerning, setLetterSpacing, setLightingColor, setMarkerEnd, setMarkerMid, setMarkerStart, setMask, setOpacity, setOverflow, setPointerEvents, setShapeRendering, setStopColor, setStopOpacity, setStroke, setStrokeDashArray, setStrokeDashOffset, setStrokeLineCap, setStrokeLineJoin, setStrokeMiterLimit, setStrokeOpacity, setStrokeWidth, setTextAnchor, setTextDecoration, setTextRendering, setTransform, setUnicodeBidi, setVectorEffect, setVisibility, setWordSpacing, setWritingModeMethods inherited from interface AllowsStyleAttributes
setClass, setStyleMethods inherited from interface SVGElement
addComment, getSVGElementCategory, setId, setLang, setPreserveSpace, setTabIndex, setTitle, setXMLBase, setXMLId, setXMLLangMethods inherited from interface SVGElementWithChildren
addChild, setDescription
-
Method Details
-
defineRectangle
Sets the start and end points for this line.- Parameters:
x- The x coordinate for the upper left corner of the rectangle.y- The y coordinate for the upper left corner of the rectangle.width- The width of the rectangle.height- The height of the rectangle.
-
setHeight
-
setPathLength
Sets the length of the path represented by this SVG<rect>element.- Parameters:
length- The author's computation of the total length of the path, in user units. This type is used to calibrate the user agent's own distance-along-a-path calculations with that of the author. The user agent will scale all distance-along-a-path computations by the ratio of this type to the user agent's own computed type for total path length.
A type of zero is valid, but a negative type is an error.- Throws:
IllegalArgumentException- The type is less than 0.
-
setPathLength
Sets the length of the path represented by this SVG<rect>element.- Parameters:
length- The author's computation of the total length of the path, in user units. This type is used to calibrate the user agent's own distance-along-a-path calculations with that of the author. The user agent will scale all distance-along-a-path computations by the ratio of this type to the user agent's own computed type for total path length.
A type of zero is valid, but a negative type is an error.- Throws:
IllegalArgumentException- The type is less than 0.
-
setPathLength
Sets the length of the path represented by this SVG<rect>element.- Parameters:
length- The author's computation of the total length of the path, in user units. This type is used to calibrate the user agent's own distance-along-a-path calculations with that of the author. The user agent will scale all distance-along-a-path computations by the ratio of this type to the user agent's own computed type for total path length.
A type of zero is valid, but a negative type is an error.- Throws:
IllegalArgumentException- The type is less than 0.
-
setRx
-
setRy
-
setWidth
-
setX
-
setY
-
