Tabnine Logo
DefaultGraphArcStyle.getNextDefaultColor
Code IndexAdd Tabnine to your IDE (free)

How to use
getNextDefaultColor
method
in
ca.uvic.cs.chisel.cajun.graph.arc.DefaultGraphArcStyle

Best Java code snippets using ca.uvic.cs.chisel.cajun.graph.arc.DefaultGraphArcStyle.getNextDefaultColor (Showing top 2 results out of 315)

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

/**
 * Adds the arc type and maps a color/gradient to it which is used as the line color for the
 * arc. If the arc type already exists then nothing is done.
 * 
 * @param type the node type to add
 */
public void addArcType(Object type) {
  if (!arcTypeToColor.containsKey(type)) {
    Color color = getNextDefaultColor();
    arcTypeToColor.put(type, color);
  }
}
origin: edu.stanford.protege/ca.uvic.cs.chisel.cajun

public DefaultGraphArcStyle() {
  loadDefaultColors();
  this.nextColorIndex = 0;
  this.arcTypeToColor = new HashMap<Object, Paint>();
  this.defaultArcColor = getNextDefaultColor(); // new Color(64, 64, 128)
  
  this.dashWidth = 10f;
  this.capSquare = BasicStroke.CAP_SQUARE;
  tooltipBackground = defaultArcColor;
  tooltipTextColor = GraphicsUtils.getTextColor(tooltipBackground);
  tooltipFont = PText.DEFAULT_FONT;
}
ca.uvic.cs.chisel.cajun.graph.arcDefaultGraphArcStylegetNextDefaultColor

Popular methods of DefaultGraphArcStyle

  • setArcTypes
    Sets the arc types - this is done to map a background color/gradient to each arc type.
  • <init>
  • 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
  • getStroke
  • getTypePaint
    Returns the color for the given type, or the default arc color.
  • loadDefaultColors

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • BoxLayout (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