Package org.tinyuml.draw

Examples of org.tinyuml.draw.Compartment


  /**
   * Constructor.
   * @param aClass the UmlClass object
   */
  public ClassElement(UmlClass aClass) {
    this(aClass, new Compartment(), new Compartment(), new Compartment());
  }
View Full Code Here


  /**
   * Resizes the last visible compartment to fit within the total height.
   */
  private void resizeLastCompartmentToFit() {
    Compartment lastCompartment = getLastVisibleCompartment();
    double diffHeight = getSize().getHeight() - getCompartmentHeightSum();
    lastCompartment.setHeight(lastCompartment.getSize().getHeight() +
                              diffHeight);
  }
View Full Code Here

  /**
   * Returns the last visible compartment.
   * @return the last visible compartment
   */
  private Compartment getLastVisibleCompartment() {
    Compartment lastCompartment = mainCompartment;
    if (showAttributes) lastCompartment = attributesCompartment;
    if (showOperations) lastCompartment = operationsCompartment;
    return lastCompartment;
  }
View Full Code Here

  /**
   * Constructor.
   * @param aClass the UmlClass object
   */
  public ClassElement(UmlClass aClass) {
    this(aClass, new Compartment(), new Compartment(), new Compartment());
  }
View Full Code Here

  /**
   * Resizes the last visible compartment to fit within the total height.
   */
  private void resizeLastCompartmentToFit() {
    Compartment lastCompartment = getLastVisibleCompartment();
    double diffHeight = getSize().getHeight() - getCompartmentHeightSum();
    lastCompartment.setHeight(lastCompartment.getSize().getHeight() +
                              diffHeight);
  }
View Full Code Here

  /**
   * Returns the last visible compartment.
   * @return the last visible compartment
   */
  private Compartment getLastVisibleCompartment() {
    Compartment lastCompartment = mainCompartment;
    if (showAttributes) lastCompartment = attributesCompartment;
    if (showOperations) lastCompartment = operationsCompartment;
    return lastCompartment;
  }
View Full Code Here

   * Constructor.
   * @param aPackage an UmlPackage
   */
  public PackageElement(UmlPackage aPackage) {
    pkg = aPackage;
    tabCompartment = new Compartment();
    tabCompartment.setParent(this);
    tabCompartment.setBackground(BACKGROUND);
    tabCompartment.setAspectToParentWidth(0.33);
    mainCompartment = new Compartment();
    mainCompartment.setParent(this);
    mainCompartment.setBackground(BACKGROUND);
    mainLabel.setParent(this);
    mainLabel.setFontType(FontType.ELEMENT_NAME);
    mainLabel.setSource(this);
View Full Code Here

   * Constructor.
   * @param aPackage an UmlPackage
   */
  public PackageElement(UmlPackage aPackage) {
    pkg = aPackage;
    tabCompartment = new Compartment();
    tabCompartment.setParent(this);
    tabCompartment.setBackground(BACKGROUND);
    tabCompartment.setAspectToParentWidth(0.33);
    mainCompartment = new Compartment();
    mainCompartment.setParent(this);
    mainCompartment.setBackground(BACKGROUND);
    mainLabel.setParent(this);
    mainLabel.setFontType(FontType.ELEMENT_NAME);
    mainLabel.setSource(this);
View Full Code Here

  /**
   * Constructor.
   * @param aComponent the UmlComponent this element represents
   */
  public ComponentElement(UmlComponent aComponent) {
    this(aComponent, new Compartment());
  }
View Full Code Here

  /**
   * Constructor.
   * @param aComponent the UmlComponent this element represents
   */
  public ComponentElement(UmlComponent aComponent) {
    this(aComponent, new Compartment());
  }
View Full Code Here

TOP

Related Classes of org.tinyuml.draw.Compartment

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.