AnyLogic AnyLogic
Expand
Font size

Class UtilitiesColor

  • java.lang.Object
    • com.anylogic.engine.presentation.UtilitiesColor

public final class UtilitiesColor
extends java.lang.Object
Author:
AnyLogic North America, LLC https://anylogic.com

Field Summary

Fields 
static java.awt.Color ANTIQUE_WHITE  
static java.awt.Color antiqueWhite  
static java.awt.Color aqua  
static java.awt.Color AQUA  
static java.awt.Color aquamarine  
static java.awt.Color AQUAMARINE  
static java.awt.Color azure  
static java.awt.Color AZURE  
static java.awt.Color beige  
static java.awt.Color BEIGE  
static java.awt.Color bisque  
static java.awt.Color BISQUE  
static java.awt.Color black  
static java.awt.Color BLACK  
static java.awt.Color BLANCHED_ALMOND  
static java.awt.Color blanchedAlmond  
static java.awt.Color blue  
static java.awt.Color BLUE  
static java.awt.Color BLUE_VIOLET  
static java.awt.Color blueViolet  
static Texture brickRedTexture  
static Texture brickWhiteTexture  
static java.awt.Color brown  
static java.awt.Color BROWN  
static java.awt.Color BURLY_WOOD  
static java.awt.Color burlyWood  
static java.awt.Color CADET_BLUE  
static java.awt.Color cadetBlue  
static java.awt.Color chartreuse  
static java.awt.Color CHARTREUSE  
static java.awt.Color chocolate  
static java.awt.Color CHOCOLATE  
static Texture concreteTexture  
static java.awt.Color CONTROL_DEFAULT  
static java.awt.Color controlDefault
This symbolic name is used to identify the default color when setting colors of controls (ShapeButton, ShapeCheckBox etc.)
This constant may only be used in constructors, setters and getters of those controls.
static java.awt.Color coral  
static java.awt.Color CORAL  
static java.awt.Color CORNFLOWER_BLUE  
static java.awt.Color cornflowerBlue  
static java.awt.Color cornsilk  
static java.awt.Color CORNSILK  
static java.awt.Color crimson  
static java.awt.Color CRIMSON  
static java.awt.Color cyan  
static java.awt.Color CYAN  
static java.awt.Color DARK_BLUE  
static java.awt.Color DARK_CYAN  
static java.awt.Color DARK_GOLDENROD  
static java.awt.Color DARK_GRAY  
static java.awt.Color DARK_GREEN  
static java.awt.Color DARK_KHAKI  
static java.awt.Color DARK_MAGENTA  
static java.awt.Color DARK_OLIVE_GREEN  
static java.awt.Color DARK_ORANGE  
static java.awt.Color DARK_ORCHID  
static java.awt.Color DARK_RED  
static java.awt.Color DARK_SALMON  
static java.awt.Color DARK_SEA_GREEN  
static java.awt.Color DARK_SLATE_BLUE  
static java.awt.Color DARK_SLATE_GRAY  
static java.awt.Color DARK_TURQUOISE  
static java.awt.Color DARK_VIOLET  
static java.awt.Color darkBlue  
static java.awt.Color darkCyan  
static java.awt.Color darkGoldenRod  
static java.awt.Color darkGray  
static java.awt.Color darkGreen  
static java.awt.Color darkKhaki  
static java.awt.Color darkMagenta  
static java.awt.Color darkOliveGreen  
static java.awt.Color darkOrange  
static java.awt.Color darkOrchid  
static java.awt.Color darkRed  
static java.awt.Color darkSalmon  
static java.awt.Color darkSeaGreen  
static java.awt.Color darkSlateBlue  
static java.awt.Color darkSlateGray  
static java.awt.Color darkTurquoise  
static java.awt.Color darkViolet  
static java.awt.Color DEEP_PINK  
static java.awt.Color DEEP_SKY_BLUE  
static java.awt.Color deepPink  
static java.awt.Color deepSkyBlue  
static java.awt.Color defaultGisFillColor  
static java.awt.Color defaultGisLineColor  
static java.awt.Color DIM_GRAY  
static java.awt.Color dimGray  
static java.awt.Color DODGER_BLUE  
static java.awt.Color dodgerBlue  
static Texture earthTexture  
static java.awt.Color feldspar  
static java.awt.Color FELDSPAR  
static java.awt.Color FIRE_BRICK  
static java.awt.Color fireBrick  
static Texture floorCarpetTexture  
static Texture floorLinoTexture  
static Texture floorMetalTexture  
static Texture floorWoodTexture  
static java.awt.Color FLORAL_WHITE  
static java.awt.Color floralWhite  
static java.awt.Color FOREST_GREEN  
static java.awt.Color forestGreen  
static java.awt.Color fuchsia  
static java.awt.Color FUCHSIA  
static java.awt.Color gainsboro  
static java.awt.Color GAINSBORO  
static java.awt.Color GHOST_WHITE  
static java.awt.Color ghostWhite  
static java.awt.Color gold  
static java.awt.Color GOLD  
static java.awt.Color GOLDEN_ROD  
static java.awt.Color goldenRod  
static Texture grassTexture  
static Texture gravelTexture  
static java.awt.Color gray  
static java.awt.Color GRAY  
static java.awt.Color green  
static java.awt.Color GREEN  
static java.awt.Color GREEN_YELLOW  
static java.awt.Color greenYellow  
static java.awt.Color HONEY_DEW  
static java.awt.Color honeyDew  
static java.awt.Color HOT_PINK  
static java.awt.Color hotPink  
static java.awt.Color INDIAN_RED  
static java.awt.Color indianRed  
static java.awt.Color indigo  
static java.awt.Color INDIGO  
static java.awt.Color ivory  
static java.awt.Color IVORY  
static java.awt.Color khaki  
static java.awt.Color KHAKI  
static java.awt.Color lavender  
static java.awt.Color LAVENDER  
static java.awt.Color LAVENDER_BLUSH  
static java.awt.Color lavenderBlush  
static java.awt.Color LAWN_GREEN  
static java.awt.Color lawnGreen  
static java.awt.Color LEMON_CHIFFON  
static java.awt.Color lemonChiffon  
static java.awt.Color LIGHT_BLUE  
static java.awt.Color LIGHT_CORAL  
static java.awt.Color LIGHT_CYAN  
static java.awt.Color LIGHT_GOLDEN_ROD_YELLOW  
static java.awt.Color LIGHT_GREEN  
static java.awt.Color LIGHT_GREY  
static java.awt.Color LIGHT_PINK  
static java.awt.Color LIGHT_SALMON  
static java.awt.Color LIGHT_SEA_GREEN  
static java.awt.Color LIGHT_SKY_BLUE  
static java.awt.Color LIGHT_SLATE_BLUE  
static java.awt.Color LIGHT_SLATE_GRAY  
static java.awt.Color LIGHT_STEEL_BLUE  
static java.awt.Color LIGHT_YELLOW  
static java.awt.Color lightBlue  
static java.awt.Color lightCoral  
static java.awt.Color lightCyan  
static java.awt.Color lightGoldenRodYellow  
static java.awt.Color lightGreen  
static java.awt.Color lightGrey  
static java.awt.Color lightPink  
static java.awt.Color lightSalmon  
static java.awt.Color lightSeaGreen  
static java.awt.Color lightSkyBlue  
static java.awt.Color lightSlateBlue  
static java.awt.Color lightSlateGray  
static java.awt.Color lightSteelBlue  
static java.awt.Color lightYellow  
static java.awt.Color lime  
static java.awt.Color LIME  
static java.awt.Color LIME_GREEN  
static java.awt.Color limeGreen  
static java.awt.Color linen  
static java.awt.Color LINEN  
static java.awt.Color magenta  
static java.awt.Color MAGENTA  
static java.awt.Color markupDefaultBulkConveyorBelt  
static java.awt.Color markupDefaultConveyorSpurFillColor  
static java.awt.Color markupDefaultConveyorSpurLineColor  
static java.awt.Color markupDefaultLiftFillColor  
static java.awt.Color markupDefaultLiftLineColor  
static java.awt.Color markupDefaultMaterialHandling  
static java.awt.Color markupDefaultNetwork  
static java.awt.Color markupDefaultPedestrian  
static java.awt.Color markupDefaultPedestrianReverse  
static java.awt.Color markupDefaultPipe  
static java.awt.Color markupDefaultPointOnTrack  
static java.awt.Color markupDefaultStorageTank  
static java.awt.Color markupDefaultSwitch  
static java.awt.Color markupDefaultSwitchPath  
static java.awt.Color markupDefaultSwitchSelection
Deprecated.
will be removed in next releases, use markupDefaultSwitchPath instead
static java.awt.Color markupDefaultTrack  
static java.awt.Color markupDefaultWall  
static java.awt.Color maroon  
static java.awt.Color MAROON  
static int MAX_COLORS
The number of (different) standard colors.
static java.awt.Color MEDIUM_AQUA_MARINE  
static java.awt.Color MEDIUM_BLUE  
static java.awt.Color MEDIUM_ORCHID  
static java.awt.Color MEDIUM_PURPLE  
static java.awt.Color MEDIUM_SEAGREEN  
static java.awt.Color MEDIUM_SLATEBLUE  
static java.awt.Color MEDIUM_SPRINGGREEN  
static java.awt.Color MEDIUM_TURQUOISE  
static java.awt.Color MEDIUM_VIOLETRED  
static java.awt.Color mediumAquaMarine  
static java.awt.Color mediumBlue  
static java.awt.Color mediumOrchid  
static java.awt.Color mediumPurple  
static java.awt.Color mediumSeaGreen  
static java.awt.Color mediumSlateBlue  
static java.awt.Color mediumSpringGreen  
static java.awt.Color mediumTurquoise  
static java.awt.Color mediumVioletRed  
static java.awt.Color MIDNIGHT_BLUE  
static java.awt.Color midnightBlue  
static java.awt.Color MINT_CREAM  
static java.awt.Color mintCream  
static java.awt.Color MISTY_ROSE  
static java.awt.Color mistyRose  
static java.awt.Color moccasin  
static java.awt.Color MOCCASIN  
static java.awt.Color NAVAJO_WHITE  
static java.awt.Color navajoWhite  
static java.awt.Color navy  
static java.awt.Color NAVY  
static java.awt.Color OLD_LACE  
static java.awt.Color oldLace  
static java.awt.Color olive  
static java.awt.Color OLIVE  
static java.awt.Color OLIVE_DRAB  
static java.awt.Color oliveDrab  
static java.awt.Color orange  
static java.awt.Color ORANGE  
static java.awt.Color ORANGE_RED  
static java.awt.Color orangeRed  
static java.awt.Color orchid  
static java.awt.Color ORCHID  
static java.awt.Color PALE_GOLDEN_ROD  
static java.awt.Color PALE_GREEN  
static java.awt.Color PALE_TURQUOISE  
static java.awt.Color PALE_VIOLET_RED  
static java.awt.Color paleGoldenRod  
static java.awt.Color paleGreen  
static java.awt.Color paleTurquoise  
static java.awt.Color paleVioletRed  
static java.awt.Color PAPAYA_WHIP  
static java.awt.Color papayaWhip  
static java.awt.Color PEACH_PUFF  
static java.awt.Color peachPuff  
static java.awt.Color peru  
static java.awt.Color PERU  
static java.awt.Color pink  
static java.awt.Color PINK  
static java.awt.Color plum  
static java.awt.Color PLUM  
static java.awt.Color POWDER_BLUE  
static java.awt.Color powderBlue  
static java.awt.Color purple  
static java.awt.Color PURPLE  
static java.awt.Color red  
static java.awt.Color RED  
static Texture roofCeramicTexture  
static Texture roofMetalTexture  
static java.awt.Color ROSY_BROWN  
static java.awt.Color rosyBrown  
static java.awt.Color ROYAL_BLUE  
static java.awt.Color royalBlue  
static java.awt.Color SADDLE_BROWN  
static java.awt.Color saddleBrown  
static java.awt.Color salmon  
static java.awt.Color SALMON  
static Texture sandTexture  
static java.awt.Color SANDY_BROWN  
static java.awt.Color sandyBrown  
static java.awt.Color SEA_GREEN  
static java.awt.Color SEA_SHELL  
static java.awt.Color seaGreen  
static java.awt.Color seaShell  
static java.awt.Color sienna  
static java.awt.Color SIENNA  
static java.awt.Color silver  
static java.awt.Color SILVER  
static java.awt.Color SKY_BLUE  
static java.awt.Color skyBlue  
static java.awt.Color SLATE_BLUE  
static java.awt.Color SLATE_GRAY  
static java.awt.Color slateBlue  
static java.awt.Color slateGray  
static java.awt.Color snow  
static java.awt.Color SNOW  
static Texture snowTexture  
static java.awt.Color SPRING_GREEN  
static java.awt.Color springGreen  
static java.awt.Color STEEL_BLUE  
static java.awt.Color steelBlue  
static java.awt.Color tan  
static java.awt.Color TAN  
static Texture tarmacTexture  
static java.awt.Color teal  
static java.awt.Color TEAL  
static java.awt.Color thistle  
static java.awt.Color THISTLE  
static java.awt.Color tomato  
static java.awt.Color TOMATO  
static java.awt.Color transparent  
static java.awt.Color TRANSPARENT  
static java.awt.Color turquoise  
static java.awt.Color TURQUOISE  
static java.awt.Color violet  
static java.awt.Color VIOLET  
static java.awt.Color VIOLET_RED  
static java.awt.Color violetRed  
static Texture waterTexture  
static java.awt.Color wheat  
static java.awt.Color WHEAT  
static java.awt.Color white  
static java.awt.Color WHITE  
static java.awt.Color WHITE_SMOKE  
static java.awt.Color whiteSmoke  
static java.awt.Color yellow  
static java.awt.Color YELLOW  
static java.awt.Color YELLOW_GREEN  
static java.awt.Color yellowGreen  
Modifier and Type Field Description

Method Summary

All Methods Static Methods Concrete Methods 
static java.awt.Color darker​(java.awt.Color c, double factor)
Creates a new color darker than the original color by a given factor.
static java.awt.Color getStandardColor​(int index)
Returns a standard color with the given index, or null if the index is out of range [0..139].
static java.lang.Integer indexToIntColorConstant​(int indexc)
Returns a standard color (as integer) of a given index.
static java.lang.String intColorConstantToString​(int intc)
Checks if the int argument equals to any of the pre-defined Color constants and if yes returns the name of the constant, otherwise returns null.
static java.awt.Color lerpColor​(double frac, java.awt.Color from, java.awt.Color to)
Returns a new Color - a point on a linear interpolation between from and to Colors, whose position is defined by frac: if frac <= 0 from is returned, if frac >= 1, to is returned, otherwise a color in between.
static java.awt.Color semiTransparent​(java.awt.Color c)
Creates a semitransparent version of the given color, regardless of its original transparency.
static java.awt.Color spectrumColor​(int index, int period)
Returns a good looking spectrum color constructed from a given integer repeated with a given period.
static java.lang.Integer stringColorConstantToInt​(java.lang.String colorConstant)  
static java.awt.Color transparent​(java.awt.Color c, double fraction)
Creates a transparent version of the given color, regardless of its original transparency.
Modifier and Type Method Description

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

MAX_COLORS

public static final int MAX_COLORS
The number of (different) standard colors.
See Also:
Constant Field Values

antiqueWhite

public static final java.awt.Color antiqueWhite

ANTIQUE_WHITE

@AnyLogicLegacyAPI
public static final java.awt.Color ANTIQUE_WHITE

aqua

public static final java.awt.Color aqua

AQUA

@AnyLogicLegacyAPI
public static final java.awt.Color AQUA

aquamarine

public static final java.awt.Color aquamarine

AQUAMARINE

@AnyLogicLegacyAPI
public static final java.awt.Color AQUAMARINE

azure

public static final java.awt.Color azure

AZURE

@AnyLogicLegacyAPI
public static final java.awt.Color AZURE

beige

public static final java.awt.Color beige

BEIGE

@AnyLogicLegacyAPI
public static final java.awt.Color BEIGE

bisque

public static final java.awt.Color bisque

BISQUE

@AnyLogicLegacyAPI
public static final java.awt.Color BISQUE

black

public static final java.awt.Color black

BLACK

@AnyLogicLegacyAPI
public static final java.awt.Color BLACK

blanchedAlmond

public static final java.awt.Color blanchedAlmond

BLANCHED_ALMOND

@AnyLogicLegacyAPI
public static final java.awt.Color BLANCHED_ALMOND

