com.levigo.jadice.document.render
Class TextRenderSettings

java.lang.Object
  extended by com.levigo.jadice.document.render.AbstractListenableRenderSettings
      extended by com.levigo.jadice.document.render.TextRenderSettings
All Implemented Interfaces:
ProcessingSettings, RenderSettings, Serializable

public class TextRenderSettings
extends AbstractListenableRenderSettings

A ProcessingSettings type which controls various aspects of the text rendering process like anti-aliasing or font render mode.

See Also:
Serialized Form

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

FONT_RENDER_MODE

public static final String FONT_RENDER_MODE
Identifier key for a font render mode change, used within a RenderSettingsEvent to recognize the kind of change which happen.

See Also:
Constant Field Values

ANTI_ALIASING_MODE

public static final String ANTI_ALIASING_MODE
Identifier key for an anti-aliasing mode change, used within a RenderSettingsEvent to recognize the kind of change which happen.

See Also:
Constant Field Values
Constructor Detail

TextRenderSettings

public TextRenderSettings()
Constructor

Method Detail

createSnapshot

public TextRenderSettings createSnapshot()
Creates and returns a snapshot copy of this settings instance.

Returns:
snapshot copy

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getRenderMode

public TextRenderSettings.FontRenderMode getRenderMode()
Returns the font render mode to be applied

Returns:
TextRenderSettings.FontRenderMode

setRenderMode

public void setRenderMode(TextRenderSettings.FontRenderMode renderMode)
Sets the font render mode to be applied.

Parameters:
renderMode - TextRenderSettings.FontRenderMode

getAntiAliasingMode

public TextRenderSettings.AntiAliasingMode getAntiAliasingMode()
Returns the anti-alaising mode

Returns:
TextRenderSettings.AntiAliasingMode

setAntiAliasingMode

public void setAntiAliasingMode(TextRenderSettings.AntiAliasingMode antiAliasingMode)
Sets the anti-aliasing mode.

Parameters:
antiAliasingMode - TextRenderSettings.AntiAliasingMode

update

public void update(String propertyName,
                   RenderSettings other,
                   Object... details)
Description copied from interface: RenderSettings
Updates this instance property specified by given property name with the value provided by the other processing setting. For each update-supported property the render settings type have to provide a unique property name.

Parameters:
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


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.