Example usage for Java org.jfree.chart.title LegendTitle fields, constructors, methods, implement or subclass
The text is from its open source code.
Font | DEFAULT_ITEM_FONT The default item font. |
LegendTitle(LegendItemSource source) Constructs a new (empty) legend for the specified source. | |
LegendTitle(LegendItemSource source, Arrangement hLayout, Arrangement vLayout) Creates a new legend title with the specified arrangement. |
void | addChangeListener(TitleChangeListener listener) Registers an object for notification of changes to the title. |
Size2D | arrange(Graphics2D g2) Arranges the contents of the block, with no constraints, and returns the block size. |
Size2D | arrange(Graphics2D g2, RectangleConstraint constraint) Arranges the contents of the block, within the given constraints, and returns the block size. |
void | draw(Graphics2D g2, Rectangle2D area) Draws the title on a Java 2D graphics device (such as the screen or a printer). |
Object | draw(Graphics2D g2, Rectangle2D area, Object params) Draws the block within the specified area. |
Paint | getBackgroundPaint() Returns the background paint. |
BlockFrame | getFrame() Returns the current frame (border). |
double | getHeight() Returns the natural height of the block, if this is known in advance. |
HorizontalAlignment | getHorizontalAlignment() Returns the horizontal alignment of the title. |
BlockContainer | getItemContainer() Returns the container that holds the legend items. |
Font | getItemFont() Returns the item font. |
Paint | getItemPaint() Returns the item paint. |
RectangleInsets | getPadding() Returns the padding. |
RectangleEdge | getPosition() Returns the position of the title. |
LegendItemSource[] | getSources() Returns the legend item sources. |
double | getWidth() Returns the natural width of the block, if this is known in advance. |
boolean | isVisible() Returns a flag that controls whether or not the title should be drawn. |
void | setBackgroundPaint(Paint paint) Sets the background paint for the legend and sends a TitleChangeEvent to all registered listeners. |
void | setBorder(double top, double left, double bottom, double right) Sets a black border with the specified line widths. |
void | setBorder(BlockBorder border) Sets the border for the block (use BlockBorder#NONE for no border). |
void | setFrame(BlockFrame frame) Sets the frame (or border). |
void | setHorizontalAlignment(HorizontalAlignment alignment) Sets the horizontal alignment for the title and sends a TitleChangeEvent to all registered listeners. |
void | setItemFont(Font font) Sets the item font and sends a TitleChangeEvent to all registered listeners. |
void | setItemLabelPadding(RectangleInsets padding) Sets the padding used for the item labels in the legend. |
void | setItemPaint(Paint paint) Sets the item paint. |
void | setLegendItemGraphicAnchor(RectangleAnchor anchor) Sets the anchor point used for the graphic in each legend item. |
void | setLegendItemGraphicEdge(RectangleEdge edge) Sets the location of the shape within each legend item. |
void | setLegendItemGraphicLocation(RectangleAnchor anchor) Sets the legend item graphic location. |
void | setLegendItemGraphicPadding(RectangleInsets padding) Sets the padding that will be applied to each item graphic in the legend and sends a TitleChangeEvent to all registered listeners. |
void | setMargin(double top, double left, double bottom, double right) Sets the margin. |
void | setMargin(RectangleInsets margin) Sets the margin (use RectangleInsets#ZERO_INSETS for no padding). |
void | setNotify(boolean flag) Sets the flag that indicates whether or not the notification mechanism is enabled. |
void | setPadding(double top, double left, double bottom, double right) Sets the padding. |
void | setPadding(RectangleInsets padding) Sets the padding (use RectangleInsets#ZERO_INSETS for no padding). |
void | setPosition(RectangleEdge position) Sets the position for the title and sends a TitleChangeEvent to all registered listeners. |
void | setSortOrder(SortOrder order) Sets the order used to display legend items. |
void | setSources(LegendItemSource[] sources) Sets the legend item sources and sends a TitleChangeEvent to all registered listeners. |
void | setVerticalAlignment(VerticalAlignment alignment) Sets the vertical alignment for the title, and notifies any registered listeners of the change. |
void | setVisible(boolean visible) Sets a flag that controls whether or not the title should be drawn, and sends a TitleChangeEvent to all registered listeners. |
void | setWidth(double width) Sets the natural width of the block, if this is known in advance. |
void | setWrapper(BlockContainer wrapper) Sets the wrapper container for the legend. |