blue

public static final java.awt.Color blue

BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color BLUE

blueViolet

public static final java.awt.Color blueViolet

BLUE_VIOLET

@AnyLogicLegacyAPI
public static final java.awt.Color BLUE_VIOLET

brown

public static final java.awt.Color brown

BROWN

@AnyLogicLegacyAPI
public static final java.awt.Color BROWN

burlyWood

public static final java.awt.Color burlyWood

BURLY_WOOD

@AnyLogicLegacyAPI
public static final java.awt.Color BURLY_WOOD

cadetBlue

public static final java.awt.Color cadetBlue

CADET_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color CADET_BLUE

chartreuse

public static final java.awt.Color chartreuse

CHARTREUSE

@AnyLogicLegacyAPI
public static final java.awt.Color CHARTREUSE

chocolate

public static final java.awt.Color chocolate

CHOCOLATE

@AnyLogicLegacyAPI
public static final java.awt.Color CHOCOLATE

coral

public static final java.awt.Color coral

CORAL

@AnyLogicLegacyAPI
public static final java.awt.Color CORAL

cornflowerBlue

public static final java.awt.Color cornflowerBlue

CORNFLOWER_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color CORNFLOWER_BLUE

cornsilk

public static final java.awt.Color cornsilk

CORNSILK

@AnyLogicLegacyAPI
public static final java.awt.Color CORNSILK

crimson

public static final java.awt.Color crimson

CRIMSON

@AnyLogicLegacyAPI
public static final java.awt.Color CRIMSON

cyan

public static final java.awt.Color cyan

CYAN

@AnyLogicLegacyAPI
public static final java.awt.Color CYAN

darkBlue

public static final java.awt.Color darkBlue

DARK_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_BLUE

darkCyan

public static final java.awt.Color darkCyan

DARK_CYAN

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_CYAN

darkGoldenRod

public static final java.awt.Color darkGoldenRod

DARK_GOLDENROD

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_GOLDENROD

darkGray

public static final java.awt.Color darkGray

DARK_GRAY

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_GRAY

darkGreen

public static final java.awt.Color darkGreen

DARK_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_GREEN

darkKhaki

public static final java.awt.Color darkKhaki

DARK_KHAKI

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_KHAKI

darkMagenta

public static final java.awt.Color darkMagenta

DARK_MAGENTA

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_MAGENTA

darkOliveGreen

public static final java.awt.Color darkOliveGreen

DARK_OLIVE_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_OLIVE_GREEN

darkOrange

public static final java.awt.Color darkOrange

DARK_ORANGE

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_ORANGE

darkOrchid

public static final java.awt.Color darkOrchid

DARK_ORCHID

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_ORCHID

darkRed

public static final java.awt.Color darkRed

DARK_RED

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_RED

darkSalmon

public static final java.awt.Color darkSalmon

DARK_SALMON

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_SALMON

darkSeaGreen

public static final java.awt.Color darkSeaGreen

DARK_SEA_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_SEA_GREEN

darkSlateBlue

public static final java.awt.Color darkSlateBlue

DARK_SLATE_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_SLATE_BLUE

darkSlateGray

public static final java.awt.Color darkSlateGray

DARK_SLATE_GRAY

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_SLATE_GRAY

darkTurquoise

public static final java.awt.Color darkTurquoise

DARK_TURQUOISE

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_TURQUOISE

darkViolet

public static final java.awt.Color darkViolet

DARK_VIOLET

@AnyLogicLegacyAPI
public static final java.awt.Color DARK_VIOLET

deepPink

public static final java.awt.Color deepPink

DEEP_PINK

@AnyLogicLegacyAPI
public static final java.awt.Color DEEP_PINK

