Sets the staff line this chord belongs to.
437356
public void setStaffLine(JStaffLine staffLine) {
		if (m_normalizedChords!=null) {
            for (JChord m_normalizedChord : m_normalizedChords) {
                m_normalizedChord.setStaffLine(staffLine);
            }
		} else {
            for (JNote m_sNoteInstance : m_sNoteInstances) {
                m_sNoteInstance.setStaffLine(staffLine);
            }
		}
		super.setStaffLine(staffLine);
	}
1343482
def set( string, target_level, indent_string="    ", indent_empty_lines=False ):
    

    lines = string.splitlines()
    set_lines( lines, target_level, indent_string=indent_string, indent_empty_lines=indent_empty_lines )
    result = "\n".join(lines)
    return result
1290103
public void setDMNDecisionServiceDividerLine(org.kie.dmn.model.api.dmndi.DMNDecisionServiceDividerLine value) {
        this.dmnDecisionServiceDividerLine = value;
    }
299197
public function setIsUnderlined ( $isUnderlined ) {
        if ( $isUnderlined === true ) {
            $this->_isUnderlined = true;
        } else {
            $this->_isUnderlined = false;
        }
    }
1105558
public void setBaselineBudgetCost(int baselineNumber, Number value)
   {
      set(selectField(AssignmentFieldLists.BASELINE_BUDGET_COSTS, baselineNumber), value);
   }
61880
def SetLines(self, lines):
    

    (self._cli_lines, self._cli_cols) = TerminalSize()

    if lines:
      self._cli_lines = int(lines)
323721
public final void setUtlInvLine(final UtlInvLine<RS, PurchaseInvoice,
    PurchaseInvoiceServiceLine, PurchaseInvoiceTaxLine,
      PurchaseInvoiceServiceTaxLine> pUtlInvLine) {
    this.utlInvLine = pUtlInvLine;
  }
888026
public void setLeft(AstNode left) {
        assertNotNull(left);
        this.left = left;
        // line number should agree with source position
        setLineno(left.getLineno());
        left.setParent(this);
    }
1370609
def update_line(self, t, x, y, panel='top', **kws):
        
        panel = self.get_panel(panel)
        panel.update_line(t, x, y, **kws)
594781
def update_line(self, resource_id, data):
        """"""
        return OrderLines(self.client).on(self).update(resource_id, data)
396739
def SetLineColor(self, color):
        
        self._linecolor = Color(color)
        if isinstance(self, ROOT.TAttLine):
            ROOT.TAttLine.SetLineColor(self, self._linecolor('root'))
567630
function(params) {
      This.lines[This.lineNum].staff[This.staffNum].voices[This.voiceNum] = [];
      if (This.isFirstLine(This.lineNum)) {
        if (params.name) {if (!This.lines[This.lineNum].staff[This.staffNum].title) This.lines[This.lineNum].staff[This.staffNum].title = [];This.lines[This.lineNum].staff[This.staffNum].title[This.voiceNum] = params.name;}
      } else {
        if (params.subname) {if (!This.lines[This.lineNum].staff[This.staffNum].title) This.lines[This.lineNum].staff[This.staffNum].title = [];This.lines[This.lineNum].staff[This.staffNum].title[This.voiceNum] = params.subname;}
      }
      if (params.style)
        This.appendElement('style', null, null, {head: params.style});
      if (params.stem)
        This.appendElement('stem', null, null, {direction: params.stem});
      else if (This.voiceNum > 0) {
        if (This.lines[This.lineNum].staff[This.staffNum].voices[0]!== undefined) {
          var found = false;
          for (var i = 0; i < This.lines[This.lineNum].staff[This.staffNum].voices[0].length; i++) {
            if (This.lines[This.lineNum].staff[This.staffNum].voices[0].el_type === 'stem')
              found = true;
          }
          if (!found) {
            var stem = { el_type: 'stem', direction: 'up' };
            This.lines[This.lineNum].staff[This.staffNum].voices[0].splice(0,0,stem);
          }
        }
        This.appendElement('stem', null, null, {direction: 'down'});
      }
      if (params.scale)
        This.appendElement('scale', null, null, { size: params.scale} );
    }
1361999
public void setLineColor(@ColorInt int color) {
    jsonObject.addProperty(LineOptions.PROPERTY_LINE_COLOR, ColorUtils.colorToRgbaString(color));
  }
