congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
com.structurizr.view
Code IndexAdd Tabnine to your IDE (free)

How to use com.structurizr.view

Best Java code snippets using com.structurizr.view (Showing top 20 results out of 315)

origin: structurizr/java

public ElementStyle addElementStyle(String tag) {
  ElementStyle elementStyle = null;
  if (tag != null) {
    elementStyle = new ElementStyle();
    elementStyle.setTag(tag);
    add(elementStyle);
  }
  return elementStyle;
}
origin: structurizr/java

public RelationshipStyle addRelationshipStyle(String tag) {
  RelationshipStyle relationshipStyle = null;
  if (tag != null) {
    relationshipStyle = new RelationshipStyle();
    relationshipStyle.setTag(tag);
     add(relationshipStyle);
  }
  return relationshipStyle;
}
origin: structurizr/java

protected RelationshipView addRelationship(Relationship relationship, String description, String order) {
  RelationshipView relationshipView = addRelationship(relationship);
  if (relationshipView != null) {
    relationshipView.setDescription(description);
    relationshipView.setOrder(order);
  }
  return relationshipView;
}
origin: structurizr/java

protected String backgroundOf(View view, Element element) {
  return view.getViewSet().getConfiguration().getStyles().findElementStyle(element).getBackground();
}
origin: structurizr/java

void copyLayoutInformationFrom(RelationshipView source) {
  if (source != null) {
    setVertices(source.getVertices());
    setPosition(source.getPosition());
    setRouting(source.getRouting());
  }
}
origin: structurizr/java

private void hydrateView(View view) {
  view.setViewSet(this);
  for (ElementView elementView : view.getElements()) {
    elementView.setElement(model.getElement(elementView.getId()));
  }
  for (RelationshipView relationshipView : view.getRelationships()) {
    relationshipView.setRelationship(model.getRelationship(relationshipView.getId()));
  }
}
origin: structurizr/java

/**
 * Adds all people, software systems and containers that belong to the software system in scope.
 */
@Override
public void addAllElements() {
  addAllSoftwareSystems();
  addAllPeople();
  addAllContainers();
}
origin: structurizr/java

void copyLayoutInformationFrom(ElementView source) {
  if (source != null) {
    setX(source.getX());
    setY(source.getY());
  }
}
origin: structurizr/java

private ElementView findElementView(ElementView sourceElementView) {
  for (ElementView elementView : getElements()) {
    if (elementView.getElement().equals(sourceElementView.getElement())) {
      return elementView;
    }
  }
  return null;
}
origin: structurizr/java

/**
 * <p>Adds all {@link com.structurizr.model.Container}s of the given {@link ContainerView} as well as all external influencers, that is all
 * persons and all other software systems with incoming or outgoing dependencies.</p>
 * <p>Additionally, all relationships of external dependencies are omitted to keep the diagram clean</p>
 */
public final void addAllContainersAndInfluencers() {
  // first add all containers of the underlying software system
  this.addAllContainers();
  addAllInfluencers();
}
origin: structurizr/java

public ElementStyle(String tag, Integer width, Integer height, String background, String color, Integer fontSize, Shape shape) {
  this.tag = tag;
  this.width = width;
  this.height = height;
  setBackground(background);
  setColor(color);
  this.fontSize = fontSize;
  this.shape = shape;
}
origin: structurizr/java

/**
 * Adds all software systems and all people to this view.
 */
@Override
public void addAllElements() {
  addAllSoftwareSystems();
  addAllPeople();
}
origin: structurizr/java

void endParallelSequence(boolean endAllParallelSequencesAndContinueNumbering) {
  if (endAllParallelSequencesAndContinueNumbering) {
    int sequence = this.counter.getSequence();
    this.counter = this.counter.getParent();
    this.counter.setSequence(sequence);
  } else {
    this.counter = this.counter.getParent();
  }
}
origin: structurizr/java

/**
 * Adds an individual container to this view, including relationships to/from that container.
 *
 * @param container the Container to add
 */
public void add(Container container) {
  add(container, true);
}
origin: structurizr/java

ParallelSequenceCounter(SequenceCounter parent) {
  super(parent);
  setSequence(parent.getSequence());
}
origin: structurizr/java

public String getBaseViewKey() {
  if (view != null) {
    return view.getKey();
  } else {
    return this.baseViewKey;
  }
}
origin: structurizr/java

/**
 * Adds an individual container (belonging to any software system) to this view, including relationships to/from that container.
 *
 * @param container the Container to add
 */
public void add(Container container) {
  add(container, true);
}
origin: structurizr/java

/**
 * Removes an individual component from this view.
 *
 * @param component the Component to remove
 */
public void remove(Component component) {
  removeElement(component);
}
origin: structurizr/java

/**
 * Adds an individual container (belonging to any software system) to this view.
 *
 * @param container         the Container to add
 * @param addRelationships  whether to add relationships to/from the container
 */
public void add(Container container, boolean addRelationships) {
  addElement(container, addRelationships);
}
origin: structurizr/java

/**
 * Removes an individual container from this view.
 *
 * @param container the Container to remove
 */
public void remove(Container container) {
  removeElement(container);
}
com.structurizr.view

Most used classes

  • ViewSet
    A set of views onto a software architecture model.
  • ComponentView
    Represents a Component view from the C4 model, showing the components within a given container.
  • DynamicView
    A dynamic view, used to describe behaviour between static elements at runtime.
  • Configuration
    Configuration associated with how information in the workspace is rendered.
  • ContainerView
    Represents a Container view from the C4 model, showing the containers within a given software system
  • DeploymentView,
  • ElementStyle,
  • RelationshipStyle,
  • RelationshipView,
  • Styles,
  • SystemLandscapeView,
  • ElementView,
  • View,
  • Animation,
  • Branding,
  • Color,
  • ColorPair,
  • FilteredView,
  • Font
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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