Class Path

  • All Implemented Interfaces:
    PathIf

    public final class Path
    extends java.lang.Object
    implements PathIf
    Specifies a creation path consisting of a series of moves, lines and curves that when combined forms a geometric shape

    Java class for CT_Path2D complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="CT_Path2D">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <choice maxOccurs="unbounded" minOccurs="0">
             <element name="close" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DClose"/>
             <element name="moveTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DMoveTo"/>
             <element name="lnTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DLineTo"/>
             <element name="arcTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DArcTo"/>
             <element name="quadBezTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DQuadBezierTo"/>
             <element name="cubicBezTo" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Path2DCubicBezierTo"/>
           </choice>
           <attribute name="w" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" />
           <attribute name="h" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" />
           <attribute name="fill" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PathFillMode" default="norm" />
           <attribute name="stroke" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
           <attribute name="extrusionOk" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Path

        public Path()
    • Method Detail

      • getPath

        public java.awt.geom.Path2D.Double getPath​(Context ctx)
        Convert the internal represenation to java.awt.geom.Path2D
        Specified by:
        getPath in interface PathIf
      • isStroked

        public boolean isStroked()
        Specified by:
        isStroked in interface PathIf
      • setStroke

        public void setStroke​(boolean stroke)
        Specified by:
        setStroke in interface PathIf
      • isFilled

        public boolean isFilled()
        Specified by:
        isFilled in interface PathIf
      • getW

        public long getW()
        Specified by:
        getW in interface PathIf
      • setW

        public void setW​(long w)
        Specified by:
        setW in interface PathIf
      • getH

        public long getH()
        Specified by:
        getH in interface PathIf
      • setH

        public void setH​(long h)
        Specified by:
        setH in interface PathIf
      • isExtrusionOk

        public boolean isExtrusionOk()
        Specified by:
        isExtrusionOk in interface PathIf
      • setExtrusionOk

        public void setExtrusionOk​(boolean extrusionOk)
        Specified by:
        setExtrusionOk in interface PathIf
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object