Class LabelStyle

    • Constructor Detail

      • LabelStyle

        public LabelStyle()
    • Method Detail

      • initialize

        public void initialize​(Layer layer)
        Description copied from interface: Style
        Called before #paint is applied to each Feature.
        Specified by:
        initialize in interface Style
      • angle

        public static double angle​(Feature feature,
                                   String angleAttributeName,
                                   double defaultAngle)
      • height

        public static double height​(Feature feature,
                                    String heightAttributeName,
                                    double defaultHeight)
      • paint

        public void paint​(Graphics2D g,
                          String text,
                          double viewportScale,
                          Point2D viewCentre,
                          double angle,
                          double height,
                          boolean linear)
      • getAttribute

        public String getAttribute()
      • getAngleAttribute

        public String getAngleAttribute()
      • getHeightAttribute

        public String getHeightAttribute()
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface Style
      • getColor

        public Color getColor()
      • getFont

        public Font getFont()
      • isScaling

        public boolean isScaling()
      • getHeight

        public double getHeight()
      • isHidingOverlappingLabels

        public boolean isHidingOverlappingLabels()
      • getVerticalAlignment

        public String getVerticalAlignment()
      • setVerticalAlignment

        public void setVerticalAlignment​(String verticalAlignment)
      • setAttribute

        public void setAttribute​(String attribute)
      • setAngleAttribute

        public void setAngleAttribute​(String angleAttribute)
      • setHeightAttribute

        public void setHeightAttribute​(String heightAttribute)
      • setEnabled

        public void setEnabled​(boolean enabled)
        Specified by:
        setEnabled in interface Style
      • setColor

        public void setColor​(Color color)
      • setFont

        public void setFont​(Font font)
      • setScaling

        public void setScaling​(boolean scaling)
      • setHeight

        public void setHeight​(double height)
      • setHidingOverlappingLabels

        public void setHidingOverlappingLabels​(boolean hidingOverlappingLabels)