[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
立即试用
(Showing Draft Content)

SparklineRowCol

Enum Class SparklineRowCol

java.lang.Object
java.lang.Enum<SparklineRowCol>
com.grapecity.documents.excel.SparklineRowCol
All Implemented Interfaces:
Serializable, Comparable<SparklineRowCol>, Constable

public enum SparklineRowCol extends Enum<SparklineRowCol>
指定当源数据位于方形区域中时如何绘制迷你图。

与 ISparklineGroup.getPlotBy() 和 ISparklineGroup.setPlotBy(SparklineRowCol) 一起使用,可以控制迷你图数据是按行还是按列绘制。


 worksheet.getRange("A1:C3").setValue(new Object[][] {
     {1, 2, 3},
     {4, 5, 6},
     {7, 8, 9}
 });
 ISparklineGroup group = worksheet.getRange("D1:D3").getSparklineGroups().add(SparkType.Line, "A1:C3");
 group.setPlotBy(SparklineRowCol.RowsSquare);
 SparklineRowCol plotBy = group.getPlotBy();
 
  • Enum Constant Details

    • NonSquare

      public static final SparklineRowCol NonSquare
      指定迷你图不受方形区域内的数据限制。
    • RowsSquare

      public static final SparklineRowCol RowsSquare
      指定按行绘制数据。
    • ColumnsSquare

      public static final SparklineRowCol ColumnsSquare
      指定按列绘制数据。
  • Method Details

    • values

      public static SparklineRowCol[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SparklineRowCol valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null