deepSkyBlue

public static final java.awt.Color deepSkyBlue

DEEP_SKY_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color DEEP_SKY_BLUE

dimGray

public static final java.awt.Color dimGray

DIM_GRAY

@AnyLogicLegacyAPI
public static final java.awt.Color DIM_GRAY

dodgerBlue

public static final java.awt.Color dodgerBlue

DODGER_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color DODGER_BLUE

feldspar

public static final java.awt.Color feldspar

FELDSPAR

@AnyLogicLegacyAPI
public static final java.awt.Color FELDSPAR

fireBrick

public static final java.awt.Color fireBrick

FIRE_BRICK

@AnyLogicLegacyAPI
public static final java.awt.Color FIRE_BRICK

floralWhite

public static final java.awt.Color floralWhite

FLORAL_WHITE

@AnyLogicLegacyAPI
public static final java.awt.Color FLORAL_WHITE

forestGreen

public static final java.awt.Color forestGreen

FOREST_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color FOREST_GREEN

fuchsia

public static final java.awt.Color fuchsia

FUCHSIA

@AnyLogicLegacyAPI
public static final java.awt.Color FUCHSIA

gainsboro

public static final java.awt.Color gainsboro

GAINSBORO

@AnyLogicLegacyAPI
public static final java.awt.Color GAINSBORO

ghostWhite

public static final java.awt.Color ghostWhite

GHOST_WHITE

@AnyLogicLegacyAPI
public static final java.awt.Color GHOST_WHITE

gold

public static final java.awt.Color gold

GOLD

@AnyLogicLegacyAPI
public static final java.awt.Color GOLD

goldenRod

public static final java.awt.Color goldenRod

GOLDEN_ROD

@AnyLogicLegacyAPI
public static final java.awt.Color GOLDEN_ROD

gray

public static final java.awt.Color gray

GRAY

@AnyLogicLegacyAPI
public static final java.awt.Color GRAY

green

public static final java.awt.Color green

GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color GREEN

greenYellow

public static final java.awt.Color greenYellow

GREEN_YELLOW

@AnyLogicLegacyAPI
public static final java.awt.Color GREEN_YELLOW

honeyDew

public static final java.awt.Color honeyDew

HONEY_DEW

@AnyLogicLegacyAPI
public static final java.awt.Color HONEY_DEW

hotPink

public static final java.awt.Color hotPink

HOT_PINK

@AnyLogicLegacyAPI
public static final java.awt.Color HOT_PINK

indianRed

public static final java.awt.Color indianRed

INDIAN_RED

@AnyLogicLegacyAPI
public static final java.awt.Color INDIAN_RED

indigo

public static final java.awt.Color indigo

INDIGO

@AnyLogicLegacyAPI
public static final java.awt.Color INDIGO

ivory

public static final java.awt.Color ivory

IVORY

@AnyLogicLegacyAPI
public static final java.awt.Color IVORY

khaki

public static final java.awt.Color khaki

KHAKI

@AnyLogicLegacyAPI
public static final java.awt.Color KHAKI

lavender

public static final java.awt.Color lavender

LAVENDER

@AnyLogicLegacyAPI
public static final java.awt.Color LAVENDER

lavenderBlush

public static final java.awt.Color lavenderBlush

LAVENDER_BLUSH

@AnyLogicLegacyAPI
public static final java.awt.Color LAVENDER_BLUSH

lawnGreen

public static final java.awt.Color lawnGreen

LAWN_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color LAWN_GREEN

lemonChiffon

public static final java.awt.Color lemonChiffon

LEMON_CHIFFON

@AnyLogicLegacyAPI
public static final java.awt.Color LEMON_CHIFFON

lightBlue

public static final java.awt.Color lightBlue

LIGHT_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_BLUE

lightCoral

public static final java.awt.Color lightCoral

LIGHT_CORAL

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_CORAL

lightCyan

public static final java.awt.Color lightCyan

LIGHT_CYAN

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_CYAN

lightGoldenRodYellow

public static final java.awt.Color lightGoldenRodYellow

LIGHT_GOLDEN_ROD_YELLOW

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_GOLDEN_ROD_YELLOW

lightGrey

public static final java.awt.Color lightGrey

LIGHT_GREY

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_GREY

lightGreen

public static final java.awt.Color lightGreen

LIGHT_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_GREEN

lightPink

public static final java.awt.Color lightPink

LIGHT_PINK

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_PINK

lightSalmon

public static final java.awt.Color lightSalmon

LIGHT_SALMON

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_SALMON

lightSeaGreen

public static final java.awt.Color lightSeaGreen

LIGHT_SEA_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_SEA_GREEN

lightSkyBlue

public static final java.awt.Color lightSkyBlue

LIGHT_SKY_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_SKY_BLUE

lightSlateBlue

public static final java.awt.Color lightSlateBlue

LIGHT_SLATE_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_SLATE_BLUE

lightSlateGray

public static final java.awt.Color lightSlateGray

LIGHT_SLATE_GRAY

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_SLATE_GRAY

lightSteelBlue

public static final java.awt.Color lightSteelBlue

LIGHT_STEEL_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_STEEL_BLUE

lightYellow