435808
private void appendToScore(JScoreElementAbstract element) {
		if (!currentStaffLineInitialized) {
			currentStaffLine = initNewStaffLine();
			m_staffLines.addElement(currentStaffLine);
			currentStaffLineInitialized = true;
		}
		
		JScoreElement lastElement = currentStaffLine.getLastElement();
		if (lastElement != null) {
			if ((lastElement instanceof JPartLabel)
					&& !(element instanceof JBar)
					&& !(element instanceof JKeySignature)
					&& !(element instanceof JTempo)
					&& !(element instanceof JTimeSignature)) {
				cursor.setLocation(cursor.getX()+getMetrics().getNotesSpacing(), cursor.getY());
				//element.setBase(cursor);
			}
		}
		currentStaffLine.addElement(element);
		applyStemmingPolicy(element);
		element.setBase(cursor);
		double width = element.getWidth();
		int cursorNewLocationX = (int)(cursor.getX() + width);

		//a part label doesn't need space after it
		//if the next element is a bar line.
		if (!(element instanceof JPartLabel)
				&& !(element instanceof JTempo)) {
			//fixed space + variable space (engraver)
			if ((element instanceof JGraceNote)
					|| (element instanceof JGroupOfGraceNotes)
					|| (element instanceof JGraceNotePartOfGroup)) {
				cursorNewLocationX += getMetrics().getGraceNotesSpacing()
					+ getEngraver().getNoteSpacing(element);
			} else {
				cursorNewLocationX += getMetrics().getNotesSpacing()
					+ getEngraver().getNoteSpacing(element);
			}
		}
		//if a PartLabel is the first element on the line (no notes)
		//justify it to the right, not to override first note/chord
		if ((element instanceof JPartLabel)
				&& !currentStaffLine.hasNotes()) {
			if (((JPartLabel)element).getText().length() == 1)
				((JPartLabel)element).setTextJustification(TextJustification.RIGHT);
		}

		//Position the cursor for next element
		cursor.setLocation(cursorNewLocationX, cursor.getY());

		if (element instanceof JNote)
			m_scoreElements.put(element.getMusicElement().getReference(), element);
		else
		if (element instanceof JGroupOfNotes) {
			JGroupOfNotes g = (JGroupOfNotes)element;
			m_scoreNoteGroups.add(g);

			for (int j=0; j<g.getRenditionElements().length; j++) {
				if ((g.getRenditionElements()[j]) instanceof JNote)
					m_scoreElements.put(g.getMusicElements()[j].getReference(), g.getRenditionElements()[j]);
				else
				if (g.getRenditionElements()[j] instanceof JChord){
					JNote[] jnotes = ((JChord)g.getRenditionElements()[j]).getScoreElements();
					//Vector ...=... getNotesAsVector() <-- CLONES!!!
					//Note[] notes = ((MultiNote)((JChord)g.getRenditionElements()[j]).getMusicElement()).toArray();
					//adds all the notes of the chords into the hashtable
					//TODO the ordering of the get notes as vector and the jnotes should be the same...
					//System.out.println("Warning - abc4j - current limitation prevents you from using chords with different notes lengths.");
                    for (JNote jnote : jnotes) {
                        m_scoreElements.put(jnote.getMusicElement().getReference(), jnote);
                    }
					//adds also the chords itself
					m_scoreElements.put(g.getRenditionElements()[j].getMusicElement().getReference(), g.getRenditionElements()[j]);
				}
			}
		}
		else
		if (element instanceof JChord) {
			JNote[] jnotes = ((JChord)element).getScoreElements();
			//Vector notes = ((MultiNote)((JChord)element).getMusicElement()).getNotes();
			//adds all the notes of the chords into the hashtable
			//TODO the ordering of the get notes as vector and the jnotes should be the same...
			//System.out.println("Warning - abc4j - current limitation prevents you from using chords with different notes lengths.");
            for (JNote jnote : jnotes) {
                m_scoreElements.put(jnote.getMusicElement().getReference(), jnote);
            }
			//adds also the chords itself
			m_scoreElements.put(element.getMusicElement().getReference(), element);
		}
	}
346101
public void setLineColor(final Color LINE_COLOR) {
        this.lineColor = LINE_COLOR;
        init(INNER_BOUNDS.width, INNER_BOUNDS.height);
        repaint(INNER_BOUNDS);
    }
132790
public function setLine($number, $isOffset = false)
    {
        if ($isOffset) {
            $this->line += $number;
        } else {
            $this->line = $number;
        }
    }
75801
public void set(double x1, double y1, double x2, double y2) {
        this.MODE = LINES;
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;

        calcG();
        dx[0] = x1 - x;
        dx[1] = x2 - x;
        dy[0] = y1 - y;
        dy[1] = y2 - y;
        dz[0] = z1 - 0;
        dz[1] = z2 - 0;
        if (dashed) calcDashedLine();
    }