List of usage examples for javafx.scene.paint Color BLACK
Color BLACK
To view the source code for javafx.scene.paint Color BLACK.
Click Source Link
From source file:org.dataconservancy.packaging.gui.presenter.impl.PackageGenerationPresenterImpl.java
/** * This method is a last resort to load default parameters in code, if none of the file options could be loaded. */// w w w. j a va2 s . c o m private void loadDefaultParams() { view.getStatusLabel().setText(errors.get(ErrorKey.PARAM_LOADING_ERROR)); view.getStatusLabel().setTextFill(Color.BLACK); view.getStatusLabel().setVisible(true); generationParams = new PackageGenerationParameters(); generationParams.addParam(GeneralParameterNames.PACKAGE_FORMAT_ID, PackagingFormat.BOREM.toString()); generationParams.addParam(GeneralParameterNames.CHECKSUM_ALGORITHMS, "md5"); if (controller.getContentRoot() != null) { generationParams.addParam(GeneralParameterNames.CONTENT_ROOT_LOCATION, controller.getContentRoot().getPath()); } if (view.getArchiveToggleGroup().getSelectedToggle() != null) { String archiveExtension = (String) view.getArchiveToggleGroup().getSelectedToggle().getUserData(); if (!archiveExtension.isEmpty()) { generationParams.addParam(GeneralParameterNames.ARCHIVING_FORMAT, archiveExtension); } } if (view.getCompressionToggleGroup().getSelectedToggle() != null) { String compressionExtension = (String) view.getCompressionToggleGroup().getSelectedToggle() .getUserData(); if (!compressionExtension.isEmpty()) { generationParams.addParam(GeneralParameterNames.COMPRESSION_FORMAT, compressionExtension); } } generationParams.addParam(BagItParameterNames.BAGIT_PROFILE_ID, "http://dataconservancy.org/formats/data-conservancy-pkg-0.9"); }
From source file:org.nmrfx.processor.gui.spectra.DatasetAttributes.java
public ColorProperty posColorProperty() { if (posColor == null) { posColor = new ColorProperty(this, "+color", Color.BLACK); }/*from ww w . j av a 2 s . co m*/ return posColor; }
From source file:org.nmrfx.processor.gui.spectra.DatasetAttributes.java
private void initialize(Dataset aFile, String fileName) { theFile = aFile;/*from w ww .j a v a2 s . c om*/ nDim = aFile.getNDim(); setFileName(fileName); pt = new int[theFile.getNDim()][2]; ptd = new double[theFile.getNDim()][2]; iLim = new int[theFile.getNDim()][2]; iSize = new int[theFile.getNDim()]; iBlkSize = new int[theFile.getNDim()]; iNBlks = new int[theFile.getNDim()]; iVecGet = new int[theFile.getNDim()]; iBlkGet = new int[theFile.getNDim()]; iVecPut = new int[theFile.getNDim()]; iBlkPut = new int[theFile.getNDim()]; iWDim = new int[theFile.getNDim()]; title = aFile.getTitle(); int i; for (i = 0; i < theFile.getNDim(); i++) { pt[i][0] = 0; ptd[i][0] = 0; pt[i][1] = theFile.getSize(i) - 1; ptd[i][1] = theFile.getSize(i) - 1; } pt[0][0] = 0; pt[0][1] = theFile.getSize(0) - 1; if (theFile.getNDim() > 1) { pt[1][0] = 0; ptd[1][0] = 0; pt[1][1] = theFile.getSize(1) - 1; ptd[1][1] = theFile.getSize(1) - 1; } chunkSize = new int[theFile.getNDim()]; chunkOffset = new int[theFile.getNDim()]; dim = new int[theFile.getNDim()]; for (i = 0; i < theFile.getNDim(); i++) { dim[i] = i; chunkSize[i] = 1; } if (theFile.getLvl() > 0) { setLvl(theFile.getLvl()); } setPosColor(Color.valueOf(theFile.getPosColor())); setNegColor(Color.valueOf(theFile.getNegColor())); if ((theFile.getPosneg() & 2) == 2) { setNegColor(Color.RED); setNeg(true); } if ((theFile.getPosneg() & 1) != 1) { setPosColor(Color.BLACK); setPos(false); } hasLevel = false; }
From source file:org.nmrfx.processor.gui.spectra.PeakListAttributes.java
public ColorProperty onColorProperty() { if (onColor == null) { onColor = new ColorProperty(this, "+color", Color.BLACK); }//from w w w . jav a 2 s . c o m return onColor; }
From source file:org.openbase.display.DisplayView.java
/** * {@inheritDoc}/*w ww . ja v a2s.c o m*/ * * @param presetId * @throws org.openbase.jul.exception.CouldNotPerformException */ @Override public Future<Void> showText(final String presetId) throws CouldNotPerformException { return displayHTML(htmlLoader.loadTextView(presetId, Color.BLACK), true); }
From source file:org.openbase.display.DisplayView.java
/** * {@inheritDoc}/*from w w w . j a v a 2s . c o m*/ * * @param presetId * @throws org.openbase.jul.exception.CouldNotPerformException */ @Override public Future<Void> setText(final String presetId) throws CouldNotPerformException { return displayHTML(htmlLoader.loadTextView(presetId, Color.BLACK), false); }
From source file:ruleprunermt2.FXMLDocumentController.java
@FXML protected void chooseFile(ActionEvent event) throws IOException { CSVdata = new ArrayList<>(); File file = fileChooser.showOpenDialog(null); if (file.exists()) { if (file.getName().endsWith(".csv")) { fileName.setTextFill(Color.BLACK); fileName.setText(file.getName()); String[] tmp = file.getName().split("\\."); nameOfTheChosenFile = tmp[0]; File dir = new File(nameOfTheChosenFile); if (dir.exists()) { FileUtils.deleteDirectory(dir); }/* ww w. j a va 2 s. co m*/ dir.mkdir(); CSVHandler.readCSV(CSVdata, file.getAbsolutePath(), label); } else { fileName.setTextFill(Color.RED); fileName.setText("Improper file format"); } } }
From source file:ruleprunermt2.FXMLDocumentController.java
@FXML protected void chooseSeed(ActionEvent event) throws IOException { seedItems = new ArrayList<>(); File file = seedFileChooser.showOpenDialog(null); if (file.exists()) { if (file.getName().endsWith(".txt")) { seedName.setTextFill(Color.BLACK); seedName.setText(file.getName()); CSVHandler.readSeed(seedItems, file.getAbsolutePath()); } else {/*from w w w.j ava2s .c o m*/ seedName.setTextFill(Color.RED); seedName.setText("Improper file format"); } } }