|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.gui.visualize.PlotData2D
This class is a container for plottable data. Instances form the primary data. An optional array of classifier/clusterer predictions (associated 1 for 1 with the instances) can also be provided.
Field Summary | |
java.awt.Color |
m_customColour
|
boolean |
m_displayAllPoints
Display all points (ie. |
boolean |
m_useCustomColour
Custom colour for this plot |
Constructor Summary | |
PlotData2D(Instances insts)
Construct a new PlotData2D using the supplied instances |
Method Summary | |
void |
addInstanceNumberAttribute()
Adds an instance number attribute to the plottable instances, |
int |
getCindex()
Get the currently set colouring index of the data |
Instances |
getPlotInstances()
Returns the instances for this plot |
java.lang.String |
getPlotName()
Get the name of this plot |
int |
getXindex()
Get the currently set x index of the data |
int |
getYindex()
Get the currently set y index of the data |
void |
setCindex(int c)
Set the colouring index of the data |
void |
setConnectPoints(boolean[] cp)
Set whether consecutive points should be connected by lines |
void |
setConnectPoints(FastVector cp)
Set whether consecutive points should be connected by lines |
void |
setCustomColour(java.awt.Color c)
Set a custom colour to use for this plot. |
void |
setPlotName(java.lang.String name)
Set the name of this plot |
void |
setShapeSize(FastVector ss)
Set the shape sizes for the plot data |
void |
setShapeSize(int[] ss)
Set the shape sizes for the plot data |
void |
setShapeType(FastVector st)
Set the shape type for the plot data |
void |
setShapeType(int[] st)
Set the shape type for the plot data |
void |
setXindex(int x)
Set the x index of the data. |
void |
setYindex(int y)
Set the y index of the data |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public boolean m_useCustomColour
public java.awt.Color m_customColour
public boolean m_displayAllPoints
Constructor Detail |
public PlotData2D(Instances insts)
insts
- the instances to use.Method Detail |
public void addInstanceNumberAttribute()
public Instances getPlotInstances()
public void setPlotName(java.lang.String name)
name
- the name for this plotpublic java.lang.String getPlotName()
public void setShapeType(int[] st) throws java.lang.Exception
st
- an array of integers corresponding to shape types (see
constants defined in Plot2D)
java.lang.Exception
public void setShapeType(FastVector st) throws java.lang.Exception
st
- a FastVector of integers corresponding to shape types (see
constants defined in Plot2D)
java.lang.Exception
public void setShapeSize(int[] ss) throws java.lang.Exception
java.lang.Exception
public void setShapeSize(FastVector ss) throws java.lang.Exception
java.lang.Exception
public void setConnectPoints(boolean[] cp) throws java.lang.Exception
cp
- an array of boolean specifying which points should be
connected to their preceeding neighbour.
java.lang.Exception
public void setConnectPoints(FastVector cp) throws java.lang.Exception
cp
- a FastVector of boolean specifying which points should be
connected to their preceeding neighbour.
java.lang.Exception
public void setCustomColour(java.awt.Color c)
c
- a custom colour to use for this plot or null (default---no
colouring).public void setXindex(int x)
x
- the x indexpublic void setYindex(int y)
y
- the y indexpublic void setCindex(int c)
c
- the colouring indexpublic int getXindex()
public int getYindex()
public int getCindex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London