下面列出了java.awt.font.TextLayout#getCaretShape ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}
public void runTest(Object ctx, int numReps) {
TLExContext tlctx = (TLExContext)ctx;
TextLayout tl = tlctx.tl;
TextHitInfo[] hits = tlctx.hits;
Shape s;
do {
for (int i = 0; i < hits.length; ++i) {
s = tl.getCaretShape(hits[i]);
}
} while (--numReps >= 0);
}