Package org.eclipse.draw2d.geometry

Examples of org.eclipse.draw2d.geometry.Dimension.scale()


    textLocation = new org.eclipse.draw2d.geometry.Point();
    Dimension offset = getSize().getDifference(getTextSize());
    offset.width += getTextSize().width - getSubStringTextSize().width;
    switch (getLabelAlignment()) {
    case CENTER:
      offset.scale(0.5f);
      break;
    case LEFT:
      offset.scale(0.0f);
      break;
    case RIGHT:
View Full Code Here


    switch (getLabelAlignment()) {
    case CENTER:
      offset.scale(0.5f);
      break;
    case LEFT:
      offset.scale(0.0f);
      break;
    case RIGHT:
      offset.scale(1.0f);
      break;
    case TOP:
View Full Code Here

      break;
    case LEFT:
      offset.scale(0.0f);
      break;
    case RIGHT:
      offset.scale(1.0f);
      break;
    case TOP:
      offset.height = 0;
      offset.scale(0.5f);
      break;
View Full Code Here

    case RIGHT:
      offset.scale(1.0f);
      break;
    case TOP:
      offset.height = 0;
      offset.scale(0.5f);
      break;
    case BOTTOM:
      offset.height = offset.height * 2;
      offset.scale(0.5f);
      break;
 
View Full Code Here

      offset.height = 0;
      offset.scale(0.5f);
      break;
    case BOTTOM:
      offset.height = offset.height * 2;
      offset.scale(0.5f);
      break;
    default:
      offset.scale(0.5f);
      break;
    }
 
View Full Code Here

    case BOTTOM:
      offset.height = offset.height * 2;
      offset.scale(0.5f);
      break;
    default:
      offset.scale(0.5f);
      break;
    }

    textLocation.translate(offset);
    return textLocation;
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.