|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.jadice.document.render.AbstractListenableRenderSettings com.levigo.jadice.document.render.TextRenderSettings
public class TextRenderSettings
A ProcessingSettings
type which controls various aspects of the text rendering process
like anti-aliasing or font render mode.
Nested Class Summary | |
---|---|
static class |
TextRenderSettings.AntiAliasingMode
An enum for a type anti aliasing value type. |
static class |
TextRenderSettings.FontRenderMode
An enum for a type safe font render mode value type. |
Field Summary | |
---|---|
static String |
ANTI_ALIASING_MODE
Identifier key for an anti-aliasing mode change, used within a RenderSettingsEvent to recognize the kind of change which happen. |
static String |
FONT_RENDER_MODE
Identifier key for a font render mode change, used within a RenderSettingsEvent
to recognize the kind of change which happen. |
Constructor Summary | |
---|---|
TextRenderSettings()
Constructor |
Method Summary | |
---|---|
TextRenderSettings |
createSnapshot()
Creates and returns a snapshot copy of this settings instance. |
boolean |
equals(Object obj)
|
TextRenderSettings.AntiAliasingMode |
getAntiAliasingMode()
Returns the anti-alaising mode |
TextRenderSettings.FontRenderMode |
getRenderMode()
Returns the font render mode to be applied |
int |
hashCode()
|
void |
setAntiAliasingMode(TextRenderSettings.AntiAliasingMode antiAliasingMode)
Sets the anti-aliasing mode. |
void |
setRenderMode(TextRenderSettings.FontRenderMode renderMode)
Sets the font render mode to be applied. |
void |
update(String propertyName,
RenderSettings other,
Object... details)
Updates this instance property specified by given property name with the value provided by the other processing setting. |
Methods inherited from class com.levigo.jadice.document.render.AbstractListenableRenderSettings |
---|
fireChanged, getSettingsChangeHandler, setSettingsChangeHandler |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FONT_RENDER_MODE
RenderSettingsEvent
to recognize the kind of change which happen.
public static final String ANTI_ALIASING_MODE
RenderSettingsEvent
to recognize the kind of change which happen.
Constructor Detail |
---|
public TextRenderSettings()
Method Detail |
---|
public TextRenderSettings createSnapshot()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public TextRenderSettings.FontRenderMode getRenderMode()
TextRenderSettings.FontRenderMode
public void setRenderMode(TextRenderSettings.FontRenderMode renderMode)
renderMode
- TextRenderSettings.FontRenderMode
public TextRenderSettings.AntiAliasingMode getAntiAliasingMode()
TextRenderSettings.AntiAliasingMode
public void setAntiAliasingMode(TextRenderSettings.AntiAliasingMode antiAliasingMode)
antiAliasingMode
- TextRenderSettings.AntiAliasingMode
public void update(String propertyName, RenderSettings other, Object... details)
RenderSettings
propertyName
- the name of the property to update. Update supported properties have unique
property identifier provided by the specific render settings implementation.other
- the processing setting which provide the new property value. Therefore the other
processing setting have to be of the same type as this instance.details
- (optional) if some describing details are necessary to do a specific update, the
details parameter will transport this informations
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |