Tabnine Logo
DefaultGraphArcStyle.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
ca.uvic.cs.chisel.cajun.graph.arc.DefaultGraphArcStyle
constructor

Best Java code snippets using ca.uvic.cs.chisel.cajun.graph.arc.DefaultGraphArcStyle.<init> (Showing top 3 results out of 315)

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

public DefaultGraphArc(Object userObject, GraphNode src, GraphNode dest, Icon icon, Object type) {
  super();
  this.userObject = userObject;
  this.src = src;
  this.dest = dest;
  setType(type);
  //this.path = new GeneralPath();
  this.curveFactor = 0;
  this.selected = false;
  this.highlighted = false;
  this.showArrowHead = true;
  this.arrowHead = new ArrowHead();
  this.inverted = false;
  if(icon != null) {
    this.icon = icon;
    image = new PImage(((ImageIcon) icon).getImage());
    addChild(image);
  }
  
  this.style = new DefaultGraphArcStyle();
}

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

public MainFrame() {
  super("Baby Shrimp Test");
  SampleGraphModel model = new SampleGraphModel();
  this.graph = new FlatGraph(model);
  // color the nodes based on node type
  DefaultGraphNodeStyle nodeStyle = new DefaultGraphNodeStyle();
  nodeStyle.setNodeTypes(model.getNodeTypes());
  this.graph.setGraphNodeStyle(nodeStyle);
  // color the arcs based on arc type
  DefaultGraphArcStyle arcStyle = new DefaultGraphArcStyle();
  arcStyle.setArcTypes(model.getArcTypes());
  this.graph.setGraphArcStyle(arcStyle);
  initialize();
  // run the initial layout on the nodes
  //SwingUtilities.invokeLater(new Runnable() {
  //	public void run() {
  //		try {
  //			Thread.sleep(100);
  //		} catch (InterruptedException e) {
  //		}
  //		graph.performLayout();
  //}
  //});
}
origin: edu.stanford.protege/ca.uvic.cs.chisel.cajun

public AbstractGraph() {
  super();
  this.model = new DefaultGraphModel();
  this.graphModelListeners = new ArrayList<GraphModelListener>();
  this.layouts = new ArrayList<LayoutAction>();
  addDefaultLayouts();
  this.graphPopupListener = new GraphPopupListener();
  getCamera().addInputEventListener(graphPopupListener);
  this.filterManager = new FilterManager(this);
  this.filterManager.addFilterChangedListener(filterListener);
  this.selectedNodes = new NodeCollection();
  selectedNodes.addCollectionListener(selectionListener);
  this.matchingNodes = new NodeCollection();
  matchingNodes.addCollectionListener(matchingListener);
  this.nodeStyle = new DefaultGraphNodeStyle();
  this.arcStyle = new DefaultGraphArcStyle();
  addFocusListener(focusListener);
  // register to use our custom tooltips
  CustomToolTipManager.sharedInstance().registerComponent(this);
  initializeLayers();
  // this is needed to handle keyboard events
  getRoot().getDefaultInputManager().setKeyboardFocus(new KeyHandlerDelegate(getCamera()));
}
ca.uvic.cs.chisel.cajun.graph.arcDefaultGraphArcStyle<init>

Popular methods of DefaultGraphArcStyle

  • setArcTypes
    Sets the arc types - this is done to map a background color/gradient to each arc type.
  • addArcType
    Adds the arc type and maps a color/gradient to it which is used as the line color for the arc. If th
  • createStroke
  • getNextDefaultColor
  • getStroke
  • getTypePaint
    Returns the color for the given type, or the default arc color.
  • loadDefaultColors

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Permission (java.security)
    Legacy security code; do not use.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JLabel (javax.swing)
  • Top Vim plugins
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