Class SVGStylableImpl

All Implemented Interfaces:
Cloneable, EventTarget, GlobalEventHandlers, HTMLElement, ModelNode, SVGElement, SVGStylable, Element, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode, CSSPropertiesContext, ScriptableDelegate
Direct Known Subclasses:
SVGFontElementImpl, SVGGradientElementImpl, SVGLocatableImpl, SVGStopElementImpl, SVGSymbolElementImpl

public class SVGStylableImpl extends SVGElementImpl implements SVGStylable

SVGStylableImpl class.

  • Constructor Details

    • SVGStylableImpl

      public SVGStylableImpl(String name)

      Constructor for SVGStylableImpl.

      Parameters:
      name - a String object.
  • Method Details

    • getFillPaint

      public Paint getFillPaint(Shape shape)

      getFillPaint.

      Parameters:
      shape - a Shape object.
      Returns:
      a Paint object.
    • getStrokelPaint

      public Paint getStrokelPaint(Shape shape)

      getStrokelPaint.

      Parameters:
      shape - a Shape object.
      Returns:
      a Paint object.
    • getStrokeLineCap

      public int getStrokeLineCap()

      getStrokeLineCap.

      Returns:
      a Integer object.
    • getStrokeLinejoin

      public int getStrokeLinejoin()

      getStrokeLinejoin.

      Returns:
      a Integer object.
    • getStrokeWidth

      public int getStrokeWidth()

      getStrokeWidth.

      Returns:
      a Integer object.
    • getStrokeMiterlimit

      public int getStrokeMiterlimit()

      getStrokeMiterlimit.

      Returns:
      a Integer object.
    • getStrokeDashArray

      public float[] getStrokeDashArray()

      getStrokeDashArray.

      Returns:
      an array of
      invalid reference
      float
      objects.
    • getVisibility

      public boolean getVisibility()

      getVisibility.

      Returns:
      a boolean.
    • getDisplay

      public boolean getDisplay()

      getDisplay.

      Returns:
      a boolean.
    • getOpacity

      public float getOpacity()

      getOpacity.

      Returns:
      a float.
    • getClippingPath

      public SVGClipPathElementImpl getClippingPath()

      getClippingPath.

      Returns:
      a SVGClipPathElementImpl object.
    • getClipRule

      public String getClipRule()

      getClipRule.

      Returns:
      a String object.
    • getStopColor

      public Color getStopColor()

      getStopColor.

      Returns:
      a Color object.
    • getStopOpacity

      public String getStopOpacity()

      getStopOpacity.

      Returns:
      a String object.
    • getTextAnchor

      public String getTextAnchor()

      getTextAnchor.

      Returns:
      a String object.
    • getFont

      public Font getFont()

      getFont.

      Returns:
      a Font object.
    • getFontElement

      public SVGFontElementImpl getFontElement()
    • getFontSize

      public float getFontSize(AffineTransform inverseTransform)
    • getFontUnitsPerEm

      public float getFontUnitsPerEm()
    • getFontFace

      public SVGFontFaceElementImpl getFontFace()
    • getFontAscent

      public float getFontAscent()
    • getFontDescent

      public float getFontDescent()
    • getHorizAdvX

      public float getHorizAdvX()
    • getStroke

      public BasicStroke getStroke()

      getStroke.

      Returns:
      a BasicStroke object.
    • child

      protected Node child(String elementId)

      child.

      Parameters:
      elementId - a String object.
      Returns:
      a Node object.
    • drawStyle

      protected void drawStyle(Node node)

      drawStyle.

      Parameters:
      node - a Node object.