| | | | Browse by category |
Question
Why do my labels appear jagged or blurred?
Answer
JViews relies on low-level Java routines to draw the fundamental shapes that make up a given application.
In certain instances, such as with small fonts that are zoomed between 100% and 200%, the default low-level drawing routines may give results that are somewhat jagged or blurred.
If this is undesirable, consider turning on antialiasing. Antialiasing allows the low-level routines to use intermediate values to give a more "natural" appearance. While in rare situations this may slow down performance, it generally provides a smooth and more desirable visual output.
You can enable antialiasing by invoking the setAntialiasing
method on your label object. Antialiasing is available nearly for all of the label classes (including IlvLabel
, IlvZoomableLabel
, IlvText
, IlvShadowLabel
, and so on). You can also enable antialiasing for an entire view, via IlvManagerView.setAntialiasing
, or on servlet/thinclient images via IlvManagerServlet.setAntialiasing
.
For more details, please consult the appropriate API reference in the JViews documentation.