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

How to use
Orientation
in
javafx.geometry

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

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

public boolean isHorizontal() {
  return getOrientation().equals(Orientation.HORIZONTAL);
}
origin: org.controlsfx/controlsfx

/**
 * {@inheritDoc}
 */
@Override
public int hashCode() {
  final int prime = 31;
  int result = 1;
  result = prime * result + ((centerPoint == null) ? 0 : centerPoint.hashCode());
  long temp;
  temp = Double.doubleToLongBits(length);
  result = prime * result + (int) (temp ^ (temp >>> 32));
  result = prime * result + ((orientation == null) ? 0 : orientation.hashCode());
  return result;
}
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.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: 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 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 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.geometryOrientation

Most used methods

  • equals
  • hashCode
  • name

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JList (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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