Skip to content

Commit

Permalink
Cleaned Zest Algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
azoitl committed Oct 26, 2023
1 parent acf2f9e commit 51d3d60
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 606 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* Copyright 2005 CHISEL Group, University of Victoria, Victoria, BC,
* Canada.
*
* This program and the accompanying materials are made available under the
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
*
* Contributors: The Chisel Group, University of Victoria
*******************************************************************************/
package org.eclipse.zest.layouts;
Expand All @@ -19,10 +19,10 @@

/**
* A simple interface used by all layouts.
*
*
* Each layout Algorithm must implement the applyLayoutInternal method which
* actually compute the layout
*
*
* @author Casey Best
* @author Ian Bull
*/
Expand All @@ -31,7 +31,7 @@ public interface LayoutAlgorithm {
/**
* Apply the layout to the given entities. The entities will be moved and
* resized based on the algorithm.
*
*
* @param entitiesToLayout Apply the algorithm to these entities
* @param relationshipsToConsider Only consider these relationships when
* applying the algorithm.
Expand All @@ -51,7 +51,7 @@ public void applyLayout(LayoutEntity[] entitiesToLayout, LayoutRelationship[] re

/**
* Returns whether or not the algorithm is currenly running
*
*
* @return True if a layout algorithm is currenly running, false otherwise
*/
public boolean isRunning();
Expand Down Expand Up @@ -103,13 +103,13 @@ public void applyLayout(LayoutEntity[] entitiesToLayout, LayoutRelationship[] re
/**
* Sets the style for this layout algorithm. This will overwrite any other style
* set.
*
*
* @param style
*/
public void setStyle(int style);

/**
*
*
* @return
*/
public int getStyle();
Expand All @@ -122,6 +122,6 @@ public void applyLayout(LayoutEntity[] entitiesToLayout, LayoutRelationship[] re

public void removeRelationship(LayoutRelationship relationship);

public void removeRelationships(List relationships);
public void removeRelationships(List<? extends LayoutRelationship> relationships);

}
Loading

0 comments on commit 51d3d60

Please sign in to comment.