本文整理了Java中javafx.scene.image.ImageView.getStyleClass()
方法的一些代码示例,展示了ImageView.getStyleClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.getStyleClass()
方法的具体详情如下:
包路径:javafx.scene.image.ImageView
类名称:ImageView
方法名:getStyleClass
暂无
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
private static Node createDialogArea(@NonNull Type type, String message) {
GridLayoutPane b = new GridLayoutPane();
b.setHorizontalSpacing(20);
b.setNumColumns(2);
b.getStyleClass().add("efx-messagedialog-" + type.name().toLowerCase()); //$NON-NLS-1$
ImageView view = new ImageView();
view.getStyleClass().add("efx-messagedialog-icon"); //$NON-NLS-1$
b.getChildren().add(view);
Label l = new Label(message);
l.getStyleClass().add("efx-messagedialog-message"); //$NON-NLS-1$
b.getChildren().add(l);
return b;
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.dialogs
@Override
protected Node createDialogArea() {
GridLayoutPane b = new GridLayoutPane();
b.setHorizontalSpacing(20);
b.setNumColumns(2);
b.getStyleClass()
.add("messagedialog-" + this.type.name().toLowerCase()); //$NON-NLS-1$
ImageView view = new ImageView();
view.getStyleClass().add("messagedialog-icon"); //$NON-NLS-1$
b.getChildren().add(view);
Label l = new Label(this.message);
l.getStyleClass().add("messagedialog-message"); //$NON-NLS-1$
b.getChildren().add(l);
return b;
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
private static Node createDialogArea(@NonNull Type type, String message) {
GridLayoutPane b = new GridLayoutPane();
b.setHorizontalSpacing(20);
b.setNumColumns(2);
b.getStyleClass().add("efx-messagedialog-" + type.name().toLowerCase()); //$NON-NLS-1$
ImageView view = new ImageView();
view.getStyleClass().add("efx-messagedialog-icon"); //$NON-NLS-1$
b.getChildren().add(view);
Label l = new Label(message);
l.getStyleClass().add("efx-messagedialog-message"); //$NON-NLS-1$
b.getChildren().add(l);
return b;
}
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
/**
*
*/
public TitleAreaDialogPane() {
HBox box = new HBox();
box.getStyleClass().add("efx-dialog-title-area"); //$NON-NLS-1$
VBox messageArea = new VBox();
messageArea.getStyleClass().add("efx-dialog-messageArea-area"); //$NON-NLS-1$
this.titleLabel = new Label();
this.titleLabel.getStyleClass().add("efx-dialog-title"); //$NON-NLS-1$
this.titleMessage = new Label();
this.titleMessage.setWrapText(true);
this.titleMessage.getStyleClass().add("efx-dialog-title-message"); //$NON-NLS-1$
messageArea.getChildren().add(this.titleLabel);
messageArea.getChildren().add(this.titleMessage);
HBox.setHgrow(messageArea, Priority.ALWAYS);
ImageView titleImage = new ImageView();
titleImage.getStyleClass().add("efx-dialog-title-image"); //$NON-NLS-1$
box.getChildren().addAll(messageArea, titleImage);
setTop(box);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
/**
*
*/
public TitleAreaDialogPane() {
HBox box = new HBox();
box.getStyleClass().add("efx-dialog-title-area"); //$NON-NLS-1$
VBox messageArea = new VBox();
messageArea.getStyleClass().add("efx-dialog-messageArea-area"); //$NON-NLS-1$
this.titleLabel = new Label();
this.titleLabel.getStyleClass().add("efx-dialog-title"); //$NON-NLS-1$
this.titleMessage = new Label();
this.titleMessage.setWrapText(true);
this.titleMessage.getStyleClass().add("efx-dialog-title-message"); //$NON-NLS-1$
messageArea.getChildren().add(this.titleLabel);
messageArea.getChildren().add(this.titleMessage);
HBox.setHgrow(messageArea, Priority.ALWAYS);
StackPane container = new StackPane();
container.getStyleClass().add("efx-dialog-graphic-container"); //$NON-NLS-1$
ImageView titleImage = new ImageView();
titleImage.getStyleClass().add("efx-dialog-title-image"); //$NON-NLS-1$
FontIconView v = new FontIconView();
v.getStyleClass().add("efx-dialog-title-font-icon"); //$NON-NLS-1$
container.getChildren().addAll(titleImage,v);
box.getChildren().addAll(messageArea, container);
setTop(box);
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.dialogs
image.getStyleClass().addAll("titleDialog_Icon-" + this.iconClass); //$NON-NLS-1$
titleArea.setRight(image);
代码示例来源:origin: org.copper-engine/copper-monitoring-client
@Override
// This method is called by the FXMLLoader when initialization is complete
public void initialize(URL fxmlFileLocation, ResourceBundle resources) {
assert engineId != null : "fx:id=\"engineId\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert imgEngineState != null : "fx:id=\"imgEngineState\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert tableWfInstances != null : "fx:id=\"tableWfInstances\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert colWfState != null : "fx:id=\"colWfState\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert colWfCount != null : "fx:id=\"colWfCount\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert tableProcessorPools != null : "fx:id=\"tableProcessorPools\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert colPoolName != null : "fx:id=\"colPoolName\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert colQueueSize != null : "fx:id=\"colQueueSize\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert colThreadCount != null : "fx:id=\"colThreadCount\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
assert colPoolType != null : "fx:id=\"colPoolType\" was not injected: check your FXML file 'DashboardEngine.fxml'.";
colWfState.setCellValueFactory(new PropertyValueFactory<WorkflowSummaryDashboardModel, WorkflowInstanceState>("state"));
colWfCount.setCellValueFactory(new PropertyValueFactory<WorkflowSummaryDashboardModel, Integer>("count"));
colPoolName.setCellValueFactory(new PropertyValueFactory<ProcessorPoolDashboardModel, String>("poolName"));
colQueueSize.setCellValueFactory(new PropertyValueFactory<ProcessorPoolDashboardModel, Integer>("queueSize"));
colThreadCount.setCellValueFactory(new PropertyValueFactory<ProcessorPoolDashboardModel, Integer>("threadCount"));
colPoolType.setCellValueFactory(new PropertyValueFactory<ProcessorPoolDashboardModel, ProcessorPoolTyp>("poolType"));
imgEngineState.getStyleClass().add("copper-engine-logo");
}
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
break;
v.getStyleClass().add(styleClass);
} else {
if (item.getName().endsWith(".gif") || item.getName().endsWith(".png") || item.getName().endsWith(".jpg")) { //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
break;
v.getStyleClass().add(styleClass);
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
break;
v.getStyleClass().add(styleClass);
} else {
if (item.getName().endsWith(".gif") || item.getName().endsWith(".png") || item.getName().endsWith(".jpg")) { //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$
break;
v.getStyleClass().add(styleClass);
代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.controls
v.fitWidthProperty().bind(this.preview.widthProperty());
if (item instanceof DirItem) {
v.getStyleClass().add("folderBig"); //$NON-NLS-1$
this.size.setText("--"); //$NON-NLS-1$
} else {
this.imageSizeLabel, this.imageSizeValue);
} else {
v.getStyleClass().add("fileBig"); //$NON-NLS-1$
代码示例来源:origin: at.bestsolution.eclipse/org.eclipse.fx.ui.controls
v.fitWidthProperty().bind(this.preview.widthProperty());
if (item instanceof DirItem) {
v.getStyleClass().add("folderBig"); //$NON-NLS-1$
this.size.setText("--"); //$NON-NLS-1$
} else {
this.imageSizeLabel, this.imageSizeValue);
} else {
v.getStyleClass().add("fileBig"); //$NON-NLS-1$
内容来源于网络,如有侵权,请联系作者删除!