Examples of PERPENDICULAR_DIRECTION


Examples of org.gbcpainter.geom.PERPENDICULAR_DIRECTION

  @NotNull
  @Override
  public PERPENDICULAR_DIRECTION getBeforeDirection( @NotNull final Point anyPathPoint ) throws IllegalArgumentException {
    for (Map.Entry<ImmutableSegment2D, PERPENDICULAR_DIRECTION> part : this.segmentsList.entrySet()) {
      final Segment actualSegment = part.getKey();
      final PERPENDICULAR_DIRECTION direction = part.getValue();
      if ( contains( actualSegment.getLine2D(), anyPathPoint ) ) {
        return direction;
      }
    }
    throw new IllegalArgumentException("Point not in the path (" + anyPathPoint + ")");
View Full Code Here

Examples of org.gbcpainter.geom.PERPENDICULAR_DIRECTION

       direction of the next segment or null if it is the end of path point.
     */
    while ( iterator.hasNext() ) {
      final Map.Entry<ImmutableSegment2D, PERPENDICULAR_DIRECTION> part = iterator.next();
      final Segment actualSegment = part.getKey();
      final PERPENDICULAR_DIRECTION direction = part.getValue();

      if ( contains( actualSegment.getLine2D(), anyPathPoint ) ) {
        if ( isVertex( actualSegment.getLine2D(), anyPathPoint ) ) {
          if ( iterator.hasNext() ) {
            //Not the end of the path
View Full Code Here

Examples of org.gbcpainter.geom.PERPENDICULAR_DIRECTION

        this.coloringAnimations.clear();
      } else if ( higherNonFullPercentage >= HALF_ANIMATION_THRESHOLD && previousColor != bestAnimation.isColoring() ) {
        @NotNull
        @NonNls
        final String suffixString;
        final PERPENDICULAR_DIRECTION animationDirection = bestAnimation.getDirection();
        Set<PERPENDICULAR_DIRECTION> directions = getAvailableDirections();


        if ( bestAnimation.isColoring() ) {
          suffixString = getHalfResourceNameByDirections( directions, animationDirection.getOpposite() );
        } else {
          Deque<PERPENDICULAR_DIRECTION> junctionDirections = new LinkedList<>( directions );

          if ( junctionDirections.size() == 2 ) {

            junctionDirections.remove( animationDirection.getOpposite() );
            final PERPENDICULAR_DIRECTION other = junctionDirections.getFirst();
            suffixString = getHalfResourceNameByDirections( directions, other );
          } else {
            suffixString = getHalfResourceNameByDirections( directions, animationDirection.getOpposite() );
          }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.