public static final java.awt.Color lightYellow

LIGHT_YELLOW

@AnyLogicLegacyAPI
public static final java.awt.Color LIGHT_YELLOW

lime

public static final java.awt.Color lime

LIME

@AnyLogicLegacyAPI
public static final java.awt.Color LIME

limeGreen

public static final java.awt.Color limeGreen

LIME_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color LIME_GREEN

linen

public static final java.awt.Color linen

LINEN

@AnyLogicLegacyAPI
public static final java.awt.Color LINEN

magenta

public static final java.awt.Color magenta

MAGENTA

@AnyLogicLegacyAPI
public static final java.awt.Color MAGENTA

maroon

public static final java.awt.Color maroon

MAROON

@AnyLogicLegacyAPI
public static final java.awt.Color MAROON

mediumAquaMarine

public static final java.awt.Color mediumAquaMarine

MEDIUM_AQUA_MARINE

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_AQUA_MARINE

mediumBlue

public static final java.awt.Color mediumBlue

MEDIUM_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_BLUE

mediumOrchid

public static final java.awt.Color mediumOrchid

MEDIUM_ORCHID

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_ORCHID

mediumPurple

public static final java.awt.Color mediumPurple

MEDIUM_PURPLE

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_PURPLE

mediumSeaGreen

public static final java.awt.Color mediumSeaGreen

MEDIUM_SEAGREEN

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_SEAGREEN

mediumSlateBlue

public static final java.awt.Color mediumSlateBlue

MEDIUM_SLATEBLUE

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_SLATEBLUE

mediumSpringGreen

public static final java.awt.Color mediumSpringGreen

MEDIUM_SPRINGGREEN

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_SPRINGGREEN

mediumTurquoise

public static final java.awt.Color mediumTurquoise

MEDIUM_TURQUOISE

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_TURQUOISE

mediumVioletRed

public static final java.awt.Color mediumVioletRed

MEDIUM_VIOLETRED

@AnyLogicLegacyAPI
public static final java.awt.Color MEDIUM_VIOLETRED

midnightBlue

public static final java.awt.Color midnightBlue

MIDNIGHT_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color MIDNIGHT_BLUE

mintCream

public static final java.awt.Color mintCream

MINT_CREAM

@AnyLogicLegacyAPI
public static final java.awt.Color MINT_CREAM

mistyRose

public static final java.awt.Color mistyRose

MISTY_ROSE

@AnyLogicLegacyAPI
public static final java.awt.Color MISTY_ROSE

moccasin

public static final java.awt.Color moccasin

MOCCASIN

@AnyLogicLegacyAPI
public static final java.awt.Color MOCCASIN
public static final java.awt.Color navajoWhite
@AnyLogicLegacyAPI
public static final java.awt.Color NAVAJO_WHITE
public static final java.awt.Color navy
@AnyLogicLegacyAPI
public static final java.awt.Color NAVY

oldLace

public static final java.awt.Color oldLace

OLD_LACE

@AnyLogicLegacyAPI
public static final java.awt.Color OLD_LACE

olive

public static final java.awt.Color olive

OLIVE

@AnyLogicLegacyAPI
public static final java.awt.Color OLIVE

oliveDrab

public static final java.awt.Color oliveDrab

OLIVE_DRAB

@AnyLogicLegacyAPI
public static final java.awt.Color OLIVE_DRAB

orange

public static final java.awt.Color orange

ORANGE

@AnyLogicLegacyAPI
public static final java.awt.Color ORANGE

orangeRed

public static final java.awt.Color orangeRed

ORANGE_RED

@AnyLogicLegacyAPI
public static final java.awt.Color ORANGE_RED

orchid

public static final java.awt.Color orchid

ORCHID

@AnyLogicLegacyAPI
public static final java.awt.Color ORCHID

paleGoldenRod

public static final java.awt.Color paleGoldenRod

PALE_GOLDEN_ROD

@AnyLogicLegacyAPI
public static final java.awt.Color PALE_GOLDEN_ROD

paleGreen

public static final java.awt.Color paleGreen

PALE_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color PALE_GREEN

paleTurquoise

public static final java.awt.Color paleTurquoise

PALE_TURQUOISE

@AnyLogicLegacyAPI
public static final java.awt.Color PALE_TURQUOISE

paleVioletRed

public static final java.awt.Color paleVioletRed

PALE_VIOLET_RED

@AnyLogicLegacyAPI
public static final java.awt.Color PALE_VIOLET_RED

papayaWhip

public static final java.awt.Color papayaWhip

PAPAYA_WHIP

@AnyLogicLegacyAPI
public static final java.awt.Color PAPAYA_WHIP

peachPuff

public static final java.awt.Color peachPuff

PEACH_PUFF

@AnyLogicLegacyAPI
public static final java.awt.Color PEACH_PUFF

peru

public static final java.awt.Color peru

PERU

@AnyLogicLegacyAPI
public static final java.awt.Color PERU

pink

public static final java.awt.Color pink

PINK

@AnyLogicLegacyAPI
public static final java.awt.Color PINK

plum

public static final java.awt.Color plum

PLUM

