Class Utils
java.lang.Object
com.amalgamasimulation.graphicaleditor.utils.Utils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic javafx.scene.paint.Colorstatic javafx.scene.paint.Colorstatic javafx.scene.paint.Colorstatic javafx.scene.paint.Colorstatic javafx.scene.paint.Colorstatic javafx.scene.paint.Colorstatic double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.scene.paint.ColorconvertColorAwtToFx(Color color) static doublegetDistance(double x1, double y1, double x2, double y2) static doublegetDistance(double x1, double y1, double z1, double x2, double y2, double z2) voidinit(org.eclipse.e4.core.contexts.IEclipseContext context) static javafx.scene.paint.ColorsetColorOpacity(javafx.scene.paint.Color color, double opacity)
-
Field Details
-
imagesCache
-
awtToFxColorsCache
-
colorsWithOpacityCache
-
transparentOpacity
public static double transparentOpacity -
defaultCreatedSegmentBeginNodeColor
public static javafx.scene.paint.Color defaultCreatedSegmentBeginNodeColor -
defaultNodeFillColor
public static javafx.scene.paint.Color defaultNodeFillColor -
defaultNodeStrokeColor
public static javafx.scene.paint.Color defaultNodeStrokeColor -
defaultHighlightedColor
public static javafx.scene.paint.Color defaultHighlightedColor -
defaultArcColor
public static javafx.scene.paint.Color defaultArcColor -
defaultSelectionColor
public static javafx.scene.paint.Color defaultSelectionColor
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
init
@Inject @PostConstruct public void init(org.eclipse.e4.core.contexts.IEclipseContext context) -
setColorOpacity
public static javafx.scene.paint.Color setColorOpacity(javafx.scene.paint.Color color, double opacity) -
convertColorAwtToFx
-
getDistance
public static double getDistance(double x1, double y1, double x2, double y2) -
getDistance
public static double getDistance(double x1, double y1, double z1, double x2, double y2, double z2)
-