public class PlotData2D extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
int |
m_alwaysDisplayPointsOfThisSize
If the shape size of a point equals this size then always plot
it (i.e.
|
Color |
m_customColour |
boolean |
m_displayAllPoints
Display all points (ie.
|
boolean |
m_useCustomColour
Custom colour for this plot
|
Constructor and Description |
---|
PlotData2D(Instances insts)
Construct a new PlotData2D using the supplied instances
|
Modifier and Type | Method and Description |
---|---|
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
|
String |
getPlotName()
Get the name of this plot
|
String |
getPlotNameHTML()
Get the name of the plot for use in a tool tip text.
|
int[] |
getShapeSize()
Get the shape sizes for the plot data
|
int[] |
getShapeType()
Get the shape types for the plot data
|
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(Color c)
Set a custom colour to use for this plot.
|
void |
setPlotName(String name)
Set the name of this plot
|
void |
setPlotNameHTML(String name)
Set the plot name for use in a tool tip text.
|
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
|
public boolean m_useCustomColour
public Color m_customColour
public boolean m_displayAllPoints
public int m_alwaysDisplayPointsOfThisSize
public PlotData2D(Instances insts)
insts
- the instances to use.public void addInstanceNumberAttribute()
public Instances getPlotInstances()
public void setPlotName(String name)
name
- the name for this plotpublic String getPlotName()
public void setPlotNameHTML(String name)
name
- the name of the plot for potential use in a tool
tip text (may use html).public String getPlotNameHTML()
public void setShapeType(int[] st) throws Exception
st
- an array of integers corresponding to shape types (see
constants defined in Plot2D)Exception
public int[] getShapeType()
public void setShapeType(FastVector st) throws Exception
st
- a FastVector of integers corresponding to shape types (see
constants defined in Plot2D)Exception
public void setShapeSize(int[] ss) throws Exception
ss
- an array of integers specifying the size of data pointsException
public int[] getShapeSize()
public void setShapeSize(FastVector ss) throws Exception
ss
- a FastVector of integers specifying the size of data pointsException
public void setConnectPoints(boolean[] cp) throws Exception
cp
- an array of boolean specifying which points should be
connected to their preceeding neighbour.Exception
public void setConnectPoints(FastVector cp) throws Exception
cp
- a FastVector of boolean specifying which points should be
connected to their preceeding neighbour.Exception
public void setCustomColour(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()
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.