kcl.waterloo.graphics.plots2D
Class GJContour
- java.lang.Object
-
- kcl.waterloo.observable.GJAbstractObservable
-
- kcl.waterloo.graphics.plots2D.GJAbstractPlotModelImpl
-
- kcl.waterloo.graphics.plots2D.GJAbstractPlot
-
- kcl.waterloo.graphics.plots2D.GJContour
-
- All Implemented Interfaces:
- java.beans.PropertyChangeListener, java.util.EventListener, GJEffectorInterface, GJFastPlotInterface, GJPlotInterface, GJTransformUpdateInterface, GJLinkableInterface, GJObservableInterface, GJDataModelInterface<java.awt.geom.Rectangle2D,GJGraphInterface>, GJFillableInterface<java.awt.Shape,java.awt.Paint>, GJScreenDataInterface<java.awt.Shape>, GJVisualsInterface<GJMarker,java.awt.Paint,java.awt.BasicStroke,java.awt.Dimension,java.awt.Shape>
public class GJContour extends GJAbstractPlot implements GJTransformUpdateInterface
GJContour class for plotting contours. Note that the MarkerArray is not used for this class - Paths are instead represented by the ContourExtra object that provides methods to generate the contour lines from data.This code is part of the Waterloo Scientific Graphics package from King's College London
-
-
Field Summary
-
Fields inherited from class kcl.waterloo.graphics.plots2D.GJAbstractPlotModelImpl
screenDataArray
-
-
Constructor Summary
Constructors Constructor and Description GJContour()GJContour(GJAbstractPlot p)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static GJPlotInterfacecreateInstance()java.awt.FontgetLabelFont()booleanisFillClipping()booleanisFilled()booleanisLabelled()booleanisMultiplexible()voidpaintPlot(java.awt.Graphics2D g)Note that this method is overloaded by all concrete sub-classes which should call this super-class method.voidpropertyChange(java.beans.PropertyChangeEvent e)voidsetFillClipping(boolean fillClipping)voidsetFilled(boolean filled)voidsetLabelFont(java.awt.Font labelFont)voidsetLabelled(boolean labelled)java.lang.StringstringSupplement()Adds a supplement to thefromStringreturned by the toString() method.booleantransformUpdate()Called by the parent graph property change listener if the transform applied on either x or y axis is changed.-
Methods inherited from class kcl.waterloo.graphics.plots2D.GJAbstractPlot
add, createFrame, findPlotBelow, findPlotBelow, getAreaFill, getAreaPaint, getDataRange, getEffect, getFillable, getFillAlpha, getFillComposite, getNode, getParentPlot, getPlots, getTopPlot, getVisualRange, intersects, intersects, isOnEDT, isSelected, isShowing, isTopPlot, isVisible, paintPlotEntry, plotRedraw, plotRedraw, plotUpdate, plotUpdate, plus, saveAsXML, setAntialiasing, setAreaFill, setAreaPaint, setEffect, setFillAlpha, setFillComposite, setParentPlot, setSelected, setSelectionFlag, setVisible, toString, toString
-
Methods inherited from class kcl.waterloo.graphics.plots2D.GJAbstractPlotModelImpl
getAlpha, getCompositeMode, getDataModel, getDynamicMarkerSize, getEdgeColor, getEdgeStroke, getFill, getLineColor, getLineStroke, getMarker, getMarkerArray, getMultiplexLength, getName, getParentGraph, getPlotList, getRenderHintState, getScreenDataArray, getScreenDataArrayAsCopy, getTextHintState, getVisualModel, getXData, getXDataValues, getXTransform, getYData, getYDataValues, getYTransform, isMultiplexed, setAlpha, setCompositeMode, setData, setDataModel, setDynamicMarkerSize, setEdgeColor, setEdgeColor, setEdgeColor, setEdgeColor, setEdgeColor, setEdgeStroke, setEdgeStroke, setEdgeStroke, setEdgeStroke, setEdgeStroke, setExtraData0, setExtraData1, setExtraData2, setExtraData3, setFill, setFill, setFill, setFill, setFill, setLineColor, setLineColor, setLineColor, setLineColor, setLineStroke, setLineStroke, setLineStroke, setLineStroke, setLineStroke, setMarker, setMarker, setMarkerArray, setMarkerArray, setMarkerArray, setName, setName, setParentGraph, setPlotList, setRenderHintState, setScreenDataArray, setTextHintState, setVisualModel, setXData, setXData, setXData, setXData, setXData, setYData, setYData, setYData, setYData, setYData
-
Methods inherited from class kcl.waterloo.observable.GJAbstractObservable
addLink, addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getLinks, getPCS, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removeLink, removePropertyChangeListener, removePropertyChangeListener, setLinks
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface kcl.waterloo.observable.GJObservableInterface
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, hasSelfListener, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from interface kcl.waterloo.observable.GJLinkableInterface
addLink, getLinks, removeLink, setLinks
-
-
-
-
Constructor Detail
-
GJContour
public GJContour()
-
GJContour
public GJContour(GJAbstractPlot p)
-
-
Method Detail
-
createInstance
public static GJPlotInterface createInstance()
-
paintPlot
public void paintPlot(java.awt.Graphics2D g)
Description copied from class:GJAbstractPlotNote that this method is overloaded by all concrete sub-classes which should call this super-class method.- Specified by:
paintPlotin interfaceGJPlotInterface- Overrides:
paintPlotin classGJAbstractPlot
-
isMultiplexible
public boolean isMultiplexible()
- Specified by:
isMultiplexiblein interfaceGJDataModelInterface<java.awt.geom.Rectangle2D,GJGraphInterface>- Overrides:
isMultiplexiblein classGJAbstractPlot
-
stringSupplement
public java.lang.String stringSupplement()
Description copied from class:GJAbstractPlotAdds a supplement to thefromStringreturned by the toString() method. Subclasses can override this method to add information to the end of the toString() output.- Returns:
- the supplementary
fromString
-
isLabelled
public boolean isLabelled()
- Returns:
- the labelled
-
setLabelled
public void setLabelled(boolean labelled)
- Parameters:
labelled- the labelled to set
-
isFillClipping
public boolean isFillClipping()
- Returns:
- the fillClipping
-
setFillClipping
public void setFillClipping(boolean fillClipping)
- Parameters:
fillClipping- the fillClipping to set
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent e)
- Specified by:
propertyChangein interfacejava.beans.PropertyChangeListener- Overrides:
propertyChangein classGJAbstractPlot
-
transformUpdate
public final boolean transformUpdate()
Description copied from interface:GJTransformUpdateInterfaceCalled by the parent graph property change listener if the transform applied on either x or y axis is changed. The output indicates whether the graph needs some unspecified action after the update. Custom plots with custom listeners can make use of this.- Specified by:
transformUpdatein interfaceGJTransformUpdateInterface- Returns:
-
isFilled
public boolean isFilled()
- Returns:
- the filled
-
setFilled
public void setFilled(boolean filled)
- Parameters:
filled- the filled to set
-
getLabelFont
public java.awt.Font getLabelFont()
- Returns:
- the labelFontSize
-
setLabelFont
public void setLabelFont(java.awt.Font labelFont)
- Parameters:
labelFont-
-
-
DMelt 3.0 © DataMelt by jWork.ORG