Lines Matching refs:result

313     public int[] getGlyphCodes(int start, int count, int[] result) {
324 if (result == null) {
325 result = new int[count];
330 result[i] = userGlyphs[i + start];
333 return result;
349 public int[] getGlyphCharIndices(int start, int count, int[] result) {
353 if (result == null) {
354 result = new int[count];
360 result[i] = n;
364 result[i] = n;
369 result[i] = charIndices[i + start];
372 return result;
399 Rectangle2D result = null;
403 if (result == null) {
404 result = glyphVB;
406 Rectangle2D.union(result, glyphVB, result);
410 if (result == null) {
411 result = new Rectangle2D.Float(0, 0, 0, 0);
413 return result;
509 public float[] getGlyphPositions(int start, int count, float[] result) {
520 return internalGetGlyphPositions(start, count, 0, result);
534 Shape result = lbcache[ix];
535 if (result == null) {
565 result = new DelegatingShape(gp);
566 lbcache[ix] = result;
569 return result;
584 Shape result = vbcache[ix];
585 if (result == null) {
586 result = new DelegatingShape(getGlyphOutlineBounds(ix));
587 vbcache[ix] = result;
590 return result;
725 StandardGlyphVector result = (StandardGlyphVector)super.clone();
727 result.clearCaches();
730 result.positions = (float[])positions.clone();
734 result.gti = new GlyphTransformInfo(result, gti);
737 return result;
787 * !!! should I bother taking result parameter?
789 public float[] getGlyphPositions(float[] result) {
790 return internalGetGlyphPositions(0, glyphs.length + 1, 0, result);
796 * If a glyph has no transform (or is the identity transform) its entry in the result array will be null.
797 * If the passed-in result is null an array will be allocated for the caller.
798 * Each transform instance in the result array will unique, and independent of the GlyphVector's transform.
800 public AffineTransform[] getGlyphTransforms(int start, int count, AffineTransform[] result) {
809 if (result == null) {
810 result = new AffineTransform[count];
814 result[i] = gti.getGlyphTransform(start);
817 return result;
851 float[] result = new float[glyphs.length * 8];
855 result[n] = x;
856 result[n+1] = y;
861 result[n+2] = adv.x;
862 result[n+3] = adv.y;
865 result[n+4] = (float)(vb.getMinX());
866 result[n+5] = (float)(vb.getMinY());
867 result[n+6] = (float)(vb.getWidth());
868 result[n+7] = (float)(vb.getHeight());
870 return result;
1048 * been either already validated or are the result of layout.
1144 * Copy glyph position data into a result array starting at the indicated
1145 * offset in the array. If the passed-in result array is null, a new
1152 * @param offset the offset into result at which to put the data
1153 * @param result an array to hold the x,y positions
1156 private float[] internalGetGlyphPositions(int start, int count, int offset, float[] result) {
1157 if (result == null) {
1158 result = new float[offset + count * 2];
1165 result[i] = positions[p];
1168 return result;
1184 GeneralPath result = new GeneralPath(GeneralPath.WIND_NON_ZERO);
1189 getGlyphStrike(i).appendGlyphOutline(glyphs[i], result, px, py);
1192 return result;
1211 Rectangle result = null;
1221 if (result == null) {
1222 result = new Rectangle(r);
1224 result.add(r);
1228 return result != null ? result : r;
1608 Rectangle result = null;
1619 if (result == null) {
1620 result = new Rectangle(r);
1622 result.add(r);
1626 return result != null ? result : r;
1756 void getADL(ADL result) {
1765 result.ascentX = -sm.ascentX;
1766 result.ascentY = -sm.ascentY;
1767 result.descentX = sm.descentX;
1768 result.descentY = sm.descentY;
1769 result.leadingX = sm.leadingX;
1770 result.leadingY = sm.leadingY;
1773 void getGlyphPosition(int glyphID, int ix, float[] positions, float[] result) {
1774 result[ix] = positions[ix] + dx;
1776 result[ix] = positions[ix] + dy;
1779 void addDefaultGlyphAdvance(int glyphID, Point2D.Float result) {
1783 result.x += adv.x + dx;
1784 result.y += adv.y + dy;
1788 Rectangle2D result = null;
1790 result = new Rectangle2D.Float();
1791 result.setRect(strike.getGlyphOutlineBounds(glyphID)); // don't mutate cached rect
1795 result = gp.getBounds2D();
1805 if (!result.isEmpty()) {
1806 result.setRect(result.getMinX() + x + dx,
1807 result.getMinY() + y + dy,
1808 result.getWidth(), result.getHeight());
1810 return result;
1813 void appendGlyphOutline(int glyphID, GeneralPath result, float x, float y) {
1824 result.append(iterator, false);
1915 protected StringBuffer toStringBuffer(StringBuffer result) {
1916 if (result == null) {
1917 result = new StringBuffer();
1919 result.append("ax: ");
1920 result.append(ascentX);
1921 result.append(" ay: ");
1922 result.append(ascentY);
1923 result.append(" dx: ");
1924 result.append(descentX);
1925 result.append(" dy: ");
1926 result.append(descentY);
1927 result.append(" lx: ");
1928 result.append(leadingX);
1929 result.append(" ly: ");
1930 result.append(leadingY);
1932 return result;