Tabnine Logo
BezierFigure.set
Code IndexAdd Tabnine to your IDE (free)

How to use
set
method
in
org.jhotdraw.draw.BezierFigure

Best Java code snippets using org.jhotdraw.draw.BezierFigure.set (Showing top 6 results out of 315)

origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

public void setClosed(boolean newValue) {
  set(PATH_CLOSED, newValue);
  setConnectable(newValue);
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

/**
 * Creates an empty BezierFigure, for example without any
 * <code>BezierPath.Node</code>s.
 * The BezierFigure will not draw anything, unless at least two nodes
 * are added to it.
 *
 * @param isClosed Specifies whether the <code>BezierPath</code> shall
 * be closed.
 */
public BezierFigure(boolean isClosed) {
  path = new BezierPath();
  set(PATH_CLOSED, isClosed);
  //path.setClosed(isClosed);
}
origin: net.imagej/imagej-ui-swing

/**
 * Sets an attribute of the figure.
 * AttributeKey name and semantics are defined by the class implementing
 * the figure interface.
 */
@Override
public <T> void set(AttributeKey<T> key, T newValue) {
  super.set(key, newValue);
  for (final BezierFigure figure : figures) {
    figure.set(key, newValue);
  }
}
origin: net.imagej/ij-ui-swing

/**
 * Sets an attribute of the figure.
 * AttributeKey name and semantics are defined by the class implementing
 * the figure interface.
 */
@Override
public <T> void set(AttributeKey<T> key, T newValue) {
  super.set(key, newValue);
  for (final BezierFigure figure : figures) {
    figure.set(key, newValue);
  }
}
origin: org.opentcs.thirdparty.jhotdraw/jhotdraw

@SuppressWarnings("unchecked")
protected BezierFigure createFigure() {
  BezierFigure f = (BezierFigure) prototype.clone();
  getEditor().applyDefaultAttributesTo(f);
  if (attributes != null) {
    for (Map.Entry<AttributeKey, Object> entry : attributes.entrySet()) {
      f.set(entry.getKey(), entry.getValue());
    }
  }
  return f;
}
origin: net.imagej/imagej-ui-swing

@Override
public Figure createDefaultFigure() {
  final BezierFigure figure = new PolygonFigure();
  initDefaultSettings(figure);
  figure.set(AttributeKeys.WINDING_RULE, AttributeKeys.WindingRule.EVEN_ODD);
  return figure;
}
org.jhotdraw.drawBezierFigureset

Javadoc

Sets the location of the first and the last BezierPath.Node of the BezierFigure. If the BezierFigure has not at least two nodes, nodes are added to the figure until the BezierFigure has at least two nodes.

Popular methods of BezierFigure

  • <init>
    Creates an empty BezierFigure, for example without anyBezierPath.Nodes. The BezierFigure will not dr
  • clone
  • getBezierPath
    Returns a clone of the bezier path of this figure.
  • setBezierPath
  • addFigureListener
  • addNode
    Adds a control point.
  • createHandles
  • getBounds
  • getNode
    Gets a control point.
  • getNodeCount
    Gets the node count.
  • removeNode
    Removes the Node at the specified index.
  • restoreAttributesTo
  • removeNode,
  • restoreAttributesTo,
  • setAttributeEnabled,
  • setAttributes,
  • changed,
  • chop,
  • drawCaps,
  • findSegment,
  • fireUndoableEditHappened

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Github Copilot alternatives
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