|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.metadata.propertyeditors.FontSmoothPropertyEditor
public class FontSmoothPropertyEditor
Todo: Document Me
Constructor Summary | |
---|---|
FontSmoothPropertyEditor()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a listener for the PropertyChange event. |
String |
getAsText()
Gets the property value as text. |
Component |
getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value. |
String |
getJavaInitializationString()
Returns a fragment of Java code that can be used to set a property to match the editors current state. |
String[] |
getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags. |
Object |
getValue()
Gets the property value. |
boolean |
isPaintable()
Determines whether this property editor is paintable. |
void |
paintValue(Graphics gfx,
Rectangle box)
Paint a representation of the value into a given area of screen real estate. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener for the PropertyChange event. |
void |
setAsText(String text)
Set the property value by parsing a given String. |
void |
setValue(Object value)
Set (or change) the object that is to be edited. |
boolean |
supportsCustomEditor()
Determines whether this property editor supports a custom editor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FontSmoothPropertyEditor()
Method Detail |
---|
public void setValue(Object value)
setValue
in interface PropertyEditor
value
- The new target object to be edited. Note that this object should not be modified by the
PropertyEditor, rather the PropertyEditor should create a new object to hold any modified value.public Object getValue()
getValue
in interface PropertyEditor
public boolean isPaintable()
isPaintable
in interface PropertyEditor
public void paintValue(Graphics gfx, Rectangle box)
paintValue
in interface PropertyEditor
gfx
- Graphics object to paint into.box
- Rectangle within graphics object into which we should paint.public String getJavaInitializationString()
2
new
java.awt.Color(127,127,34)
java.awt.Color.orange
javax.swing.Box.createRigidArea(new java.awt.Dimension(0, 5))
getJavaInitializationString
in interface PropertyEditor
;
') to end the expression.public String getAsText()
getAsText
in interface PropertyEditor
Returns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
text
- The string to be parsed.
IllegalArgumentException
public String[] getTags()
getTags
in interface PropertyEditor
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertyEditor
listener
- An object to be invoked when a PropertyChange event is fired.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyEditor
listener
- The PropertyChange listener to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |