java.lang.Object
javafx.application.Application
com.tlcsdm.frame.SampleBase
com.tlcsdm.jfxcommon.CommonSample
com.tlcsdm.jfxcommon.tools.image.IconTool
- 所有已实现的接口:
Sample
图标生成工具.
- 从以下版本开始:
- 1.0.1
- 作者:
- unknowIfGuestInDream
-
嵌套类概要
从类继承的嵌套类/接口 javafx.application.Application
javafx.application.Application.Parameters -
字段概要
字段修饰符和类型字段说明protected javafx.scene.control.Buttonprotected javafx.scene.control.Buttonprotected javafx.scene.control.Buttonprotected javafx.scene.control.CheckBoxprotected javafx.scene.control.Buttonprotected javafx.scene.control.Buttonprotected javafx.scene.control.Buttonprotected javafx.scene.control.Buttonprotected javafx.scene.control.Sliderprotected javafx.scene.control.Spinner<Integer> protected javafx.scene.control.TextFieldprotected javafx.scene.control.ChoiceBox<String> private final String[]protected javafx.scene.image.ImageViewprotected javafx.scene.control.TextFieldprotected javafx.scene.layout.FlowPaneprivate final String[]protected javafx.scene.image.ImageViewprotected javafx.scene.control.TextFieldprotected javafx.scene.control.Buttonprotected javafx.scene.control.CheckBoxprotected javafx.scene.control.CheckBoxprotected javafx.scene.control.CheckBoxprotected javafx.scene.control.CheckBoxprivate org.controlsfx.control.Notificationsprotected javafx.scene.control.Sliderprotected javafx.scene.control.Buttonprotected javafx.scene.control.Buttonprotected javafx.scene.image.ImageViewprotected javafx.scene.control.Sliderprotected javafx.scene.control.TextFieldprotected javafx.scene.control.ChoiceBox<net.coobird.thumbnailator.geometry.Positions> private final net.coobird.thumbnailator.geometry.Positions[]protected javafx.scene.control.Spinner<Integer> 从类继承的字段 com.tlcsdm.frame.SampleBase
aesSeed, userData从类继承的字段 javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddSizeAction(String text) voidaddSizeAction(String text, boolean isSelect) 添加图片尺寸选择CheckBoxprivate voidaddSizeAction(javafx.event.ActionEvent event) private voidallNotSelectAction(javafx.event.ActionEvent event) private voidallSelectAction(javafx.event.ActionEvent event) private voidbuildIconAction(javafx.event.ActionEvent event) 生成图片private voidbuildIconTargetImageAction(javafx.event.ActionEvent event) 生成预览图片private voidchooseOriginalPathAction(javafx.event.ActionEvent event) 选择图标图片.private voidchooseTargetPathAction(javafx.event.ActionEvent event) 选择生成目录(为空则为原图片目录)private BufferedImagegetBufferedImage(File iconFilePathFile, int width, int height) 根据条件获取生成的图片javafx.scene.NodeReturns the panel to display to the user that allows for manipulating the sample.排序字段.javafx.scene.NodegetPanel(javafx.stage.Stage stage) Returns the main sample panel.A short, multiple sentence description of the sample.组件id.javafx.scene.image.ImageViewsample icon.A short, most likely single-word, name to show to the user - e.g.sample version.voidNote that initialize() is called after getPanel().private voidprivate voidprivate voidinverseAction(javafx.event.ActionEvent event) booleanIf true this sample is shown to users, if false it is not.static voidvoid重置图片尺寸选择CheckBoxprivate voidresettingSizeAction(javafx.event.ActionEvent event) 重置图片尺寸选择CheckBoxprivate voidselectWatermarkAction(javafx.event.ActionEvent event) private voidsetSelectButtonDisable(boolean isAllSelect) 设置按钮状态voidsetSliderLabelFormatter(javafx.scene.control.Slider slider, String formatter) static voidsetSpinnerValueFactory(javafx.scene.control.Spinner spinner, Number min, Number max, Number initialValue, Number amountToStepBy) 从类继承的方法 com.tlcsdm.jfxcommon.CommonSample
getProjectName, getProjectVersion从类继承的方法 com.tlcsdm.frame.SampleBase
bindUserData, bindUserDataBefore, buildSample, dispose, getControlPanelDividerPosition, getSampleXmlPrefix, hasControlPanel, initializeBindings, initializeUserData, initializeUserDataBindings, start, updateForVersionUpgrade从类继承的方法 javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
字段详细资料
-
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
-
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
-
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
-
iconFormatStrings
-
watermarkPositions
private final net.coobird.thumbnailator.geometry.Positions[] watermarkPositions -
notificationBuilder
private org.controlsfx.control.Notifications notificationBuilder
-
-
构造器详细资料
-
IconTool
public IconTool()
-
-
方法详细资料
-
getSampleId
从接口复制的说明:Sample组件id. -
getSampleName
从接口复制的说明:SampleA short, most likely single-word, name to show to the user - e.g. "CheckBox". -
getSampleVersion
从接口复制的说明:Samplesample version. -
getSampleDescription
从类复制的说明:SampleBaseA short, multiple sentence description of the sample.- 指定者:
getSampleDescription在接口中Sample- 覆盖:
getSampleDescription在类中SampleBase
-
getPanel
public javafx.scene.Node getPanel(javafx.stage.Stage stage) 从接口复制的说明:SampleReturns the main sample panel. -
getControlPanel
public javafx.scene.Node getControlPanel()从类复制的说明:SampleBaseReturns the panel to display to the user that allows for manipulating the sample.- 指定者:
getControlPanel在接口中Sample- 覆盖:
getControlPanel在类中SampleBase
-
getOrderKey
从接口复制的说明:Sample排序字段. -
getSampleImageIcon
public javafx.scene.image.ImageView getSampleImageIcon()从接口复制的说明:Samplesample icon.- 指定者:
getSampleImageIcon在接口中Sample- 覆盖:
getSampleImageIcon在类中SampleBase
-
main
-
isVisible
public boolean isVisible()从类复制的说明:SampleBaseIf true this sample is shown to users, if false it is not.- 指定者:
isVisible在接口中Sample- 覆盖:
isVisible在类中SampleBase
-
initialize
public void initialize()从接口复制的说明:SampleNote 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
-
addSizeAction
添加图片尺寸选择CheckBox -
getBufferedImage
private BufferedImage getBufferedImage(File iconFilePathFile, int width, int height) throws UnExpectedResultException, IOException 根据条件获取生成的图片 -
setSliderLabelFormatter
-
setSpinnerValueFactory
-