Module jfxtras.gauge.linear
Class BasicRoundDailGaugeSkin
java.lang.Object
javafx.scene.control.SkinBase<C>
jfxtras.internal.scene.control.gauge.linear.skin.AbstractLinearGaugeSkin<BasicRoundDailGaugeSkin,BasicRoundDailGauge>
jfxtras.internal.scene.control.gauge.linear.skin.BasicRoundDailGaugeSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<BasicRoundDailGauge>
public class BasicRoundDailGaugeSkin
extends AbstractLinearGaugeSkin<BasicRoundDailGaugeSkin,BasicRoundDailGauge>
-
Property Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
tickcolorProperties inherited from class jfxtras.internal.scene.control.gauge.linear.skin.AbstractLinearGaugeSkin
animated, valueFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
private class
protected class
private class
private class
private class
private static class
private class
Nested classes/interfaces inherited from class jfxtras.internal.scene.control.gauge.linear.skin.AbstractLinearGaugeSkin
AbstractLinearGaugeSkin.AbstractIndicatorPane, AbstractLinearGaugeSkin.AbstractMarkerPane, AbstractLinearGaugeSkin.AbstractValuePane, AbstractLinearGaugeSkin.Animated
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final double
private final BasicRoundDailGaugeSkin.BackPlatePane
private final javafx.beans.property.SimpleDoubleProperty
private final javafx.beans.property.SimpleDoubleProperty
private static final double
private final BasicRoundDailGaugeSkin.GlassPlatePane
private static final double
private final BasicRoundDailGaugeSkin.IndicatorPane
private static final double
private static final double
private final BasicRoundDailGaugeSkin.MarkerPane
private final BasicRoundDailGaugeSkin.NeedlePane
private final javafx.beans.property.SimpleDoubleProperty
private static final double
private static final double
private static final double
private static final double
private final BasicRoundDailGaugeSkin.SegmentPane
private final javafx.scene.layout.StackPane
private static final double
private static final double
private static final double
private static final double
private javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
private final BasicRoundDailGaugeSkin.ValuePane
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate javafx.geometry.Point2D
calculatePointOnCircle
(double radius, double angleInDegrees) http://www.mathopenref.com/coordparamcircle.htmlprivate double
private void
construct the nodesstatic List<javafx.css.CssMetaData<? extends javafx.css.Styleable,
?>> List<javafx.css.CssMetaData<? extends javafx.css.Styleable,
?>> This method should delegate toNode.getClassCssMetaData()
so that a Node's CssMetaData can be accessed without the need for reflection.final javafx.scene.paint.Paint
Gets the value of the property tickColor.final void
setTickColor
(javafx.scene.paint.Paint value) Sets the value of the property tickColor.final javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint>
tickcolorprotected boolean
final BasicRoundDailGaugeSkin
withTickColor
(javafx.scene.paint.Paint value) Methods inherited from class jfxtras.internal.scene.control.gauge.linear.skin.AbstractLinearGaugeSkin
activateSegments, animatedProperty, getAnimated, getValueFormat, setAnimated, setValueFormat, validateMarker, validateSegment, validateValue, valueFormat, valueFormatProperty, withAnimated, withValueFormat
Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Property Details
-
tickColor
public final javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> tickColorPropertytickcolor- See Also:
-
-
Field Details
-
RING_OUTER_RADIUS_FACTOR
private static final double RING_OUTER_RADIUS_FACTOR- See Also:
-
RING_INNER_RADIUS_FACTOR
private static final double RING_INNER_RADIUS_FACTOR- See Also:
-
RING_WIDTH_FACTOR
private static final double RING_WIDTH_FACTOR- See Also:
-
BACKPLATE_RADIUS_FACTOR
private static final double BACKPLATE_RADIUS_FACTOR- See Also:
-
TICK_OUTER_RADIUS_FACTOR
private static final double TICK_OUTER_RADIUS_FACTOR- See Also:
-
TICK_INNER_RADIUS_FACTOR
private static final double TICK_INNER_RADIUS_FACTOR- See Also:
-
TICK_MINOR_RADIUS_FACTOR
private static final double TICK_MINOR_RADIUS_FACTOR- See Also:
-
TICK_MAJOR_RADIUS_FACTOR
private static final double TICK_MAJOR_RADIUS_FACTOR- See Also:
-
LABEL_RADIUS_FACTOR
private static final double LABEL_RADIUS_FACTOR- See Also:
-
SEGMENT_INNER_RADIUS_FACTOR
private static final double SEGMENT_INNER_RADIUS_FACTOR- See Also:
-
MARKER_RADIUS_FACTOR
private static final double MARKER_RADIUS_FACTOR- See Also:
-
INDICATOR_RADIUS_FACTOR
private static final double INDICATOR_RADIUS_FACTOR- See Also:
-
FULL_ARC_IN_DEGREES
private static final double FULL_ARC_IN_DEGREES- See Also:
-
tickColorProperty
private javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> tickColorProperty -
centerX
private final javafx.beans.property.SimpleDoubleProperty centerX -
centerY
private final javafx.beans.property.SimpleDoubleProperty centerY -
radius
private final javafx.beans.property.SimpleDoubleProperty radius -
stackPane
private final javafx.scene.layout.StackPane stackPane -
segmentPane
-
backPlatePane
-
markerPane
-
indicatorPane
-
needlePane
-
valuePane
-
glassPlatePane
-
-
Constructor Details
-
BasicRoundDailGaugeSkin
-
-
Method Details
-
tickColorProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.paint.Paint> tickColorProperty()tickcolor- See Also:
-
setTickColor
public final void setTickColor(javafx.scene.paint.Paint value) Sets the value of the property tickColor.- Property description:
- tickcolor
-
getTickColor
public final javafx.scene.paint.Paint getTickColor()Gets the value of the property tickColor.- Property description:
- tickcolor
-
withTickColor
-
getClassCssMetaData
- Returns:
- The CssMetaData associated with this class, which may include the CssMetaData of its super classes.
-
getCssMetaData
This method should delegate toNode.getClassCssMetaData()
so that a Node's CssMetaData can be accessed without the need for reflection.- Overrides:
getCssMetaData
in classAbstractLinearGaugeSkin<BasicRoundDailGaugeSkin,
BasicRoundDailGauge> - Returns:
- The CssMetaData associated with this node, which may include the CssMetaData of its super classes.
-
constructNodes
private void constructNodes()construct the nodes -
validateValueAndHandleInvalid
protected boolean validateValueAndHandleInvalid()- Overrides:
validateValueAndHandleInvalid
in classAbstractLinearGaugeSkin<BasicRoundDailGaugeSkin,
BasicRoundDailGauge>
-
calculatePointOnCircle
private javafx.geometry.Point2D calculatePointOnCircle(double radius, double angleInDegrees) http://www.mathopenref.com/coordparamcircle.html- Parameters:
center
-radius
-angleInDegrees
-- Returns:
-
calculateRadius
private double calculateRadius()- Returns:
-