@AnyLogicLegacyAPI
public static final java.awt.Color PLUM

powderBlue

public static final java.awt.Color powderBlue

POWDER_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color POWDER_BLUE

purple

public static final java.awt.Color purple

PURPLE

@AnyLogicLegacyAPI
public static final java.awt.Color PURPLE

red

public static final java.awt.Color red

RED

@AnyLogicLegacyAPI
public static final java.awt.Color RED

rosyBrown

public static final java.awt.Color rosyBrown

ROSY_BROWN

@AnyLogicLegacyAPI
public static final java.awt.Color ROSY_BROWN

royalBlue

public static final java.awt.Color royalBlue

ROYAL_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color ROYAL_BLUE

saddleBrown

public static final java.awt.Color saddleBrown

SADDLE_BROWN

@AnyLogicLegacyAPI
public static final java.awt.Color SADDLE_BROWN

salmon

public static final java.awt.Color salmon

SALMON

@AnyLogicLegacyAPI
public static final java.awt.Color SALMON

sandyBrown

public static final java.awt.Color sandyBrown

SANDY_BROWN

@AnyLogicLegacyAPI
public static final java.awt.Color SANDY_BROWN

seaGreen

public static final java.awt.Color seaGreen

SEA_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color SEA_GREEN

seaShell

public static final java.awt.Color seaShell

SEA_SHELL

@AnyLogicLegacyAPI
public static final java.awt.Color SEA_SHELL

sienna

public static final java.awt.Color sienna

SIENNA

@AnyLogicLegacyAPI
public static final java.awt.Color SIENNA

silver

public static final java.awt.Color silver

SILVER

@AnyLogicLegacyAPI
public static final java.awt.Color SILVER

skyBlue

public static final java.awt.Color skyBlue

SKY_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color SKY_BLUE

slateBlue

public static final java.awt.Color slateBlue

SLATE_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color SLATE_BLUE

slateGray

public static final java.awt.Color slateGray

SLATE_GRAY

@AnyLogicLegacyAPI
public static final java.awt.Color SLATE_GRAY

snow

public static final java.awt.Color snow

SNOW

@AnyLogicLegacyAPI
public static final java.awt.Color SNOW

springGreen

public static final java.awt.Color springGreen

SPRING_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color SPRING_GREEN

steelBlue

public static final java.awt.Color steelBlue

STEEL_BLUE

@AnyLogicLegacyAPI
public static final java.awt.Color STEEL_BLUE

tan

public static final java.awt.Color tan

TAN

@AnyLogicLegacyAPI
public static final java.awt.Color TAN

teal

public static final java.awt.Color teal

TEAL

@AnyLogicLegacyAPI
public static final java.awt.Color TEAL

thistle

public static final java.awt.Color thistle

THISTLE

@AnyLogicLegacyAPI
public static final java.awt.Color THISTLE

tomato

public static final java.awt.Color tomato

TOMATO

@AnyLogicLegacyAPI
public static final java.awt.Color TOMATO

turquoise

public static final java.awt.Color turquoise

TURQUOISE

@AnyLogicLegacyAPI
public static final java.awt.Color TURQUOISE

violet

public static final java.awt.Color violet

VIOLET

@AnyLogicLegacyAPI
public static final java.awt.Color VIOLET

violetRed

public static final java.awt.Color violetRed

VIOLET_RED

@AnyLogicLegacyAPI
public static final java.awt.Color VIOLET_RED

wheat

public static final java.awt.Color wheat

WHEAT

@AnyLogicLegacyAPI
public static final java.awt.Color WHEAT

white

public static final java.awt.Color white

WHITE

@AnyLogicLegacyAPI
public static final java.awt.Color WHITE

whiteSmoke

public static final java.awt.Color whiteSmoke

WHITE_SMOKE

@AnyLogicLegacyAPI
public static final java.awt.Color WHITE_SMOKE

yellow

public static final java.awt.Color yellow

YELLOW

@AnyLogicLegacyAPI
public static final java.awt.Color YELLOW

yellowGreen

public static final java.awt.Color yellowGreen

YELLOW_GREEN

@AnyLogicLegacyAPI
public static final java.awt.Color YELLOW_GREEN

transparent

public static final java.awt.Color transparent

TRANSPARENT

@AnyLogicLegacyAPI
public static final java.awt.Color TRANSPARENT

controlDefault

public static final java.awt.Color controlDefault
This symbolic name is used to identify the default color when setting colors of controls (ShapeButton, ShapeCheckBox etc.)
This constant may only be used in constructors, setters and getters of those controls. For more assistance, please refer to the API documentation of corresponding controls' methods

CONTROL_DEFAULT

@AnyLogicLegacyAPI
public static final java.awt.Color CONTROL_DEFAULT

markupDefaultNetwork

public static final java.awt.Color markupDefaultNetwork

markupDefaultWall

public static final java.awt.Color markupDefaultWall

markupDefaultPedestrian

public static final java.awt.Color markupDefaultPedestrian

markupDefaultPedestrianReverse

public static final java.awt.Color markupDefaultPedestrianReverse

markupDefaultTrack

public static final java.awt.Color markupDefaultTrack

markupDefaultPipe

