Java Code Examples for javafx.scene.paint.Color#DARKGOLDENROD

The following examples show how to use javafx.scene.paint.Color#DARKGOLDENROD . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MenuApp.java    From mars-sim with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Adds the titles
 */
private void addTitle() {
    MenuTitle title = new MenuTitle("Mars Simulation Project", 36, Color.LIGHTGOLDENRODYELLOW, true);//DARKGOLDENROD);
    title.setTranslateX(WIDTH / 2 - title.getTitleWidth() / 2);
    title.setTranslateY(44);
    
    MenuTitle version = new MenuTitle("Version " + Simulation.VERSION, 18, Color.DARKGOLDENROD, false);//DARKORANGE);//.DARKGOLDENROD);//.LIGHTGRAY);//.GRAY); BLACK);//.DARKGRAY);/
    version.setTranslateX(WIDTH / 2 - version.getTitleWidth() / 2);
    version.setTranslateY(80);
    
    MenuTitle build = new MenuTitle("Build " + Simulation.BUILD, 14, Color.DARKGOLDENROD, false);//DARKORANGE);//.DARKGOLDENROD);//.LIGHTGRAY);//.GRAY); BLACK);//.DARKGRAY);/
    build.setTranslateX(15);
    build.setTranslateY(HEIGHT - 10);

    MenuTitle year = new MenuTitle("All Rights Reserved, 2019", 14, Color.DARKGOLDENROD, false);//DARKORANGE);//.DARKGOLDENROD);//.LIGHTGRAY);//.GRAY); BLACK);//.DARKGRAY);/
    year.setTranslateX(WIDTH - year.getTitleWidth() - 10);
    year.setTranslateY(HEIGHT - 10);
 
    MenuTitle site = new MenuTitle("https://mars-sim.github.io/", 16, Color.DARKGOLDENROD, false);//DARKORANGE);//.DARKGOLDENROD);//.LIGHTGRAY);//.GRAY); BLACK);//.DARKGRAY);/
    site.setTranslateX((WIDTH - site.getTitleWidth())/2);
    site.setTranslateY(HEIGHT - 10);
    
    titleStackPane = new StackPane(title, version, year, site, build, optionMenu);
    root.getChildren().addAll(titleStackPane);
    
}
 
Example 2
Source File: StateCell.java    From phoebus with Eclipse Public License 1.0 5 votes vote down vote up
static Color getStateColor(final ScanState state)
{
    switch (state)
    {
    case Idle:      return Color.DARKBLUE;
    case Aborted:   return Color.DARKGOLDENROD;
    case Failed:    return Color.RED;
    case Finished:  return Color.DARKGREEN;
    case Paused:    return Color.GRAY;
    case Running:   return Color.GREEN;
    default:        return Color.BLACK;
    }
}
 
Example 3
Source File: MainMenu.java    From mars-sim with GNU General Public License v3.0 5 votes vote down vote up
public void createMovingStarfield() {
	for (int i = 0; i < STAR_COUNT; i++) {
		nodes[i] = new Rectangle(1, 1, Color.DARKGOLDENROD);// .WHITE);
		angles[i] = 2.0 * Math.PI * random.nextDouble();
		start[i] = random.nextInt(TIME);
	}

	starsTimer = new AnimationTimer() {
		@Override
		public void handle(long now) {
			final double width = 0.25 * WIDTH;// primaryStage.getWidth();
			final double height = 0.5 * HEIGHT;// primaryStage.getHeight();
			final double radius = Math.sqrt(2) * Math.max(width, height);
			for (int i = 0; i < STAR_COUNT; i++) {
				final Node node = nodes[i];
				final double angle = angles[i];
				final long t = (now - start[i]) % TIME;
				final double d = t * radius / TIME;
				node.setTranslateX(Math.cos(angle) * d + width);
				node.setTranslateY(Math.sin(angle) * d + height);
			}
		}
	};

	starsTimer.start();

}