Class GraphicImpl.ConstantGraphic

    • Constructor Detail

      • ConstantGraphic

        public ConstantGraphic()
    • Method Detail

      • setExternalGraphics

        public void setExternalGraphics​(ExternalGraphic... externalGraphics)
      • addExternalGraphic

        public void addExternalGraphic​(ExternalGraphic externalGraphic)
      • setMarks

        public void setMarks​(Mark... marks)
      • addMark

        public void addMark​(Mark mark)
      • setSymbols

        public void setSymbols​(Symbol... symbols)
      • addSymbol

        public void addSymbol​(Symbol symbol)
      • setOpacity

        public void setOpacity​(Expression opacity)
        Description copied from interface: Graphic
        Graphic opacity.
        Specified by:
        setOpacity in interface Graphic
        Parameters:
        opacity - New value of property opacity.
      • setSize

        public void setSize​(Expression size)
        Description copied from interface: Graphic
        Indicates the size at which the graphic should be displayed.

        If this value is null the natural size of the graphic will be used; or for graphics without a natural size like SVG files 16x16 will be used.

        Specified by:
        setSize in interface Graphic
      • setRotation

        public void setRotation​(Expression rotation)
        Description copied from interface: Graphic
        This parameter defines the rotation of a graphic in the clockwise direction about its centre point in decimal degrees. The value encoded as a floating point number.
        Specified by:
        setRotation in interface Graphic
        Parameters:
        rotation - in decimal degrees
      • accept

        public void accept​(StyleVisitor visitor)
        Description copied from interface: Graphic
        accepts a StyleVisitor - used by xmlencoder and other packages which need to walk the style tree
        Specified by:
        accept in interface Graphic
        Parameters:
        visitor - - the visitor object
      • graphicalSymbols

        public List<GraphicalSymbol> graphicalSymbols()
        Description copied from interface: Graphic
        The items in this list are either a Mark or a ExternalGraphic.

        This list may be directly edited; the items are considered in order from most preferred (say an SVG file) to least preferred (a simple shape) with the intension that the system will make use of the first entry which it is capabile of displaying.

        Specified by:
        graphicalSymbols in interface Graphic
      • getAnchorPoint

        public AnchorPoint getAnchorPoint()
        Description copied from interface: Graphic
        The AnchorPoint element of a PointSymbolizer gives the location inside of a Graphic (or label - see 11.4.4) to use for anchoring the graphic to the main-geometry point. The coordinates are given as two floating-point numbers in the AnchorPointX and AnchorPointY elements each with values between 0.0 and 1.0 inclusive. The bounding box of the graphic/label to be rendered is considered to be in a coordinate space from 0.0 (lower-left corner) to 1.0 (upper-right corner), and the anchor position is specified as a point in this space. The default point is X=0.5, Y=0.5, which is at the middle height and middle length of the graphic/label text. A system may choose different anchor points to de-conflict graphics/labels.
        Specified by:
        getAnchorPoint in interface Graphic
        Returns:
        AnchorPoint , if null should use a default point X=0.5 Y=0.5