public interface GJPlotInterface extends GJVisualsInterface<GJMarker,java.awt.Paint,java.awt.BasicStroke,java.awt.Dimension,java.awt.Shape>, GJDataModelInterface<java.awt.geom.Rectangle2D,GJGraphInterface>, GJObservableInterface, GJLinkableInterface, GJScreenDataInterface<java.awt.Shape>
GJAbstractPlot
and will therefore not generally need to be implemented by user-created
plots.
A paintPlot
method will need to be implemented for individual
GJAbstractPlot
subclasses.Modifier and Type | Method and Description |
---|---|
GJPlotInterface |
add(GJPlotInterface plot)
Adds a plot as a child plot of this plot.
|
javax.swing.JFrame |
createFrame() |
java.util.ArrayList<GJPlotInterface> |
findPlotBelow(double x,
double y)
Returns an ArrayList of plots located beneath [x,y] in the coordinate
space of the parent plot.
|
java.util.ArrayList<GJPlotInterface> |
findPlotBelow(java.awt.geom.Point2D p)
Returns an ArrayList of plots located beneath
java.awt.Point in
the coordinate space of the parent plot. |
java.util.ArrayList<GJPlotInterface> |
getNode()
Returns an ArrayList of plots that are descendant plots of this plot.
|
GJGraphInterface |
getParentGraph() |
GJPlotInterface |
getParentPlot()
Returns a reference to parent plot.
|
java.util.ArrayList<GJPlotInterface> |
getPlotList() |
java.util.ArrayList<GJPlotInterface> |
getPlots()
Returns an ArrayList of plots that are child plots of this plot.
|
GJPlotInterface |
getTopPlot()
Returns the ancestor plot that is the TopPlot in this plot's hierarchy.
|
GJVisualModel |
getVisualModel()
Returns the
GJAbstractVisualModel for the plot. |
boolean |
intersects(double x,
double y)
Determines whether the specified point intersects the data in the
ScreenDataArray.
|
boolean |
intersects(java.awt.geom.Point2D p)
Determines whether the specified point intersects the data in the
ScreenDataArray.
|
boolean |
isSelected()
Returns true if this plot is presently selected
|
boolean |
isTopPlot()
Returns true if this plot is a "TopPlot"
|
boolean |
isVisible()
Returns true if painting of this plot is enabled
|
void |
paintPlot(java.awt.Graphics2D g2)
Method to paint the graphics within the clip limits of the parent graph.
|
void |
paintPlotEntry(java.awt.Graphics2D g2)
Method called by the graph paint methods to coordinate the painting of
individual plot hierarchies.
|
GJPlotInterface |
plus(GJPlotInterface plot)
Simply calls
add . |
void |
saveAsXML(java.lang.String s) |
void |
setAntialiasing(boolean flag) |
void |
setParentGraph(GJGraphInterface gr)
Sets the parent graph for this plot.
|
void |
setParentPlot(GJPlotInterface p)
Sets the parent plot for this plot.
|
void |
setPlotList(java.util.ArrayList<GJPlotInterface> list) |
void |
setSelected(boolean flag)
Sets or clears the selected flag for this plot, together with its
ancestors and descendant plots
|
void |
setSelectionFlag(boolean flag)
Sets or clears the selected flag for this plot, together with its
descendant plots but not ancestors
|
void |
setVisible(boolean flag)
Enables/disables painting of this plot.
|
void |
setVisualModel(GJVisualModel m)
Sets the
GJAbstractVisualModel for the plot. |
getAlpha, getCompositeMode, getDynamicMarkerSize, getEdgeColor, getEdgeStroke, getFill, getLineColor, getLineStroke, getMarker, getMarkerArray, getRenderHintState, getTextHintState, setAlpha, setCompositeMode, setDynamicMarkerSize, setEdgeColor, setEdgeColor, setEdgeColor, setEdgeColor, setEdgeColor, setEdgeStroke, setEdgeStroke, setEdgeStroke, setEdgeStroke, setEdgeStroke, setFill, setFill, setFill, setFill, setFill, setLineColor, setLineColor, setLineColor, setLineColor, setLineStroke, setLineStroke, setLineStroke, setLineStroke, setLineStroke, setMarker, setMarker, setMarkerArray, setMarkerArray, setMarkerArray, setRenderHintState, setTextHintState
getDataModel, getDataRange, getMultiplexLength, getName, getVisualRange, getXData, getXDataValues, getXTransform, getYData, getYDataValues, getYTransform, isMultiplexed, isMultiplexible, setAlpha, setData, setDataModel, setExtraData0, setExtraData1, setExtraData2, setExtraData3, setName, setXData, setXData, setXData, setXData, setXData, setYData, setYData, setYData, setYData, setYData
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removePropertyChangeListener, removePropertyChangeListener
addLink, getLinks, removeLink, setLinks
getScreenDataArray, getScreenDataArrayAsCopy, setScreenDataArray
void setParentGraph(GJGraphInterface gr)
gr
- GJGraphInterface getParentGraph()
GJVisualModel getVisualModel()
GJAbstractVisualModel
for the plot.void setVisualModel(GJVisualModel m)
GJAbstractVisualModel
for the plot.m
- the GJAbstractVisualModel
GJPlotInterface getParentPlot()
void setParentPlot(GJPlotInterface p)
p
- the parent plotGJPlotInterface add(GJPlotInterface plot)
plot
- GJPlotInterface plus(GJPlotInterface plot)
add
. Provided for use in systems that allow addition
via a "+" operator.plot
- GJPlotInterface getTopPlot()
boolean isTopPlot()
java.util.ArrayList<GJPlotInterface> getPlots()
java.util.ArrayList<GJPlotInterface> getNode()
java.util.ArrayList<GJPlotInterface> findPlotBelow(double x, double y)
x
- y
- java.util.ArrayList<GJPlotInterface> findPlotBelow(java.awt.geom.Point2D p)
java.awt.Point
in
the coordinate space of the parent plot.p
- void paintPlot(java.awt.Graphics2D g2)
g2
- void paintPlotEntry(java.awt.Graphics2D g2)
g2
- Graphics2D instance from the graph paint methods.boolean intersects(java.awt.geom.Point2D p)
p
- the Pointboolean intersects(double x, double y)
x
- the x locationy
- the y locationboolean isVisible()
void setVisible(boolean flag)
flag
- true so enable paintingboolean isSelected()
void setSelected(boolean flag)
flag
- void setSelectionFlag(boolean flag)
flag
- void saveAsXML(java.lang.String s)
void setAntialiasing(boolean flag)
javax.swing.JFrame createFrame()
java.util.ArrayList<GJPlotInterface> getPlotList()
void setPlotList(java.util.ArrayList<GJPlotInterface> list)