Interface FigureContent

All Known Implementing Classes:
FigureContent.Raster, FigureContent.Svg

public sealed interface FigureContent permits FigureContent.Svg, FigureContent.Raster
Figure 的內容;在自身的局部座標系中描述圖形
Since:
4.0.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    點陣圖(image/png、image/jpeg),在 Figure 的框內等比置中;供外部圖表函式庫的輸出使用
    static final record 
    受限 SVG
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    以點陣圖建立內容
    svg(String markup)
    以 SVG 原始碼建立內容
  • Method Details

    • svg

      static FigureContent svg(String markup)
      以 SVG 原始碼建立內容
      Parameters:
      markup - SVG 原始碼
      Returns:
      內容
    • raster

      static FigureContent raster(ImageData image)
      以點陣圖建立內容
      Parameters:
      image - 圖片資料
      Returns:
      內容