public static final java.awt.Color markupDefaultPipe

markupDefaultStorageTank

public static final java.awt.Color markupDefaultStorageTank

markupDefaultBulkConveyorBelt

public static final java.awt.Color markupDefaultBulkConveyorBelt

markupDefaultSwitch

public static final java.awt.Color markupDefaultSwitch

markupDefaultSwitchPath

public static final java.awt.Color markupDefaultSwitchPath

markupDefaultSwitchSelection

@Deprecated
public static final java.awt.Color markupDefaultSwitchSelection
Deprecated.
will be removed in next releases, use markupDefaultSwitchPath instead

markupDefaultPointOnTrack

public static final java.awt.Color markupDefaultPointOnTrack

defaultGisLineColor

public static final java.awt.Color defaultGisLineColor

defaultGisFillColor

public static final java.awt.Color defaultGisFillColor

markupDefaultLiftLineColor

public static final java.awt.Color markupDefaultLiftLineColor

markupDefaultLiftFillColor

public static final java.awt.Color markupDefaultLiftFillColor

markupDefaultConveyorSpurFillColor

public static final java.awt.Color markupDefaultConveyorSpurFillColor

markupDefaultConveyorSpurLineColor

public static final java.awt.Color markupDefaultConveyorSpurLineColor

markupDefaultMaterialHandling

public static final java.awt.Color markupDefaultMaterialHandling

grassTexture

public static final Texture grassTexture

tarmacTexture

public static final Texture tarmacTexture

sandTexture

public static final Texture sandTexture

gravelTexture

public static final Texture gravelTexture

brickRedTexture

public static final Texture brickRedTexture

brickWhiteTexture

public static final Texture brickWhiteTexture

concreteTexture

public static final Texture concreteTexture

roofCeramicTexture

public static final Texture roofCeramicTexture

roofMetalTexture

public static final Texture roofMetalTexture

waterTexture

public static final Texture waterTexture

floorWoodTexture

public static final Texture floorWoodTexture

floorMetalTexture

public static final Texture floorMetalTexture

floorLinoTexture

public static final Texture floorLinoTexture

floorCarpetTexture

public static final Texture floorCarpetTexture

earthTexture

public static final Texture earthTexture

snowTexture

public static final Texture snowTexture

Method Detail

intColorConstantToString

@AnyLogicLegacyAPI
public static final java.lang.String intColorConstantToString​(int intc)
Checks if the int argument equals to any of the pre-defined Color constants and if yes returns the name of the constant, otherwise returns null. Note that the pre-defined constants are all opaque, therefore if alpha value of the given color is not 255 (0xFF), it will not be recognized as standard.
Parameters:
intc - the int representation of a color
Returns:
the name of the corresponding Color constant or null

stringColorConstantToInt

@AnyLogicLegacyAPI
public static final java.lang.Integer stringColorConstantToInt​(java.lang.String colorConstant)

indexToIntColorConstant

@AnyLogicLegacyAPI
public static final java.lang.Integer indexToIntColorConstant​(int indexc)
Returns a standard color (as integer) of a given index. This function is used by ColorPicker to sort colors. First several indexes give saturationless colors with ascending brightness, then all other colors sorted by ascending hue, descending saturation, and descending brightness.
Parameters:
indexc - the index of a color
Returns:
the integer representation of the color

getStandardColor

public static final java.awt.Color getStandardColor​(int index)
Returns a standard color with the given index, or null if the index is out of range [0..139]. First several indexes give saturationless colors with ascending brightness, then all other colors sorted by ascending hue, descending saturation, and descending brightness.
Parameters:
index - the color index
Returns:
the standard color

lerpColor

public static java.awt.Color lerpColor​(double frac,
                                       java.awt.Color from,
                                       java.awt.Color to)
Returns a new Color - a point on a linear interpolation between from and to Colors, whose position is defined by frac: if frac <= 0 from is returned, if frac >= 1, to is returned, otherwise a color in between.
Parameters:
frac - a value defining where the color should be
from - the start color, corresponds to frac = 0
to - the end color, corresponds to frac = 1
Returns:
a new color

semiTransparent

public static java.awt.Color semiTransparent​(java.awt.Color c)
Creates a semitransparent version of the given color, regardless of its original transparency.
Parameters:
c - the original color
Returns:
semitransparent c (with 'alpha' value of 128)

transparent

public static java.awt.Color transparent​(java.awt.Color c,
                                         double fraction)
Creates a transparent version of the given color, regardless of its original transparency.
Parameters:
c - the original color
fraction - transparency fraction: 0..1, where 0=transparent, 1=opaque
Returns:
c with transparency
Since:
7.2

darker

public static java.awt.Color darker​(java.awt.Color c,
                                    double factor)
Creates a new color darker than the original color by a given factor.
Parameters:
c - the original color
factor - should be in range [0..1]
Returns:
a color darker than c by the factor

spectrumColor

public static java.awt.Color spectrumColor​(int index,
                                           int period)
Returns a good looking spectrum color constructed from a given integer repeated with a given period.
Parameters:
index - the index of the color
period - the number of unique colors
Returns:
a spectrum color corresponding to the index
How can we improve this article?