Class AbstractColorSlider
- All Implemented Interfaces:
javafx.css.Styleable,javafx.event.EventTarget
- Direct Known Subclasses:
AlphaSlider,ColorRectangleSlider,ColorSlider
-
Property Summary
PropertiesTypePropertyDescription@NonNull javafx.beans.property.BooleanPropertySet this value to true when the user is adjusting a value in another control.@NonNull javafx.beans.property.FloatProperty@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 0.@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 1.@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 2.@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 3.@NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> The color space of the display.@NonNull javafx.beans.property.ObjectProperty<ToIntFunction<Integer>> @NonNull javafx.beans.property.BooleanPropertyIndicates whether the value of the slider should always be aligned with the tick marks.@NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> @NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> The color space of the components.@NonNull javafx.beans.property.DoubleProperty@NonNull javafx.beans.property.DoublePropertyProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull javafx.beans.property.BooleanPropertySet this value to true when the user is adjusting a value in another control.protected final @NonNull javafx.beans.property.FloatPropertystatic final intstatic final intprotected final @NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 0.protected final @NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 1.protected final @NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 2.protected final @NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 3.protected final @NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> The color space of the display.protected final @NonNull javafx.beans.property.ObjectProperty<ToIntFunction<Integer>> protected final @NonNull javafx.beans.property.BooleanPropertyIndicates whether the value of the slider should always be aligned with the tick marks.protected final @NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> protected final @NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> The color space of the components.protected javafx.scene.layout.Regionprotected final @NonNull javafx.beans.property.DoublePropertyprotected final @NonNull javafx.beans.property.DoublePropertyFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull javafx.beans.property.BooleanPropertySet this value to true when the user is adjusting a value in another control.@NonNull javafx.beans.property.FloatProperty@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 0.@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 1.@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 2.@NonNull javafx.beans.property.FloatPropertyThe value of the color component with index 3.protected abstract @Nullable AbstractColorSlider.AbstractFillTaskcreateFillTask(@NonNull javafx.scene.image.PixelBuffer<IntBuffer> pixelBuffer) @NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> The color space of the display.protected voidfloatgetAlpha()Gets the value of thealphaproperty.protected static intgetArgb(NamedColorSpace scs, NamedColorSpace tcs, NamedColorSpace dcs, float[] colorValue, float[] sRgb, float[] tComponent, float[] dComponent, float[] dRgb, float alpha) floatgetC0()Gets the value of thec0property.floatgetC1()Gets the value of thec1property.floatgetC2()Gets the value of thec2property.floatgetC3()Gets the value of thec3property.Gets the value of thedisplayColorSpaceproperty.getFxml()protected static intgetPreArgb(NamedColorSpace dcs, float[] dRgb, float[] pre, float alpha) Gets the value of thergbFilterproperty.Gets the value of thesourceColorSpaceproperty.Gets the value of thetargetColorSpaceproperty.doubleGets the value of thethumbTranslateXproperty.doubleGets the value of thethumbTranslateYproperty.voidbooleanGets the value of theadjustingproperty.booleanGets the value of thesnapToTicksproperty.protected voidprotected voidload()Must be called from the constructor of the subclass!protected floatmaybeSnapToTicks(float value, double tickUnit, javafx.scene.input.MouseEvent mouseEvent) protected abstract voidonKeyPressed(javafx.scene.input.KeyEvent keyEvent) protected abstract voidonMousePressedOrDragged(javafx.scene.input.MouseEvent mouseEvent) protected static booleanoutOfGamut(NamedColorSpace colorSpace, float[] component) If epsilon is 0, we get the best rendering with OK LCH: the shape is a triangle with a straight line from the bottom left to the right, and a curved line from the right to the top left.@NonNull javafx.beans.property.ObjectProperty<ToIntFunction<Integer>> voidsetAdjusting(boolean adjusting) Sets the value of theadjustingproperty.voidsetAlpha(float alpha) Sets the value of thealphaproperty.voidsetC0(float c0) Sets the value of thec0property.voidsetC1(float c1) Sets the value of thec1property.voidsetC2(float c2) Sets the value of thec2property.voidsetC3(float c3) Sets the value of thec3property.voidsetDisplayColorSpace(NamedColorSpace displayColorSpace) Sets the value of thedisplayColorSpaceproperty.voidsetRgbFilter(ToIntFunction<Integer> rgbFilter) Sets the value of thergbFilterproperty.voidsetSnapToTicks(boolean snapToTicks) Sets the value of thesnapToTicksproperty.voidsetSourceColorSpace(NamedColorSpace sourceColorSpace) Sets the value of thesourceColorSpaceproperty.voidsetTargetColorSpace(NamedColorSpace targetColorSpace) Sets the value of thetargetColorSpaceproperty.voidsetThumbTranslateX(double thumbTranslateX) Sets the value of thethumbTranslateXproperty.voidsetThumbTranslateY(double thumbTranslateY) Sets the value of thethumbTranslateYproperty.@NonNull javafx.beans.property.BooleanPropertyIndicates whether the value of the slider should always be aligned with the tick marks.@NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> @NonNull javafx.beans.property.ObjectProperty<NamedColorSpace> The color space of the components.@NonNull javafx.beans.property.DoubleProperty@NonNull javafx.beans.property.DoublePropertyMethods inherited from class javafx.scene.layout.Pane
getChildrenMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
adjusting
Set this value to true when the user is adjusting a value in another control.For example, when the user is pressing the mouse button in a slider in another control.
- See Also:
-
c0
The value of the color component with index 0.- See Also:
-
c1
The value of the color component with index 1.- See Also:
-
c2
The value of the color component with index 2.- See Also:
-
c3
The value of the color component with index 3.- See Also:
-
targetColorSpace
The color space of the components.- See Also:
-
rgbFilter
- See Also:
-
snapToTicks
Indicates whether the value of the slider should always be aligned with the tick marks.- See Also:
-
displayColorSpace
The color space of the display.- See Also:
-
thumbTranslateX
- See Also:
-
thumbTranslateY
- See Also:
-
sourceColorSpace
- See Also:
-
alpha
- See Also:
-
-
Field Details
-
BLOCK_SIZE_COARSE
public static final int BLOCK_SIZE_COARSE- See Also:
-
BLOCK_SIZE_FINE
public static final int BLOCK_SIZE_FINE- See Also:
-
thumbTranslateX
-
thumbTranslateY
-
adjusting
Set this value to true when the user is adjusting a value in another control.For example, when the user is pressing the mouse button in a slider in another control.
-
c0
The value of the color component with index 0. -
c1
The value of the color component with index 1. -
c2
The value of the color component with index 2. -
c3
The value of the color component with index 3. -
alpha
-
targetColorSpace
The color space of the components. -
sourceColorSpace
-
displayColorSpace
The color space of the display. -
rgbFilter
-
snapToTicks
Indicates whether the value of the slider should always be aligned with the tick marks. -
thumb
protected javafx.scene.layout.Region thumb
-
-
Constructor Details
-
AbstractColorSlider
public AbstractColorSlider()
-
-
Method Details
-
getFxml
-
adjustingProperty
Set this value to true when the user is adjusting a value in another control.For example, when the user is pressing the mouse button in a slider in another control.
- Returns:
- the
adjustingproperty - See Also:
-
c0Property
The value of the color component with index 0.- Returns:
- the
c0property - See Also:
-
c1Property
The value of the color component with index 1.- Returns:
- the
c1property - See Also:
-
c2Property
The value of the color component with index 2.- Returns:
- the
c2property - See Also:
-
c3Property
The value of the color component with index 3.- Returns:
- the
c3property - See Also:
-
targetColorSpaceProperty
The color space of the components.- Returns:
- the
targetColorSpaceproperty - See Also:
-
createFillTask
protected abstract @Nullable AbstractColorSlider.AbstractFillTask createFillTask(@NonNull javafx.scene.image.PixelBuffer<IntBuffer> pixelBuffer) -
drawColorRect
protected void drawColorRect() -
getC0
public float getC0()Gets the value of thec0property.- Property description:
- The value of the color component with index 0.
- Returns:
- the value of the
c0property - See Also:
-
setC0
public void setC0(float c0) Sets the value of thec0property.- Property description:
- The value of the color component with index 0.
- Parameters:
c0- the value for thec0property- See Also:
-
getC1
public float getC1()Gets the value of thec1property.- Property description:
- The value of the color component with index 1.
- Returns:
- the value of the
c1property - See Also:
-
setC1
public void setC1(float c1) Sets the value of thec1property.- Property description:
- The value of the color component with index 1.
- Parameters:
c1- the value for thec1property- See Also:
-
getC2
public float getC2()Gets the value of thec2property.- Property description:
- The value of the color component with index 2.
- Returns:
- the value of the
c2property - See Also:
-
setC2
public void setC2(float c2) Sets the value of thec2property.- Property description:
- The value of the color component with index 2.
- Parameters:
c2- the value for thec2property- See Also:
-
getC3
public float getC3()Gets the value of thec3property.- Property description:
- The value of the color component with index 3.
- Returns:
- the value of the
c3property - See Also:
-
setC3
public void setC3(float c3) Sets the value of thec3property.- Property description:
- The value of the color component with index 3.
- Parameters:
c3- the value for thec3property- See Also:
-
getTargetColorSpace
Gets the value of thetargetColorSpaceproperty.- Property description:
- The color space of the components.
- Returns:
- the value of the
targetColorSpaceproperty - See Also:
-
setTargetColorSpace
Sets the value of thetargetColorSpaceproperty.- Property description:
- The color space of the components.
- Parameters:
targetColorSpace- the value for thetargetColorSpaceproperty- See Also:
-
getRgbFilter
Gets the value of thergbFilterproperty.- Property description:
- Returns:
- the value of the
rgbFilterproperty - See Also:
-
setRgbFilter
Sets the value of thergbFilterproperty.- Property description:
- Parameters:
rgbFilter- the value for thergbFilterproperty- See Also:
-
onKeyPressed
protected abstract void onKeyPressed(javafx.scene.input.KeyEvent keyEvent) -
invalidate
public void invalidate() -
isAdjusting
public boolean isAdjusting()Gets the value of theadjustingproperty.- Property description:
- Set this value to true when the user is adjusting a value in another control.
For example, when the user is pressing the mouse button in a slider in another control.
- Returns:
- the value of the
adjustingproperty - See Also:
-
setAdjusting
public void setAdjusting(boolean adjusting) Sets the value of theadjustingproperty.- Property description:
- Set this value to true when the user is adjusting a value in another control.
For example, when the user is pressing the mouse button in a slider in another control.
- Parameters:
adjusting- the value for theadjustingproperty- See Also:
-
isSnapToTicks
public boolean isSnapToTicks()Gets the value of thesnapToTicksproperty.- Property description:
- Indicates whether the value of the slider should always be aligned with the tick marks.
- Returns:
- the value of the
snapToTicksproperty - See Also:
-
setSnapToTicks
public void setSnapToTicks(boolean snapToTicks) Sets the value of thesnapToTicksproperty.- Property description:
- Indicates whether the value of the slider should always be aligned with the tick marks.
- Parameters:
snapToTicks- the value for thesnapToTicksproperty- See Also:
-
layoutChildren
protected void layoutChildren()- Overrides:
layoutChildrenin classjavafx.scene.Parent
-
load
protected void load()Must be called from the constructor of the subclass! -
maybeSnapToTicks
protected float maybeSnapToTicks(float value, double tickUnit, javafx.scene.input.MouseEvent mouseEvent) -
onMousePressedOrDragged
protected abstract void onMousePressedOrDragged(javafx.scene.input.MouseEvent mouseEvent) -
rgbFilterProperty
- Returns:
- the
rgbFilterproperty - See Also:
-
snapToTicksProperty
Indicates whether the value of the slider should always be aligned with the tick marks.- Returns:
- the
snapToTicksproperty - See Also:
-
getDisplayColorSpace
Gets the value of thedisplayColorSpaceproperty.- Property description:
- The color space of the display.
- Returns:
- the value of the
displayColorSpaceproperty - See Also:
-
displayColorSpaceProperty
The color space of the display.- Returns:
- the
displayColorSpaceproperty - See Also:
-
setDisplayColorSpace
Sets the value of thedisplayColorSpaceproperty.- Property description:
- The color space of the display.
- Parameters:
displayColorSpace- the value for thedisplayColorSpaceproperty- See Also:
-
getThumbTranslateX
public double getThumbTranslateX()Gets the value of thethumbTranslateXproperty.- Property description:
- Returns:
- the value of the
thumbTranslateXproperty - See Also:
-
thumbTranslateXProperty
- Returns:
- the
thumbTranslateXproperty - See Also:
-
outOfGamut
If epsilon is 0, we get the best rendering with OK LCH: the shape is a triangle with a straight line from the bottom left to the right, and a curved line from the right to the top left. (as shown below).However, with epsilon 0, pure white color converted from sRGB to Display P3 is out of gamut, because the converted color value is slightly greater than 1.0.
+--- | ---- | ------ | -------- | ---- | ---- | ---- +----If epsilon is too large, we get wiggles in the OK LCH rendering: the shape wiggles at the bottom left before it goes to the right. The curved line from the right to the top left is still good.
+--- | ---- | ------ | -------- | ---- | ---- | ---- +----------- Parameters:
colorSpace- a color spacecomponent- component values in the specified color space- Returns:
- true if at least one component value is out of gamut
-
getPreArgb
-
getArgb
protected static int getArgb(NamedColorSpace scs, NamedColorSpace tcs, NamedColorSpace dcs, float[] colorValue, float[] sRgb, float[] tComponent, float[] dComponent, float[] dRgb, float alpha) -
setThumbTranslateX
public void setThumbTranslateX(double thumbTranslateX) Sets the value of thethumbTranslateXproperty.- Property description:
- Parameters:
thumbTranslateX- the value for thethumbTranslateXproperty- See Also:
-
getThumbTranslateY
public double getThumbTranslateY()Gets the value of thethumbTranslateYproperty.- Property description:
- Returns:
- the value of the
thumbTranslateYproperty - See Also:
-
thumbTranslateYProperty
- Returns:
- the
thumbTranslateYproperty - See Also:
-
setThumbTranslateY
public void setThumbTranslateY(double thumbTranslateY) Sets the value of thethumbTranslateYproperty.- Property description:
- Parameters:
thumbTranslateY- the value for thethumbTranslateYproperty- See Also:
-
getSourceColorSpace
Gets the value of thesourceColorSpaceproperty.- Property description:
- Returns:
- the value of the
sourceColorSpaceproperty - See Also:
-
sourceColorSpaceProperty
- Returns:
- the
sourceColorSpaceproperty - See Also:
-
setSourceColorSpace
Sets the value of thesourceColorSpaceproperty.- Property description:
- Parameters:
sourceColorSpace- the value for thesourceColorSpaceproperty- See Also:
-
getAlpha
public float getAlpha()Gets the value of thealphaproperty.- Property description:
- Returns:
- the value of the
alphaproperty - See Also:
-
alphaProperty
- Returns:
- the
alphaproperty - See Also:
-
setAlpha
public void setAlpha(float alpha) Sets the value of thealphaproperty.- Property description:
- Parameters:
alpha- the value for thealphaproperty- See Also:
-