Documentation of 'edu.uci.ics.jung.visualization.util.LabelWrapper' Java class
LabelWrapper
edu.uci.ics.jung.visualization.util

Class LabelWrapper

  • All Implemented Interfaces:
    com.google.common.base.Function<java.lang.String,java.lang.String>


    public class LabelWrapper
    extends java.lang.Object
    implements com.google.common.base.Function<java.lang.String,java.lang.String>
    A utility to wrap long lines, creating html strings with line breaks at a settable max line length
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String breaker 
    • Constructor Summary

      Constructors 
      Constructor and Description
      LabelWrapper()
      Create an instance with default line break length = 10
      LabelWrapper(int lineLength)
      Create an instance with passed line break length
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String apply(java.lang.String str)
      call 'wrap' to transform the passed String
      static void main(java.lang.String[] args) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
    • Constructor Detail

      • LabelWrapper

        public LabelWrapper()
        Create an instance with default line break length = 10
      • LabelWrapper

        public LabelWrapper(int lineLength)
        Create an instance with passed line break length
        Parameters:
        lineLength - the max length for lines
    • Method Detail

      • apply

        public java.lang.String apply(java.lang.String str)
        call 'wrap' to transform the passed String
        Specified by:
        apply in interface com.google.common.base.Function<java.lang.String,java.lang.String>
      • main

        public static void main(java.lang.String[] args)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.