public abstract class AbstractRenderer3D extends java.lang.Object implements Renderer3D, java.io.Serializable
TRANSPARENT_COLOR| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRenderer3D()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(Renderer3DChangeListener listener)
Registers an object for notification of changes to the renderer.
|
boolean |
equals(java.lang.Object obj)
Tests this renderer for equality with an arbitrary object.
|
protected void |
fireChangeEvent(boolean requiresWorldUpdate)
Sends a
Renderer3DChangeEvent to all registered listeners. |
java.awt.Color |
getItemLabelBackgroundColor()
Returns the background color for item labels.
|
java.awt.Color |
getItemLabelColor()
Returns the foreground color used to display item labels.
|
java.awt.Font |
getItemLabelFont()
Returns the font used to display item labels, if there are any.
|
ItemLabelPositioning |
getItemLabelPositioning()
Returns the item label positioning.
|
boolean |
isNotify()
Returns a flag that controls whether or not change events are sent to
registered listeners.
|
void |
notifyListeners(Renderer3DChangeEvent event)
Notifies all registered listeners that the plot has been modified.
|
void |
receive(ChartElementVisitor visitor)
Receives a
ChartElementVisitor. |
void |
removeChangeListener(Renderer3DChangeListener listener)
Unregisters an object for notification of changes to the renderer.
|
void |
setItemLabelBackgroundColor(java.awt.Color color)
Sets the background color and sends a change event to all registered
listeners.
|
void |
setItemLabelColor(java.awt.Color itemLabelColor)
Sets the foreground color used to display item labels and sends a
change event to all registered listeners.
|
void |
setItemLabelFont(java.awt.Font itemLabelFont)
Sets the font used to display item labels and sends a change event
to all registered listeners.
|
void |
setItemLabelPositioning(ItemLabelPositioning positioning)
Sets the item label positioning and sends a change event to all
registered listeners.
|
void |
setNotify(boolean notify)
Sets a flag that controls whether or not listeners receive
Renderer3DChangeEvent notifications. |
protected AbstractRenderer3D()
public java.awt.Font getItemLabelFont()
Font(Font.SERIF, Font.PLAIN, 8).null).public void setItemLabelFont(java.awt.Font itemLabelFont)
itemLabelFont - the font (null not permitted).public java.awt.Color getItemLabelColor()
Color.BLACK.null).public void setItemLabelColor(java.awt.Color itemLabelColor)
itemLabelColor - the new color (null not permitted).public java.awt.Color getItemLabelBackgroundColor()
null).public void setItemLabelBackgroundColor(java.awt.Color color)
color - the new color (null not permitted).public ItemLabelPositioning getItemLabelPositioning()
ItemLabelPositioning.CENTRAL.null).public void setItemLabelPositioning(ItemLabelPositioning positioning)
positioning - the new positioning (null not
permitted).public boolean isNotify()
setNotify(boolean)public void setNotify(boolean notify)
Renderer3DChangeEvent notifications.notify - a boolean.isNotify()public void receive(ChartElementVisitor visitor)
ChartElementVisitor. This is part of a general
purpose mechanism for traversing the chart structure and performing
operations on the elements in the structure. You won't normally call
this method directly.receive in interface ChartElementvisitor - the visitor (null not permitted).public void addChangeListener(Renderer3DChangeListener listener)
addChangeListener in interface Renderer3Dlistener - the object to be registered.removeChangeListener(Renderer3DChangeListener)public void removeChangeListener(Renderer3DChangeListener listener)
removeChangeListener in interface Renderer3Dlistener - the object to be unregistered.addChangeListener(Renderer3DChangeListener)public void notifyListeners(Renderer3DChangeEvent event)
event - information about the change event.protected void fireChangeEvent(boolean requiresWorldUpdate)
Renderer3DChangeEvent to all registered listeners.requiresWorldUpdate - a flag indicating whether or not the change
requires the 3D world to be updated.public boolean equals(java.lang.Object obj)
notify flag is taken into account.equals in class java.lang.Objectobj - the object (null permitted).