|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.xml.AbstractObjectHandler
org.progeeks.util.xml.BeanObjectHandler
org.progeeks.util.xml.DefaultObjectHandler
org.progeeks.jfreechart.xml.ChartObjectHandler
public class ChartObjectHandler
An XML object handler that can create JFreeChart related objects that that don't fully correspond to the standard Bean get/set pattern.
Nested Class Summary | |
---|---|
protected static class |
ChartObjectHandler.DateTickUnitBean
Utility class to build up the parameters for a DateTickUnit . |
protected static class |
ChartObjectHandler.InsetBean
Utility class to build up the parameters for a RectangleInset . |
protected static class |
ChartObjectHandler.ItemLabelPositionBean
Utility class to build up the parameters for a ItemLabelPosition . |
protected static class |
ChartObjectHandler.NumberTickUnitBean
Utility class to build up the parameters for a NumberTickUnit . |
protected static class |
ChartObjectHandler.PeriodAxisLabelInfoBean
Utility class to build up the parameters for a PeriodAxisLabelInfo . |
Field Summary | |
---|---|
static java.lang.String |
DATE_TICK_UNIT
Creates a custom configuration for DateTickUnit since that class does not have
a default constructor. |
static java.lang.String |
INSET
Creates a RectangleInset object. |
static java.lang.String |
ITEM_LABEL_POSITION
Creates a custom configuration for ItemLabelPosition . |
protected static Log |
log
|
static java.lang.String |
NUMBER_TICK_UNIT
Creates a custom configuration for NumberTickUnit since that class does not have
a default constructor. |
static java.lang.String |
PERIOD_AXIS_LABEL_INFO
Creates a PeriodAxisLabelInfo . |
static java.lang.String |
TIME_TOOL_TIP
Creates a StandardXYToolTipGenerator that properly formats time values for the
X coordinate. |
Fields inherited from class org.progeeks.util.xml.BeanObjectHandler |
---|
CONFIG_IMPORT_PACKAGE |
Constructor Summary | |
---|---|
ChartObjectHandler()
|
Method Summary | |
---|---|
boolean |
canHandle(java.lang.String tag)
We only handle a few specific tags. |
java.lang.Object |
createObject(java.lang.String tag,
org.xml.sax.Attributes atts,
ObjectXmlReader reader)
Creates and returns an object based on the specified parameters. |
java.lang.Object |
resolveObject(java.lang.String tag,
java.lang.Object obj,
ObjectXmlReader reader)
Converts a handler-specific internal representation of an object to a standard representation. |
Methods inherited from class org.progeeks.util.xml.DefaultObjectHandler |
---|
addHandledClass, getHandledClasses |
Methods inherited from class org.progeeks.util.xml.BeanObjectHandler |
---|
getClass, getClass, getConstant, getInnerClass, getPackages, getProperty, getPropertyClass, getPropertyCollection, getTagClass, ignoreAttribute, importPackage, setConfigurationProperty, setObjectProperties, setPackages, setProperty, setTextProperty |
Methods inherited from class org.progeeks.util.xml.AbstractObjectHandler |
---|
setContainedText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Log log
public static final java.lang.String TIME_TOOL_TIP
StandardXYToolTipGenerator
that properly formats time values for the
X coordinate.
public static final java.lang.String DATE_TICK_UNIT
DateTickUnit
since that class does not have
a default constructor.
public static final java.lang.String NUMBER_TICK_UNIT
NumberTickUnit
since that class does not have
a default constructor.
public static final java.lang.String ITEM_LABEL_POSITION
ItemLabelPosition
. You can do much of what
this does with several individual renderer properties (like
setItemLabelRotationAnchor
or setItemLabelAngle
). This custom
tag just nicely groups things together.
public static final java.lang.String PERIOD_AXIS_LABEL_INFO
PeriodAxisLabelInfo
. You will most likely need the
INSET
and ARRAY_PROPERTY
tags as well.
PeriodAxisLabelInfo
,
Constant Field Valuespublic static final java.lang.String INSET
RectangleInset
object.
org.jfree.ui.RectangleInset
,
Constant Field ValuesConstructor Detail |
---|
public ChartObjectHandler()
Method Detail |
---|
public boolean canHandle(java.lang.String tag)
canHandle
in interface ObjectHandler
canHandle
in class DefaultObjectHandler
public java.lang.Object createObject(java.lang.String tag, org.xml.sax.Attributes atts, ObjectXmlReader reader)
createObject
in interface ObjectHandler
createObject
in class BeanObjectHandler
public java.lang.Object resolveObject(java.lang.String tag, java.lang.Object obj, ObjectXmlReader reader)
AbstractObjectHandler
resolveObject
in interface ObjectHandler
resolveObject
in class AbstractObjectHandler
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |