类 IconTool

java.lang.Object
javafx.application.Application
com.tlcsdm.frame.SampleBase
com.tlcsdm.jfxcommon.CommonSample
com.tlcsdm.jfxcommon.tools.image.IconTool
所有已实现的接口:
Sample

public class IconTool extends CommonSample
图标生成工具.
从以下版本开始:
1.0.1
作者:
unknowIfGuestInDream
  • 字段详细资料

    • iconFilePathTextField

      protected javafx.scene.control.TextField iconFilePathTextField
    • chooseOriginalPathButton

      protected javafx.scene.control.Button chooseOriginalPathButton
    • iconTargetPathTextField

      protected javafx.scene.control.TextField iconTargetPathTextField
    • chooseTargetPathButton

      protected javafx.scene.control.Button chooseTargetPathButton
    • isCornerCheckBox

      protected javafx.scene.control.CheckBox isCornerCheckBox
    • cornerSizeSlider

      protected javafx.scene.control.Slider cornerSizeSlider
    • isKeepAspectRatioCheckBox

      protected javafx.scene.control.CheckBox isKeepAspectRatioCheckBox
    • iconFormatChoiceBox

      protected javafx.scene.control.ChoiceBox<String> iconFormatChoiceBox
    • iconNameTextField

      protected javafx.scene.control.TextField iconNameTextField
    • iosIconCheckBox

      protected javafx.scene.control.CheckBox iosIconCheckBox
    • androidCheckBox

      protected javafx.scene.control.CheckBox androidCheckBox
    • buildIconButton

      protected javafx.scene.control.Button buildIconButton
    • iconImageView

      protected javafx.scene.image.ImageView iconImageView
    • buildIconTargetImageButton

      protected javafx.scene.control.Button buildIconTargetImageButton
    • iconTargetImageView

      protected javafx.scene.image.ImageView iconTargetImageView
    • widthSpinner

      protected javafx.scene.control.Spinner<Integer> widthSpinner
    • heightSpinner

      protected javafx.scene.control.Spinner<Integer> heightSpinner
    • addSizeButton

      protected javafx.scene.control.Button addSizeButton
    • resettingSizeButton

      protected javafx.scene.control.Button resettingSizeButton
    • allSelectButton

      protected javafx.scene.control.Button allSelectButton
    • inverseButton

      protected javafx.scene.control.Button inverseButton
    • allNotSelectButton

      protected javafx.scene.control.Button allNotSelectButton
    • iconSizeFlowPane

      protected javafx.scene.layout.FlowPane iconSizeFlowPane
    • isWatermarkCheckBox

      protected javafx.scene.control.CheckBox isWatermarkCheckBox
    • watermarkPathTextField

      protected javafx.scene.control.TextField watermarkPathTextField
    • selectWatermarkButton

      protected javafx.scene.control.Button selectWatermarkButton
    • watermarkImageView

      protected javafx.scene.image.ImageView watermarkImageView
    • watermarkPositionChoiceBox

      protected javafx.scene.control.ChoiceBox<net.coobird.thumbnailator.geometry.Positions> watermarkPositionChoiceBox
    • watermarkOpacitySlider

      protected javafx.scene.control.Slider watermarkOpacitySlider
    • outputQualitySlider

      protected javafx.scene.control.Slider outputQualitySlider
    • iconSizeStrings

      private final String[] iconSizeStrings
    • iconFormatStrings

      private final String[] iconFormatStrings
    • watermarkPositions

      private final net.coobird.thumbnailator.geometry.Positions[] watermarkPositions
    • notificationBuilder

      private org.controlsfx.control.Notifications notificationBuilder
  • 构造器详细资料

    • IconTool

      public IconTool()
  • 方法详细资料

    • getSampleId

      public String getSampleId()
      从接口复制的说明: Sample
      组件id.
    • getSampleName

      public String getSampleName()
      从接口复制的说明: Sample
      A short, most likely single-word, name to show to the user - e.g. "CheckBox".
    • getSampleVersion

      public String getSampleVersion()
      从接口复制的说明: Sample
      sample version.
    • getSampleDescription

      public String getSampleDescription()
      从类复制的说明: SampleBase
      A short, multiple sentence description of the sample.
      指定者:
      getSampleDescription 在接口中 Sample
      覆盖:
      getSampleDescription 在类中 SampleBase
    • getPanel

      public javafx.scene.Node getPanel(javafx.stage.Stage stage)
      从接口复制的说明: Sample
      Returns the main sample panel.
    • getControlPanel

      public javafx.scene.Node getControlPanel()
      从类复制的说明: SampleBase
      Returns the panel to display to the user that allows for manipulating the sample.
      指定者:
      getControlPanel 在接口中 Sample
      覆盖:
      getControlPanel 在类中 SampleBase
    • getOrderKey

      public String getOrderKey()
      从接口复制的说明: Sample
      排序字段.
    • getSampleImageIcon

      public javafx.scene.image.ImageView getSampleImageIcon()
      从接口复制的说明: Sample
      sample icon.
      指定者:
      getSampleImageIcon 在接口中 Sample
      覆盖:
      getSampleImageIcon 在类中 SampleBase
    • main

      public static void main(String[] args)
    • isVisible

      public boolean isVisible()
      从类复制的说明: SampleBase
      If true this sample is shown to users, if false it is not.
      指定者:
      isVisible 在接口中 Sample
      覆盖:
      isVisible 在类中 SampleBase
    • initialize

      public void initialize()
      从接口复制的说明: Sample
      Note that initialize() is called after getPanel(). 实现类是FXML实现,推荐不使用此接口初始化,而是需要手动初始化
      指定者:
      initialize 在接口中 Sample
      覆盖:
      initialize 在类中 SampleBase
    • initializeOption

      private void initializeOption()
    • initializeUI

      private void initializeUI()
    • chooseOriginalPathAction

      private void chooseOriginalPathAction(javafx.event.ActionEvent event)
      选择图标图片.
    • chooseTargetPathAction

      private void chooseTargetPathAction(javafx.event.ActionEvent event)
      选择生成目录(为空则为原图片目录)
    • addSizeAction

      private void addSizeAction(javafx.event.ActionEvent event)
    • resettingSizeAction

      private void resettingSizeAction(javafx.event.ActionEvent event)
      重置图片尺寸选择CheckBox
    • buildIconAction

      private void buildIconAction(javafx.event.ActionEvent event)
      生成图片
    • buildIconTargetImageAction

      private void buildIconTargetImageAction(javafx.event.ActionEvent event)
      生成预览图片
    • allSelectAction

      private void allSelectAction(javafx.event.ActionEvent event)
    • inverseAction

      private void inverseAction(javafx.event.ActionEvent event)
    • allNotSelectAction

      private void allNotSelectAction(javafx.event.ActionEvent event)
    • selectWatermarkAction

      private void selectWatermarkAction(javafx.event.ActionEvent event)
    • setSelectButtonDisable

      private void setSelectButtonDisable(boolean isAllSelect)
      设置按钮状态
    • resettingSize

      public void resettingSize()
      重置图片尺寸选择CheckBox
    • addSizeAction

      public void addSizeAction(String text)
    • addSizeAction

      public void addSizeAction(String text, boolean isSelect)
      添加图片尺寸选择CheckBox
    • getBufferedImage

      private BufferedImage getBufferedImage(File iconFilePathFile, int width, int height) throws UnExpectedResultException, IOException
      根据条件获取生成的图片
      抛出:
      UnExpectedResultException
      IOException
    • setSliderLabelFormatter

      public void setSliderLabelFormatter(javafx.scene.control.Slider slider, String formatter)
    • setSpinnerValueFactory

      public static void setSpinnerValueFactory(javafx.scene.control.Spinner spinner, Number min, Number max, Number initialValue, Number amountToStepBy)