001/* 002 * ============================================================================ 003 * Copyright © 2002-2023 by Thomas Thrien. 004 * All Rights Reserved. 005 * ============================================================================ 006 * Licensed to the public under the agreements of the GNU Lesser General Public 007 * License, version 3.0 (the "License"). You may obtain a copy of the License at 008 * 009 * http://www.gnu.org/licenses/lgpl.html 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 014 * License for the specific language governing permissions and limitations 015 * under the License. 016 */ 017 018package org.tquadrat.foundation.svg; 019 020import static org.apiguardian.api.API.Status.STABLE; 021import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_AlignmentBaseline; 022import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_BaselineShift; 023import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Clip; 024import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ClipPath; 025import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ClipRule; 026import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Color; 027import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ColorInterpolation; 028import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ColorInterpolationFilters; 029import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ColorProfile; 030import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ColorRendering; 031import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Cursor; 032import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Direction; 033import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Display; 034import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_DominantBaseline; 035import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_EnableBackground; 036import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Fill; 037import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FillOpacity; 038import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FillRule; 039import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Filter; 040import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FloodColor; 041import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FloodOpacity; 042import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FontFamily; 043import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FontSize; 044import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FontSizeAdjust; 045import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FontStretch; 046import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FontStyle; 047import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FontVariant; 048import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_FontWeight; 049import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_GlyphOrientationHorizontal; 050import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_GlyphOrientationVertical; 051import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ImageRendering; 052import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Kerning; 053import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_LetterSpacing; 054import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_LightingColor; 055import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_MarkerEnd; 056import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_MarkerMid; 057import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_MarkerStart; 058import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Mask; 059import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Opacity; 060import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Overflow; 061import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_PointerEvents; 062import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_ShapeRendering; 063import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StopColor; 064import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StopOpacity; 065import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Stroke; 066import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StrokeDashArray; 067import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StrokeDashOffset; 068import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StrokeLineCap; 069import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StrokeLineJoin; 070import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StrokeMiterLimit; 071import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StrokeOpacity; 072import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_StrokeWidth; 073import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_TextAnchor; 074import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_TextDecoration; 075import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_TextRendering; 076import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Transform; 077import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_UnicodeBidi; 078import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_VectorEffect; 079import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_Visibility; 080import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_WordSpacing; 081import static org.tquadrat.foundation.svg.SVGUtils.SVGATTRIBUTE_WritingMode; 082 083import java.net.URI; 084import java.util.List; 085 086import org.apiguardian.api.API; 087import org.tquadrat.foundation.annotation.ClassVersion; 088import org.tquadrat.foundation.svg.type.SVGAlignmentBaseLine; 089import org.tquadrat.foundation.svg.type.SVGColor; 090import org.tquadrat.foundation.svg.type.SVGNumber; 091import org.tquadrat.foundation.svg.type.SVGPaint; 092import org.tquadrat.foundation.svg.type.SVGTransform; 093 094/** 095 * SVG elements that allow the presentation attributes 096 * {@value SVGUtils#SVGATTRIBUTE_AlignmentBaseline}, 097 * {@value SVGUtils#SVGATTRIBUTE_BaselineShift}, 098 * {@value SVGUtils#SVGATTRIBUTE_Clip}, 099 * {@value SVGUtils#SVGATTRIBUTE_ClipPath}, 100 * {@value SVGUtils#SVGATTRIBUTE_ClipRule}, 101 * {@value SVGUtils#SVGATTRIBUTE_Color}, 102 * {@value SVGUtils#SVGATTRIBUTE_ColorInterpolation}, 103 * {@value SVGUtils#SVGATTRIBUTE_ColorInterpolationFilters}, 104 * {@value SVGUtils#SVGATTRIBUTE_ColorProfile}, 105 * {@value SVGUtils#SVGATTRIBUTE_ColorRendering}, 106 * {@value SVGUtils#SVGATTRIBUTE_Cursor}, 107 * {@value SVGUtils#SVGATTRIBUTE_Direction}, 108 * {@value SVGUtils#SVGATTRIBUTE_Display}, 109 * {@value SVGUtils#SVGATTRIBUTE_DominantBaseline}, 110 * {@value SVGUtils#SVGATTRIBUTE_EnableBackground}, 111 * {@value SVGUtils#SVGATTRIBUTE_Fill}, 112 * {@value SVGUtils#SVGATTRIBUTE_FillOpacity}, 113 * {@value SVGUtils#SVGATTRIBUTE_FillRule}, 114 * {@value SVGUtils#SVGATTRIBUTE_Filter}, 115 * {@value SVGUtils#SVGATTRIBUTE_FloodColor}, 116 * {@value SVGUtils#SVGATTRIBUTE_FloodOpacity}, 117 * {@value SVGUtils#SVGATTRIBUTE_FontFamily}, 118 * {@value SVGUtils#SVGATTRIBUTE_FontSize}, 119 * {@value SVGUtils#SVGATTRIBUTE_FontSizeAdjust}, 120 * {@value SVGUtils#SVGATTRIBUTE_FontStretch}, 121 * {@value SVGUtils#SVGATTRIBUTE_FontStyle}, 122 * {@value SVGUtils#SVGATTRIBUTE_FontVariant}, 123 * {@value SVGUtils#SVGATTRIBUTE_FontWeight}, 124 * {@value SVGUtils#SVGATTRIBUTE_GlyphOrientationHorizontal}, 125 * {@value SVGUtils#SVGATTRIBUTE_GlyphOrientationVertical}, 126 * {@value SVGUtils#SVGATTRIBUTE_ImageRendering}, 127 * {@value SVGUtils#SVGATTRIBUTE_Kerning}, 128 * {@value SVGUtils#SVGATTRIBUTE_LetterSpacing}, 129 * {@value SVGUtils#SVGATTRIBUTE_LightingColor}, 130 * {@value SVGUtils#SVGATTRIBUTE_MarkerEnd}, 131 * {@value SVGUtils#SVGATTRIBUTE_MarkerMid}, 132 * {@value SVGUtils#SVGATTRIBUTE_MarkerStart}, 133 * {@value SVGUtils#SVGATTRIBUTE_Mask}, 134 * {@value SVGUtils#SVGATTRIBUTE_Opacity}, 135 * {@value SVGUtils#SVGATTRIBUTE_Overflow}, 136 * {@value SVGUtils#SVGATTRIBUTE_PointerEvents}, 137 * {@value SVGUtils#SVGATTRIBUTE_ShapeRendering}, 138 * {@value SVGUtils#SVGATTRIBUTE_StopColor}, 139 * {@value SVGUtils#SVGATTRIBUTE_StopOpacity}, 140 * {@value SVGUtils#SVGATTRIBUTE_Stroke}, 141 * {@value SVGUtils#SVGATTRIBUTE_StrokeDashArray}, 142 * {@value SVGUtils#SVGATTRIBUTE_StrokeDashOffset}, 143 * {@value SVGUtils#SVGATTRIBUTE_StrokeLineCap}, 144 * {@value SVGUtils#SVGATTRIBUTE_StrokeLineJoin}, 145 * {@value SVGUtils#SVGATTRIBUTE_StrokeMiterLimit}, 146 * {@value SVGUtils#SVGATTRIBUTE_StrokeOpacity}, 147 * {@value SVGUtils#SVGATTRIBUTE_StrokeWidth}, 148 * {@value SVGUtils#SVGATTRIBUTE_TextAnchor}, 149 * {@value SVGUtils#SVGATTRIBUTE_TextDecoration}, 150 * {@value SVGUtils#SVGATTRIBUTE_TextRendering}, 151 * {@value SVGUtils#SVGATTRIBUTE_Transform}, 152 * {@value SVGUtils#SVGATTRIBUTE_UnicodeBidi}, 153 * {@value SVGUtils#SVGATTRIBUTE_VectorEffect}, 154 * {@value SVGUtils#SVGATTRIBUTE_Visibility}, 155 * {@value SVGUtils#SVGATTRIBUTE_WordSpacing}, 156 * and 157 * {@value SVGUtils#SVGATTRIBUTE_WritingMode} 158 * will implement this interface. 159 * 160 * @extauthor Thomas Thrien - thomas.thrien@tquadrat.org 161 * @version $Id: AllowsPresentationAttributes.java 1074 2023-10-02 12:05:06Z tquadrat $ 162 * @since 0.0.5 163 * 164 * @UMLGraph.link 165 */ 166@SuppressWarnings( "ClassWithTooManyMethods" ) 167@ClassVersion( sourceVersion = "$Id: AllowsPresentationAttributes.java 1074 2023-10-02 12:05:06Z tquadrat $" ) 168@API( status = STABLE, since = "0.0.5" ) 169public sealed interface AllowsPresentationAttributes 170 permits SVG, SVGClipPath, SVGGroup, SVGLine, SVGMarker, SVGPath, SVGRectangle, SVGSymbol, SVGTSpan, SVGText, SVGUse 171{ 172 /*------------------------*\ 173 ====** Static Initialisations **=========================================== 174 \*------------------------*/ 175 /** 176 * The presentation attributes. 177 */ 178 @SuppressWarnings( "StaticCollection" ) 179 public static final List<String> PRESENTATION_ATTRIBUTES = List.of( 180 SVGATTRIBUTE_AlignmentBaseline, 181 SVGATTRIBUTE_BaselineShift, 182 SVGATTRIBUTE_Clip, 183 SVGATTRIBUTE_ClipPath, 184 SVGATTRIBUTE_ClipRule, 185 SVGATTRIBUTE_Color, 186 SVGATTRIBUTE_ColorInterpolation, 187 SVGATTRIBUTE_ColorInterpolationFilters, 188 SVGATTRIBUTE_ColorProfile, 189 SVGATTRIBUTE_ColorRendering, 190 SVGATTRIBUTE_Cursor, 191 SVGATTRIBUTE_Direction, 192 SVGATTRIBUTE_Display, 193 SVGATTRIBUTE_DominantBaseline, 194 SVGATTRIBUTE_EnableBackground, 195 SVGATTRIBUTE_Fill, 196 SVGATTRIBUTE_FillOpacity, 197 SVGATTRIBUTE_FillRule, 198 SVGATTRIBUTE_Filter, 199 SVGATTRIBUTE_FloodColor, 200 SVGATTRIBUTE_FloodOpacity, 201 SVGATTRIBUTE_FontFamily, 202 SVGATTRIBUTE_FontSize, 203 SVGATTRIBUTE_FontSizeAdjust, 204 SVGATTRIBUTE_FontStretch, 205 SVGATTRIBUTE_FontStyle, 206 SVGATTRIBUTE_FontVariant, 207 SVGATTRIBUTE_FontWeight, 208 SVGATTRIBUTE_GlyphOrientationHorizontal, 209 SVGATTRIBUTE_GlyphOrientationVertical, 210 SVGATTRIBUTE_ImageRendering, 211 SVGATTRIBUTE_Kerning, 212 SVGATTRIBUTE_LetterSpacing, 213 SVGATTRIBUTE_LightingColor, 214 SVGATTRIBUTE_MarkerEnd, 215 SVGATTRIBUTE_MarkerMid, 216 SVGATTRIBUTE_MarkerStart, 217 SVGATTRIBUTE_Mask, 218 SVGATTRIBUTE_Opacity, 219 SVGATTRIBUTE_Overflow, 220 SVGATTRIBUTE_PointerEvents, 221 SVGATTRIBUTE_ShapeRendering, 222 SVGATTRIBUTE_StopColor, 223 SVGATTRIBUTE_StopOpacity, 224 SVGATTRIBUTE_Stroke, 225 SVGATTRIBUTE_StrokeDashArray, 226 SVGATTRIBUTE_StrokeDashOffset, 227 SVGATTRIBUTE_StrokeLineCap, 228 SVGATTRIBUTE_StrokeLineJoin, 229 SVGATTRIBUTE_StrokeMiterLimit, 230 SVGATTRIBUTE_StrokeOpacity, 231 SVGATTRIBUTE_StrokeWidth, 232 SVGATTRIBUTE_TextAnchor, 233 SVGATTRIBUTE_TextDecoration, 234 SVGATTRIBUTE_TextRendering, 235 SVGATTRIBUTE_Transform, 236 SVGATTRIBUTE_UnicodeBidi, 237 SVGATTRIBUTE_VectorEffect, 238 SVGATTRIBUTE_Visibility, 239 SVGATTRIBUTE_WordSpacing, 240 SVGATTRIBUTE_WritingMode 241 ); 242 243 /*---------*\ 244 ====** Methods **========================================================== 245 \*---------*/ 246 /** 247 * Sets the presentation attribute {@code alignment-baseline} for this SVG element. 248 * 249 * @param value The attribute type. 250 * 251 * @see SVGUtils#SVGATTRIBUTE_AlignmentBaseline 252 */ 253 public void setAlignmentBaseline( final SVGAlignmentBaseLine value ); 254 255 /** 256 * Sets the presentation attribute {@code baseline-shift} for this SVG element. 257 * 258 * @param value The attribute type. 259 * 260 * @see SVGUtils#SVGATTRIBUTE_BaselineShift 261 */ 262 public void setBaselineShift( final String value ); 263 264 /** 265 * Sets the presentation attribute {@code clip} for this SVG element. 266 * 267 * @param value The attribute type. 268 * 269 * @see SVGUtils#SVGATTRIBUTE_Clip 270 */ 271 public void setClip( final String value ); 272 273 /** 274 * Sets the {@code clip-path} attribute for this SVG element. 275 * 276 * @param value The URI for the clip path. 277 * 278 * @see SVGUtils#SVGATTRIBUTE_ClipPath 279 */ 280 public void setClipPath( final URI value ); 281 282 /** 283 * Sets the presentation attribute {@code clip-rule} for this SVG element. 284 * 285 * @param value The attribute type. 286 * 287 * @see SVGUtils#SVGATTRIBUTE_ClipRule 288 */ 289 public void setClipRule( final String value ); 290 291 /** 292 * Sets the colour for this SVG element. 293 * 294 * @param value The colour. 295 * 296 * @see SVGUtils#SVGATTRIBUTE_Color 297 */ 298 public void setColor( @SuppressWarnings( "UseOfConcreteClass" ) final SVGColor value ); 299 300 /** 301 * Sets the presentation attribute {@code color-interpolation} for this SVG element. 302 * 303 * @param value The attribute type. 304 * 305 * @see SVGUtils#SVGATTRIBUTE_ColorInterpolation 306 */ 307 public void setColorInterpolation( final String value ); 308 309 /** 310 * Sets the presentation attribute {@code color-interpolation-filters} for this SVG element. 311 * 312 * @param value The attribute type. 313 * 314 * @see SVGUtils#SVGATTRIBUTE_ColorInterpolationFilters 315 */ 316 public void setColorInterpolationFilters( final String value ); 317 318 /** 319 * Sets the presentation attribute {@code color-profile} for this SVG element. 320 * 321 * @param value The attribute type. 322 * 323 * @see SVGUtils#SVGATTRIBUTE_ColorProfile 324 */ 325 public void setColorProfile( final String value ); 326 327 /** 328 * Sets the presentation attribute {@code color-rendering} for this SVG element. 329 * 330 * @param value The attribute type. 331 * 332 * @see SVGUtils#SVGATTRIBUTE_ColorRendering 333 */ 334 public void setColorRendering( final String value ); 335 336 /** 337 * Sets the presentation attribute {@code cursor} for this SVG element. 338 * 339 * @param value The attribute type. 340 * 341 * @see SVGUtils#SVGATTRIBUTE_Cursor 342 */ 343 public void setCursor( final String value ); 344 345 /** 346 * Sets the presentation attribute {@code direction} for this SVG element. 347 * 348 * @param value The attribute type. 349 * 350 * @see SVGUtils#SVGATTRIBUTE_Direction 351 */ 352 public void setDirection( final String value ); 353 354 /** 355 * Sets the presentation attribute {@code display} for this SVG element. 356 * 357 * @param value The attribute type. 358 * 359 * @see SVGUtils#SVGATTRIBUTE_Display 360 */ 361 public void setDisplay( final String value ); 362 363 /** 364 * Sets the presentation attribute {@code dominant-baseline} for this SVG element. 365 * 366 * @param value The attribute type. 367 * 368 * @see SVGUtils#SVGATTRIBUTE_DominantBaseline 369 */ 370 public void setDominantBaseline( final String value ); 371 372 /** 373 * Sets the presentation attribute {@code enable-background} for this SVG element. 374 * 375 * @param value The attribute type. 376 * 377 * @see SVGUtils#SVGATTRIBUTE_EnableBackground 378 */ 379 public void setEnableBackground( final String value ); 380 381 /** 382 * Sets the presentation attribute {@code fill} for this SVG element. 383 * 384 * @param value The attribute type. 385 * 386 * @see SVGUtils#SVGATTRIBUTE_Fill 387 */ 388 public void setFill( @SuppressWarnings( "UseOfConcreteClass" ) final SVGPaint value ); 389 390 /** 391 * Sets the presentation attribute {@code fill-opacity} for this SVG element. 392 * 393 * @param value The attribute type. 394 * 395 * @see SVGUtils#SVGATTRIBUTE_FillOpacity 396 */ 397 public void setFillOpacity( final String value ); 398 399 /** 400 * Sets the presentation attribute {@code fill-rule} for this SVG element. 401 * 402 * @param value The attribute type. 403 * 404 * @see SVGUtils#SVGATTRIBUTE_FillRule 405 */ 406 public void setFillRule( final String value ); 407 408 /** 409 * Sets the presentation attribute {@code filter} for this SVG element. 410 * 411 * @param value The attribute type. 412 * 413 * @see SVGUtils#SVGATTRIBUTE_Filter 414 */ 415 public void setFilter( final String value ); 416 417 /** 418 * Sets the presentation attribute {@code flood-color} for this SVG element. 419 * 420 * @param value The attribute type. 421 * 422 * @see SVGUtils#SVGATTRIBUTE_FloodColor 423 */ 424 public void setFloodColor( final String value ); 425 426 /** 427 * Sets the presentation attribute {@code flood-opacity} for this SVG element. 428 * 429 * @param value The attribute type. 430 * 431 * @see SVGUtils#SVGATTRIBUTE_FloodOpacity 432 */ 433 public void setFloodOpacity( final String value ); 434 435 /** 436 * Sets the presentation attribute {@code font-family} for this SVG element. 437 * 438 * @param value The attribute type. 439 * 440 * @see SVGUtils#SVGATTRIBUTE_FontFamily 441 */ 442 public void setFontFamily( final String value ); 443 444 /** 445 * Sets the presentation attribute {@code font-size} for this SVG element. 446 * 447 * @param value The attribute type. 448 * 449 * @see SVGUtils#SVGATTRIBUTE_FontSize 450 */ 451 public void setFontSize( final String value ); 452 453 /** 454 * Sets the presentation attribute {@code font-size-adjust} for this SVG element. 455 * 456 * @param value The attribute type. 457 * 458 * @see SVGUtils#SVGATTRIBUTE_FontSizeAdjust 459 */ 460 public void setFontSizeAdjust( final String value ); 461 462 /** 463 * Sets the presentation attribute {@code font-stretch} for this SVG element. 464 * 465 * @param value The attribute type. 466 * 467 * @see SVGUtils#SVGATTRIBUTE_FontStretch 468 */ 469 public void setFontStretch( final String value ); 470 471 /** 472 * Sets the presentation attribute {@code font-style} for this SVG element. 473 * 474 * @param value The attribute type. 475 * 476 * @see SVGUtils#SVGATTRIBUTE_FontStyle 477 */ 478 public void setFontStyle( final String value ); 479 480 /** 481 * Sets the presentation attribute {@code font-variant} for this SVG element. 482 * 483 * @param value The attribute type. 484 * 485 * @see SVGUtils#SVGATTRIBUTE_FontVariant 486 */ 487 public void setFontVariant( final String value ); 488 489 /** 490 * Sets the presentation attribute {@code font-weight} for this SVG element. 491 * 492 * @param value The attribute type. 493 * 494 * @see SVGUtils#SVGATTRIBUTE_FontWeight 495 */ 496 public void setFontWeight( final String value ); 497 498 /** 499 * Sets the presentation attribute {@code glyph-orientation-horizontal} for this SVG element. 500 * 501 * @param value The attribute type. 502 * 503 * @see SVGUtils#SVGATTRIBUTE_GlyphOrientationHorizontal 504 */ 505 public void setGlyphOrientationHorizontal( final String value ); 506 507 /** 508 * Sets the presentation attribute {@code glyph-orientation-vertical} for this SVG element. 509 * 510 * @param value The attribute type. 511 * 512 * @see SVGUtils#SVGATTRIBUTE_GlyphOrientationVertical 513 */ 514 public void setGlyphOrientationVertical( final String value ); 515 516 /** 517 * Sets the presentation attribute {@code image-rendering} for this SVG element. 518 * 519 * @param value The attribute type. 520 * 521 * @see SVGUtils#SVGATTRIBUTE_ImageRendering 522 */ 523 public void setImageRendering( final String value ); 524 525 /** 526 * Sets the presentation attribute {@code kerning} for this SVG element. 527 * 528 * @param value The attribute type. 529 * 530 * @see SVGUtils#SVGATTRIBUTE_Kerning 531 */ 532 public void setKerning( final String value ); 533 534 /** 535 * Sets the presentation attribute {@code letter-spacing} for this SVG element. 536 * 537 * @param value The attribute type. 538 * 539 * @see SVGUtils#SVGATTRIBUTE_LetterSpacing 540 */ 541 public void setLetterSpacing( final String value ); 542 543 /** 544 * Sets the presentation attribute {@code lighting-color} for this SVG element. 545 * 546 * @param value The attribute type. 547 * 548 * @see SVGUtils#SVGATTRIBUTE_LightingColor 549 */ 550 public void setLightingColor( final String value ); 551 552 /** 553 * Sets the {@code marker-end} attribute for this SVG element. 554 * 555 * @param value The URI for the marker. 556 * 557 * @see SVGUtils#SVGATTRIBUTE_MarkerEnd 558 */ 559 public void setMarkerEnd( final URI value ); 560 561 /** 562 * Sets the {@code marker-mid} attribute for this SVG element. 563 * 564 * @param value The URI for the marker. 565 * 566 * @see SVGUtils#SVGATTRIBUTE_MarkerMid 567 */ 568 public void setMarkerMid( final URI value ); 569 570 /** 571 * Sets the {@code marker-start} attribute for this SVG element. 572 * 573 * @param value The URI for the marker. 574 * 575 * @see SVGUtils#SVGATTRIBUTE_MarkerStart 576 */ 577 public void setMarkerStart( final URI value ); 578 579 /** 580 * Sets the presentation attribute {@code mask} for this SVG element. 581 * 582 * @param value The attribute type. 583 * 584 * @see SVGUtils#SVGATTRIBUTE_Mask 585 */ 586 public void setMask( final String value ); 587 588 /** 589 * Sets the presentation attribute {@code opacity} for this SVG element. 590 * 591 * @param value The attribute type. 592 * 593 * @see SVGUtils#SVGATTRIBUTE_Opacity 594 */ 595 public void setOpacity( final String value ); 596 597 /** 598 * Sets the presentation attribute {@code overflow} for this SVG element. 599 * 600 * @param value The attribute type. 601 * 602 * @see SVGUtils#SVGATTRIBUTE_Overflow 603 */ 604 public void setOverflow( final String value ); 605 606 /** 607 * Sets the presentation attribute {@code pointer-events} for this SVG element. 608 * 609 * @param value The attribute type. 610 * 611 * @see SVGUtils#SVGATTRIBUTE_PointerEvents 612 */ 613 public void setPointerEvents( final String value ); 614 615 /** 616 * Sets the presentation attribute {@code shape-rendering} for this SVG element. 617 * 618 * @param value The attribute type. 619 * 620 * @see SVGUtils#SVGATTRIBUTE_ShapeRendering 621 */ 622 public void setShapeRendering( final String value ); 623 624 /** 625 * Sets the presentation attribute {@code stop-color} for this SVG element. 626 * 627 * @param value The attribute type. 628 * 629 * @see SVGUtils#SVGATTRIBUTE_StopColor 630 */ 631 public void setStopColor( final String value ); 632 633 /** 634 * Sets the presentation attribute {@code stop-opacity} for this SVG element. 635 * 636 * @param value The attribute type. 637 * 638 * @see SVGUtils#SVGATTRIBUTE_StopOpacity 639 */ 640 public void setStopOpacity( final String value ); 641 642 /** 643 * Sets the presentation attribute {@code stroke} for this SVG element. 644 * 645 * @param value The attribute type. 646 * 647 * @see SVGUtils#SVGATTRIBUTE_Stroke 648 */ 649 public void setStroke( @SuppressWarnings( "UseOfConcreteClass" ) final SVGPaint value ); 650 651 /** 652 * Sets the presentation attribute {@code stroke-dasharray} for this SVG element. 653 * 654 * @param value The attribute type. 655 * 656 * @see SVGUtils#SVGATTRIBUTE_StrokeDashArray 657 */ 658 public void setStrokeDashArray( final String value ); 659 660 /** 661 * Sets the presentation attribute {@code stroke-dashoffset} for this SVG element. 662 * 663 * @param value The attribute type. 664 * 665 * @see SVGUtils#SVGATTRIBUTE_StrokeDashOffset 666 */ 667 public void setStrokeDashOffset( final String value ); 668 669 /** 670 * Sets the presentation attribute {@code stroke-linecap} for this SVG element. 671 * 672 * @param value The attribute type. 673 * 674 * @see SVGUtils#SVGATTRIBUTE_StrokeLineCap 675 */ 676 public void setStrokeLineCap( final String value ); 677 678 /** 679 * Sets the presentation attribute {@code stroke-linejoin} for this SVG element. 680 * 681 * @param value The attribute type. 682 * 683 * @see SVGUtils#SVGATTRIBUTE_StrokeLineJoin 684 */ 685 public void setStrokeLineJoin( final String value ); 686 687 /** 688 * Sets the presentation attribute {@code stroke-miterlimit} for this SVG element. 689 * 690 * @param value The attribute type. 691 * 692 * @see SVGUtils#SVGATTRIBUTE_StrokeMiterLimit 693 */ 694 public void setStrokeMiterLimit( final String value ); 695 696 /** 697 * Sets the presentation attribute {@code stroke-opacity} for this SVG 698 * element.<br> 699 * <br>Any type outside the range 0.0 (fully transparent) to 1.0 (fully 700 * opaque) will be clamped to this range. 701 * 702 * @param value The attribute type. 703 * 704 * @see SVGUtils#SVGATTRIBUTE_StrokeOpacity 705 */ 706 public void setStrokeOpacity( final double value ); 707 708 /** 709 * Sets the presentation attribute {@code stroke-width} for this SVG element. 710 * 711 * @param value The attribute type. 712 * 713 * @see SVGUtils#SVGATTRIBUTE_StrokeWidth 714 */ 715 public void setStrokeWidth( @SuppressWarnings( "UseOfConcreteClass" ) final SVGNumber value ); 716 717 /** 718 * Sets the presentation attribute {@code text-anchor} for this SVG element. 719 * 720 * @param value The attribute type. 721 * 722 * @see SVGUtils#SVGATTRIBUTE_TextAnchor 723 */ 724 public void setTextAnchor( final String value ); 725 726 /** 727 * Sets the presentation attribute {@code text-decoration} for this SVG element. 728 * 729 * @param value The attribute type. 730 * 731 * @see SVGUtils#SVGATTRIBUTE_TextDecoration 732 */ 733 public void setTextDecoration( final String value ); 734 735 /** 736 * Sets the presentation attribute {@code text-rendering} for this SVG element. 737 * 738 * @param value The attribute type. 739 * 740 * @see SVGUtils#SVGATTRIBUTE_TextRendering 741 */ 742 public void setTextRendering( final String value ); 743 744 /** 745 * Sets the transformations for this SVG element. 746 * 747 * @param values The transformations. 748 * 749 * @see SVGUtils#SVGATTRIBUTE_Transform 750 */ 751 public void setTransform( final SVGTransform... values ); 752 753 /** 754 * Sets the presentation attribute {@code unicode-bidi} for this SVG element. 755 * 756 * @param value The attribute type. 757 * 758 * @see SVGUtils#SVGATTRIBUTE_UnicodeBidi 759 */ 760 public void setUnicodeBidi( final String value ); 761 762 /** 763 * Sets the presentation attribute {@code vector-effect} for this SVG element. 764 * 765 * @param value The attribute type. 766 * 767 * @see SVGUtils#SVGATTRIBUTE_VectorEffect 768 */ 769 public void setVectorEffect( final String value ); 770 771 /** 772 * Sets the presentation attribute {@code visibility} for this SVG element. 773 * 774 * @param value The attribute type. 775 * 776 * @see SVGUtils#SVGATTRIBUTE_Visibility 777 */ 778 public void setVisibility( final String value ); 779 780 /** 781 * Sets the presentation attribute {@code word-spacing} for this SVG element. 782 * 783 * @param value The attribute type. 784 * 785 * @see SVGUtils#SVGATTRIBUTE_WordSpacing 786 */ 787 public void setWordSpacing( final String value ); 788 789 /** 790 * Sets the presentation attribute {@code writing-mode} for this SVG element. 791 * 792 * @param value The attribute type. 793 * 794 * @see SVGUtils#SVGATTRIBUTE_WritingMode 795 */ 796 public void setWritingMode( final String value ); 797} 798// interface AllowsPresentationAttributes 799 800/* 801 * End of File 802 */