Package org.tinyuml.model.Relation

Examples of org.tinyuml.model.Relation.ReadingDirection


    getRootPane().setDefaultButton(okButton);
    assocNameTextField.setText(association.getModelElement().getName());
    showMultiplicitiesCb.setSelected(association.showMultiplicities());
    nameVisibilityCb.setSelected(association.showName());
    UmlRelation relation = (UmlRelation) association.getModelElement();
    ReadingDirection direction = relation.getNameReadingDirection();
    switch (direction) {
      case LEFT_RIGHT:
        l2rRadioButton.setSelected(true);
        break;
      case RIGHT_LEFT:
View Full Code Here


    getRootPane().setDefaultButton(okButton);
    assocNameTextField.setText(association.getModelElement().getName());
    showMultiplicitiesCb.setSelected(association.showMultiplicities());
    nameVisibilityCb.setSelected(association.showName());
    UmlRelation relation = (UmlRelation) association.getModelElement();
    ReadingDirection direction = relation.getNameReadingDirection();
    switch (direction) {
      case LEFT_RIGHT:
        l2rRadioButton.setSelected(true);
        break;
      case RIGHT_LEFT:
View Full Code Here

  /**
   * Draws the direction triangle.
   * @param drawingContext the drawing context
   */
  private void drawDirection(DrawingContext drawingContext) {
    ReadingDirection readingDirection =
      ((UmlRelation)association.getModelElement()).getNameReadingDirection();
    if (readingDirection == ReadingDirection.LEFT_RIGHT) {
      drawTriangleLeftRight(drawingContext);
    } else if (readingDirection == ReadingDirection.RIGHT_LEFT) {
      drawTriangleRightLeft(drawingContext);
View Full Code Here

TOP

Related Classes of org.tinyuml.model.Relation.ReadingDirection

Copyright © 2018 www.massapicom. 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.