Tabnine Logo
LayoutAction.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
ca.uvic.cs.chisel.cajun.actions.LayoutAction

Best Java code snippets using ca.uvic.cs.chisel.cajun.actions.LayoutAction.getName (Showing top 3 results out of 315)

origin: edu.stanford.protege/ca.uvic.cs.chisel.cajun

public LayoutAction getLayout(String name) {
  for (LayoutAction layout : layouts) {
    if (layout.getName().equals(name)) {
      return layout;
    }
  }
  return null;
}
origin: edu.stanford.protege/org.protege.ontograf

private void initialize(Container parentContainer) {
  // setup the layouts
  List<Object> layoutRelTypes = new ArrayList<Object>();
  layoutRelTypes.add(ProtegeGraphModel.DIRECT_SUBCLASS_SLOT_TYPE);
  layoutRelTypes.add(ProtegeGraphModel.DIRECT_INDIVIDUAL_SLOT_TYPE);
  for (LayoutAction layoutAction : graph.getLayouts()) {
    if (layoutAction.getName().equals(LayoutConstants.LAYOUT_TREE_HORIZONTAL)) {
      layoutAction.setLayout(new HorizontalDirectedGraphLayoutAlgorithm());
      this.graph.setLastLayout(layoutAction);
      layoutAction.setLayoutRelTypes(layoutRelTypes);
    } else if (layoutAction.getName().equals(LayoutConstants.LAYOUT_TREE_VERTICAL)) {
      layoutAction.setLayout(new DirectedGraphLayoutAlgorithm());
      layoutAction.setLayoutRelTypes(layoutRelTypes);
    }
  }
  view = new DefaultFlatGraphView(graph);
  parentContainer.add(view, BorderLayout.CENTER);
  initNodeMenu(graph.getNodeContextMenu());
  graph.addInputEventListener(new ProtegeInputEventHandler(model, graph));
}

origin: edu.stanford.protege/org.protege.ontograf

if (layoutAction.getName().equals(LayoutConstants.LAYOUT_SPRING)) {
  layoutAction.setLayout(new HorizontalDirectedGraphLayoutAlgorithm());
  this.graph.setLastLayout(layoutAction);
ca.uvic.cs.chisel.cajun.actionsLayoutActiongetName

Popular methods of LayoutAction

  • <init>
  • addProgressListener
  • createActivity
    See ca.uvic.csr.shrimp.DisplayBean.AbstractDisplayBean# setTransformsOfNodesWithAnimation(java.util.
  • createTransform
  • getLayoutAlgorithm
    Creates a new instance of the LayoutAlgorithm using reflection.
  • runLayout
  • setLayout
  • setLayoutRelTypes

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JList (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Best plugins for Eclipse
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