Tabnine Logo
Orientation.equals
Code IndexAdd Tabnine to your IDE (free)

How to use
equals
method
in
javafx.geometry.Orientation

Best Java code snippets using javafx.geometry.Orientation.equals (Showing top 13 results out of 315)

origin: org.drombler.commons/drombler-commons-docking-fx

public boolean isHorizontal() {
  return getOrientation().equals(Orientation.HORIZONTAL);
}
origin: org.drombler.commons/drombler-commons-docking-fx

public boolean isVertical() {
  return getOrientation().equals(Orientation.VERTICAL);
}
origin: org.drombler.commons/drombler-commons-fx-docking

public boolean isHorizontal() {
  return getOrientation().equals(Orientation.HORIZONTAL);
}
origin: no.tornado/tornadofx-controls

private boolean isVerticalLabelPosition(){
  return getFieldSet().getLabelPosition().equals( Orientation.VERTICAL );
}
origin: no.tornado/tornadofx-controls

public Pane getInputContainer() {
  if( inputContainer == null ){
    inputContainer = Orientation.HORIZONTAL.equals( orientation ) ? new HBox() : new VBox();
    inputContainer.getStyleClass().add("input-container");
    NodeHelper.addPseudoClass( inputContainer, this.orientation.name().toLowerCase() );
  }
  return inputContainer;
}
origin: org.controlsfx/controlsfx

@Override
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) {
  if (getSkinnable().getOrientation().equals(Orientation.VERTICAL)) {
    return computePrefWidth(height, topInset, rightInset, bottomInset, leftInset);
  }
  return 0;
}
origin: org.controlsfx/controlsfx

@Override
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
  if (getSkinnable().getOrientation().equals(Orientation.HORIZONTAL)) {
    return computePrefHeight(width, topInset, rightInset, bottomInset, leftInset);
  }
  return 0;
}
origin: org.controlsfx/controlsfx

@Override
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
  if (getSkinnable().getOrientation().equals(Orientation.HORIZONTAL)) {
    return computePrefHeight(width, topInset, rightInset, bottomInset, leftInset);
  }
  return Double.MAX_VALUE;
}
origin: org.controlsfx/controlsfx

@Override
protected double computeMaxWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
  if (getSkinnable().getOrientation().equals(Orientation.VERTICAL)) {
    return computePrefWidth(width, topInset, rightInset, bottomInset, leftInset);
  }
  return Double.MAX_VALUE;
}
origin: org.controlsfx/controlsfx

@Override
protected double computePrefWidth(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
  if (getSkinnable().getOrientation().equals(Orientation.VERTICAL)) {
    OptionalDouble maxWidth = getChildren().stream().mapToDouble(node -> node.prefWidth(-1)).max();
    if (maxWidth.isPresent()) {
      return maxWidth.getAsDouble();
    }
  }
  return getSkinnable().getPrefWidth();
}
origin: org.controlsfx/controlsfx

@Override
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) {
  if (getSkinnable().getOrientation().equals(Orientation.HORIZONTAL)) {
    OptionalDouble maxHeight = getChildren().stream().mapToDouble(node -> node.prefHeight(-1)).max();
    if (maxHeight.isPresent()) {
      return maxHeight.getAsDouble();
    }
  }
  return getSkinnable().getPrefHeight();
}
origin: org.controlsfx/controlsfx

  @Override
  protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) {
    double total = getSkinnable().getTotal();

    List<T> segments = getSkinnable().getSegments();
    int size = segments.size();

    double x = contentX;
    double y = contentY + contentHeight;

    for (int i = 0; i < size; i++) {
      SegmentedBar.Segment segment = segments.get(i);
      Node segmentNode = segmentNodes.get(segment);
      double segmentValue = segment.getValue();

      if (getSkinnable().getOrientation().equals(Orientation.HORIZONTAL)) {
        double segmentWidth = segmentValue / total * contentWidth;
        segmentNode.resizeRelocate(x, contentY, segmentWidth, contentHeight);
        x += segmentWidth;
      } else {
        double segmentHeight = segmentValue / total * contentHeight;
        segmentNode.resizeRelocate(contentX, y - segmentHeight, contentWidth, segmentHeight);
        y -= segmentHeight;
      }
    }
  }
}
origin: org.controlsfx/controlsfx

if (rangeSlider.getOrientation().equals(Orientation.HORIZONTAL)) {
  newPosition = position * (rangeSlider.getMax() - rangeSlider.getMin()) + rangeSlider.getMin();
} else {
javafx.geometryOrientationequals

Popular methods of Orientation

  • hashCode
  • name

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now