Class LabelWrapper

java.lang.Object
edu.uci.ics.jung.visualization.util.LabelWrapper
All Implemented Interfaces:
com.google.common.base.Function<String,String>, Function<String,String>

public class LabelWrapper extends Object implements com.google.common.base.Function<String,String>
A utility to wrap long lines, creating html strings with line breaks at a settable max line length
Author:
Tom Nelson - tomnelson@dev.java.net
  • Field Details

  • Constructor Details

    • 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 Details