CodetextRenderer
Contents
[
Hide
]
Inheritance: java.lang.Object
public class CodetextRenderer
Constructors
Constructor | Description |
---|---|
CodetextRenderer(ITextMeasurer textMeasurer, String codetext, CodetextParameters parameters, CodetextTypedParameters typedParameters) |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getClass() | |
getOneLineFontSize(int maxWidth, int desiredSize) | |
hashCode() | |
measure(int maxWidth, FontUnit font) | Calculates actual codetext size |
notify() | |
notifyAll() | |
render(ICanvas canvas, System.Drawing.Rectangle layout) | Renders codetext on canvas inside specified region |
render(ICanvas canvas, System.Drawing.Rectangle layout, GuardPosition[] guardPositions) | Renders codetext on canvas inside specified region |
setFont(FontUnit newFont) | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
CodetextRenderer(ITextMeasurer textMeasurer, String codetext, CodetextParameters parameters, CodetextTypedParameters typedParameters)
public CodetextRenderer(ITextMeasurer textMeasurer, String codetext, CodetextParameters parameters, CodetextTypedParameters typedParameters)
Parameters:
Parameter | Type | Description |
---|---|---|
textMeasurer | ITextMeasurer | |
codetext | java.lang.String | |
parameters | CodetextParameters | |
typedParameters | CodetextTypedParameters |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
getOneLineFontSize(int maxWidth, int desiredSize)
public int getOneLineFontSize(int maxWidth, int desiredSize)
Parameters:
Parameter | Type | Description |
---|---|---|
maxWidth | int | |
desiredSize | int |
Returns: int
hashCode()
public native int hashCode()
Returns: int
measure(int maxWidth, FontUnit font)
public CodeTextSize measure(int maxWidth, FontUnit font)
Calculates actual codetext size
Parameters:
Parameter | Type | Description |
---|---|---|
maxWidth | int | Max width |
font | FontUnit | Font |
Returns: CodeTextSize - Returns actual codetext size
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
render(ICanvas canvas, System.Drawing.Rectangle layout)
public void render(ICanvas canvas, System.Drawing.Rectangle layout)
Renders codetext on canvas inside specified region
Parameters:
Parameter | Type | Description |
---|---|---|
canvas | ICanvas | Canvas to render on |
layout | com.aspose.ms.System.Drawing.Rectangle | Region on canvas |
render(ICanvas canvas, System.Drawing.Rectangle layout, GuardPosition[] guardPositions)
public void render(ICanvas canvas, System.Drawing.Rectangle layout, GuardPosition[] guardPositions)
Renders codetext on canvas inside specified region
Parameters:
Parameter | Type | Description |
---|---|---|
canvas | ICanvas | Canvas to render on |
layout | com.aspose.ms.System.Drawing.Rectangle | Region on canvas for barcode and codetext including paddings |
guardPositions | GuardPosition[] |
setFont(FontUnit newFont)
public void setFont(FontUnit newFont)
Parameters:
Parameter | Type | Description |
---|---|---|
newFont | FontUnit |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |