|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.tuple.TableTuple prefuse.visual.tuple.TableVisualItem
public class TableVisualItem
VisualItem implementation that uses data values from a backing VisualTable.
Field Summary |
---|
Fields inherited from class prefuse.data.tuple.TableTuple |
---|
m_row, m_table |
Fields inherited from interface prefuse.visual.VisualItem |
---|
BOUNDS, DOI, ENDFILLCOLOR, ENDFONT, ENDPOLYGON, ENDSIZE, ENDSTROKECOLOR, ENDTEXTCOLOR, ENDVISIBLE, ENDX, ENDX2, ENDY, ENDY2, EXPANDED, FILLCOLOR, FIXED, FONT, HIGHLIGHT, HOVER, IDX_VALIDATED, INTERACTIVE, LABEL, POLYGON, SCHEMA, SHAPE, SIZE, STARTFILLCOLOR, STARTFONT, STARTPOLYGON, STARTSIZE, STARTSTROKECOLOR, STARTTEXTCOLOR, STARTVISIBLE, STARTX, STARTX2, STARTY, STARTY2, STROKE, STROKECOLOR, TEXTCOLOR, VALIDATED, VALUE, VISIBLE, X, X2, Y, Y2 |
Constructor Summary | |
---|---|
TableVisualItem()
|
Method Summary | |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Get the bounding box for this VisualItem. |
double |
getDOI()
Get the degree-of-interest (DOI) value. |
int |
getEndFillColor()
Get the ending fill color of this item. |
java.awt.Font |
getEndFont()
Get the ending font for the item. |
double |
getEndSize()
Get the ending size value of the item. |
int |
getEndStrokeColor()
Get the ending stroke color of this item. |
int |
getEndTextColor()
Get the ending text color of this item. |
double |
getEndX()
Get the ending x-coordinate of this item. |
double |
getEndY()
Get the ending y-coordinate of this item. |
int |
getFillColor()
Get the current fill color of this item. |
java.awt.Font |
getFont()
Get the current font for the item. |
java.lang.String |
getGroup()
Get the primary data group of which this VisualItem is a member. |
Renderer |
getRenderer()
Get the Renderer instance for drawing this VisualItem. |
int |
getShape()
Get the current shape value of the item. |
double |
getSize()
Get the current size value of the item. |
TupleSet |
getSourceData()
Returns the original backing data set from which this VisualItem is derived. |
Tuple |
getSourceTuple()
Returns the original backing data tuple from which this VisualItem is derived. |
int |
getStartFillColor()
Get the starting fill color of this item. |
java.awt.Font |
getStartFont()
Get the starting font for the item. |
double |
getStartSize()
Get the starting size value of the item. |
int |
getStartStrokeColor()
Get the starting stroke color of this item. |
int |
getStartTextColor()
Get the starting text color of this item. |
double |
getStartX()
Get the starting x-coordinate of this item. |
double |
getStartY()
Get the starting y-coordinate of this item. |
java.awt.BasicStroke |
getStroke()
Get the current stroke used to draw lines and shape outlines. |
int |
getStrokeColor()
Get the current stroke color of this item. |
int |
getTextColor()
Get the current text color of this item. |
Visualization |
getVisualization()
Get the backing Visualization of which this VisualItem is a part. |
double |
getX()
Get the current x-coordinate of this item. |
double |
getY()
Get the current y-coordinate of this item. |
protected void |
init(Table table,
Graph graph,
int row)
Initialize a new TableVisualItem for the given table and row. |
boolean |
isEndVisible()
Indictes if the end visible flag is set to true. |
boolean |
isExpanded()
Indicates this item is expanded. |
boolean |
isFixed()
Indicates if the item is fixed, and so will not have its position changed by any layout or distortion actions. |
boolean |
isHighlighted()
Indicates if the item is highlighted. |
boolean |
isHover()
Indicates if the item currently has the mouse pointer over it. |
boolean |
isInGroup(java.lang.String group)
Indicates if this item is a member of a given group. |
boolean |
isInteractive()
Indicates if this item is interactive, meaning it can potentially respond to mouse and keyboard input events. |
boolean |
isStartVisible()
Indicates if the start visible flag is set to true. |
boolean |
isValidated()
Indicates if this VisualItem is currently validated. |
boolean |
isVisible()
Indicates if this VisualItem is currently set to be visible. |
void |
render(java.awt.Graphics2D g)
Render this item to the given graphics context. |
void |
setBounds(double x,
double y,
double w,
double h)
Set the bounding box for this item. |
void |
setDOI(double doi)
Set the degree-of-interest (DOI) value. |
void |
setEndFillColor(int color)
Set the ending fill color of this item. |
void |
setEndFont(java.awt.Font font)
Set the ending font for the item. |
void |
setEndSize(double size)
Set the ending size value of the item. |
void |
setEndStrokeColor(int color)
Set the ending stroke color of this item. |
void |
setEndTextColor(int color)
Set the ending text color of this item. |
void |
setEndVisible(boolean value)
Set the end visible flag. |
void |
setEndX(double x)
Set the ending x-coordinate of this item. |
void |
setEndY(double y)
Set the ending y-coordinate of this item. |
void |
setExpanded(boolean value)
Set the expanded flag. |
void |
setFillColor(int color)
Set the current fill color of this item. |
void |
setFixed(boolean value)
Sets if the item is fixed in its position. |
void |
setFont(java.awt.Font font)
Set the current font for the item. |
void |
setHighlighted(boolean value)
Set the highlighted status of this item. |
void |
setHover(boolean value)
Set the hover flag. |
void |
setInteractive(boolean value)
Set the interactive status of this VisualItem. |
void |
setShape(int shape)
Set the current shape value of the item. |
void |
setSize(double size)
Set the current size value of the item. |
void |
setStartFillColor(int color)
Set the starting fill color of this item. |
void |
setStartFont(java.awt.Font font)
Set the starting font for the item. |
void |
setStartSize(double size)
Set the starting size value of the item. |
void |
setStartStrokeColor(int color)
Set the starting stroke color of this item. |
void |
setStartTextColor(int color)
Set the starting text color of this item. |
void |
setStartVisible(boolean value)
Set the start visible flag. |
void |
setStartX(double x)
Set the starting x-coordinate of this item. |
void |
setStartY(double y)
Set the starting y-coordinate of this item. |
void |
setStroke(java.awt.BasicStroke stroke)
Set the current stroke used to draw lines and shape outlines. |
void |
setStrokeColor(int color)
Set the current stroke color of this item. |
void |
setTextColor(int color)
Set the current text color of this item. |
void |
setValidated(boolean value)
Set this item's validated flag. |
void |
setVisible(boolean value)
Set this item's visibility. |
void |
setX(double x)
Set the current x-coordinate of this item. |
void |
setY(double y)
Set the current y-coordinate of this item. |
java.lang.String |
toString()
|
java.awt.geom.Rectangle2D |
validateBounds()
Validate the bounds of this VisualItem. |
Methods inherited from class prefuse.data.tuple.TableTuple |
---|
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface prefuse.data.Tuple |
---|
canGet, canGetBoolean, canGetDate, canGetDouble, canGetFloat, canGetInt, canGetLong, canGetString, canSet, canSetBoolean, canSetDate, canSetDouble, canSetFloat, canSetInt, canSetLong, canSetString, get, get, getBoolean, getBoolean, getColumnCount, getColumnIndex, getColumnName, getColumnType, getColumnType, getDate, getDate, getDefault, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getRow, getSchema, getString, getString, getTable, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString |
Constructor Detail |
---|
public TableVisualItem()
Method Detail |
---|
protected void init(Table table, Graph graph, int row)
init
in class TableTuple
table
- the data Tablegraph
- ignored by this classrow
- the table row indexpublic Visualization getVisualization()
VisualItem
getVisualization
in interface VisualItem
VisualItem.getVisualization()
public java.lang.String getGroup()
VisualItem
getGroup
in interface VisualItem
VisualItem.getGroup()
public boolean isInGroup(java.lang.String group)
VisualItem
isInGroup
in interface VisualItem
group
- the group to check for membership.
VisualItem.isInGroup(java.lang.String)
public TupleSet getSourceData()
VisualItem
getSourceData
in interface VisualItem
VisualItem.getSourceData()
public Tuple getSourceTuple()
VisualItem
getSourceTuple
in interface VisualItem
VisualItem.getSourceTuple()
public java.lang.String toString()
toString
in class TableTuple
Object.toString()
public void render(java.awt.Graphics2D g)
VisualItem
render
in interface VisualItem
g
- the graphics context to render into.VisualItem.render(java.awt.Graphics2D)
public Renderer getRenderer()
VisualItem
getRenderer
in interface VisualItem
VisualItem.getRenderer()
public java.awt.geom.Rectangle2D validateBounds()
VisualItem
validateBounds
in interface VisualItem
VisualItem.validateBounds()
public boolean isValidated()
VisualItem
isValidated
in interface VisualItem
VisualItem.isValidated()
public void setValidated(boolean value)
VisualItem
setValidated
in interface VisualItem
value
- the value of the validated flag to set.VisualItem.setValidated(boolean)
public boolean isVisible()
VisualItem
isVisible
in interface VisualItem
VisualItem.isVisible()
public void setVisible(boolean value)
VisualItem
setVisible
in interface VisualItem
value
- true to make the item visible, false otherwise.VisualItem.setVisible(boolean)
public boolean isStartVisible()
VisualItem
isStartVisible
in interface VisualItem
VisualItem.isStartVisible()
public void setStartVisible(boolean value)
VisualItem
setStartVisible
in interface VisualItem
value
- true to set the start visible flag, false otherwiseVisualItem.setStartVisible(boolean)
public boolean isEndVisible()
VisualItem
isEndVisible
in interface VisualItem
VisualItem.isEndVisible()
public void setEndVisible(boolean value)
VisualItem
setEndVisible
in interface VisualItem
value
- true to set the end visible flag, false otherwiseVisualItem.setEndVisible(boolean)
public boolean isInteractive()
VisualItem
isInteractive
in interface VisualItem
VisualItem.isInteractive()
public void setInteractive(boolean value)
VisualItem
setInteractive
in interface VisualItem
value
- true for interactive, false for non-interactiveVisualItem.setInteractive(boolean)
public boolean isExpanded()
VisualItem
isExpanded
in interface VisualItem
VisualItem.isExpanded()
public void setExpanded(boolean value)
VisualItem
setExpanded
in interface VisualItem
value
- true to set as expanded, false as collapsed.VisualItem.setExpanded(boolean)
public boolean isFixed()
VisualItem
isFixed
in interface VisualItem
VisualItem.isFixed()
public void setFixed(boolean value)
VisualItem
setFixed
in interface VisualItem
value
- true to fix the item, false otherwiseVisualItem.setFixed(boolean)
public boolean isHighlighted()
VisualItem
isHighlighted
in interface VisualItem
VisualItem.isHighlighted()
public void setHighlighted(boolean value)
VisualItem
ColorAction
might assign colors
based on the flag).
setHighlighted
in interface VisualItem
value
- true to highlight the item, false for no highlighting.VisualItem.setHighlighted(boolean)
public boolean isHover()
VisualItem
isHover
in interface VisualItem
VisualItem.isHover()
public void setHover(boolean value)
VisualItem
setHover
in interface VisualItem
value
- true to set the hover flag, false otherwiseVisualItem.setHover(boolean)
public double getX()
VisualItem
getX
in interface VisualItem
VisualItem.getX()
public void setX(double x)
VisualItem
setX
in interface VisualItem
x
- the new current x-coordinateVisualItem.setX(double)
public double getY()
VisualItem
getY
in interface VisualItem
VisualItem.getY()
public void setY(double y)
VisualItem
setY
in interface VisualItem
y
- the new current y-coordinateVisualItem.setY(double)
public double getStartX()
VisualItem
getStartX
in interface VisualItem
VisualItem.getStartX()
public void setStartX(double x)
VisualItem
setStartX
in interface VisualItem
x
- the new starting x-coordinateVisualItem.setStartX(double)
public double getStartY()
VisualItem
getStartY
in interface VisualItem
VisualItem.getStartY()
public void setStartY(double y)
VisualItem
setStartY
in interface VisualItem
y
- the new starting y-coordinateVisualItem.setStartY(double)
public double getEndX()
VisualItem
getEndX
in interface VisualItem
VisualItem.getEndX()
public void setEndX(double x)
VisualItem
setEndX
in interface VisualItem
x
- the new ending x-coordinateVisualItem.setEndX(double)
public double getEndY()
VisualItem
getEndY
in interface VisualItem
VisualItem.getEndY()
public void setEndY(double y)
VisualItem
setEndY
in interface VisualItem
y
- the new ending y-coordinateVisualItem.setEndY(double)
public java.awt.geom.Rectangle2D getBounds()
VisualItem
getBounds
in interface VisualItem
VisualItem.getBounds()
public void setBounds(double x, double y, double w, double h)
VisualItem
setBounds
in interface VisualItem
x
- the minimum x-coordinatey
- the minimum y-coorindatew
- the width of this itemh
- the height of this itemVisualItem.setBounds(double, double, double, double)
public int getStrokeColor()
VisualItem
getStrokeColor
in interface VisualItem
VisualItem.getStrokeColor()
public void setStrokeColor(int color)
VisualItem
setStrokeColor
in interface VisualItem
color
- the current stroke color, represented as an integerVisualItem.setStrokeColor(int)
public int getStartStrokeColor()
VisualItem
getStartStrokeColor
in interface VisualItem
VisualItem.getStartStrokeColor()
public void setStartStrokeColor(int color)
VisualItem
setStartStrokeColor
in interface VisualItem
color
- the starting stroke color, represented as an integerVisualItem.setStartStrokeColor(int)
public int getEndStrokeColor()
VisualItem
getEndStrokeColor
in interface VisualItem
VisualItem.getEndStrokeColor()
public void setEndStrokeColor(int color)
VisualItem
setEndStrokeColor
in interface VisualItem
color
- the ending stroke color, represented as an integerVisualItem.setEndStrokeColor(int)
public int getFillColor()
VisualItem
getFillColor
in interface VisualItem
VisualItem.getFillColor()
public void setFillColor(int color)
VisualItem
setFillColor
in interface VisualItem
color
- the current fill color, represented as an integerVisualItem.setFillColor(int)
public int getStartFillColor()
VisualItem
getStartFillColor
in interface VisualItem
VisualItem.getStartFillColor()
public void setStartFillColor(int color)
VisualItem
setStartFillColor
in interface VisualItem
color
- the starting fill color, represented as an integerVisualItem.setStartFillColor(int)
public int getEndFillColor()
VisualItem
getEndFillColor
in interface VisualItem
VisualItem.getEndFillColor()
public void setEndFillColor(int color)
VisualItem
setEndFillColor
in interface VisualItem
color
- the ending fill color, represented as an integerVisualItem.setEndFillColor(int)
public int getTextColor()
VisualItem
getTextColor
in interface VisualItem
VisualItem.getTextColor()
public void setTextColor(int color)
VisualItem
setTextColor
in interface VisualItem
color
- the current text color, represented as an integerVisualItem.setTextColor(int)
public int getStartTextColor()
VisualItem
getStartTextColor
in interface VisualItem
VisualItem.getStartTextColor()
public void setStartTextColor(int color)
VisualItem
setStartTextColor
in interface VisualItem
color
- the starting text color, represented as an integerVisualItem.setStartTextColor(int)
public int getEndTextColor()
VisualItem
getEndTextColor
in interface VisualItem
VisualItem.getEndTextColor()
public void setEndTextColor(int color)
VisualItem
setEndTextColor
in interface VisualItem
color
- the ending text color, represented as an integerVisualItem.setEndTextColor(int)
public double getSize()
VisualItem
getSize
in interface VisualItem
VisualItem.getSize()
public void setSize(double size)
VisualItem
setSize
in interface VisualItem
size
- the current size valueVisualItem.setSize(double)
public double getStartSize()
VisualItem
getStartSize
in interface VisualItem
VisualItem.getStartSize()
public void setStartSize(double size)
VisualItem
setStartSize
in interface VisualItem
size
- the starting size valueVisualItem.setStartSize(double)
public double getEndSize()
VisualItem
getEndSize
in interface VisualItem
VisualItem.getEndSize()
public void setEndSize(double size)
VisualItem
setEndSize
in interface VisualItem
size
- the ending size valueVisualItem.setEndSize(double)
public int getShape()
VisualItem
Constants
class. This value only has an
effect if a Renderer that supports different shapes is used
(e.g., ShapeRenderer
.
getShape
in interface VisualItem
VisualItem.getShape()
public void setShape(int shape)
VisualItem
Constants
class. This value only has an
effect if a Renderer that supports different shapes is used
(e.g., ShapeRenderer
.
setShape
in interface VisualItem
shape
- the shape value to useVisualItem.setShape(int)
public java.awt.BasicStroke getStroke()
VisualItem
getStroke
in interface VisualItem
VisualItem.getStroke()
public void setStroke(java.awt.BasicStroke stroke)
VisualItem
setStroke
in interface VisualItem
stroke
- the stroke to use to draw lines and shape outlinesVisualItem.setStroke(java.awt.BasicStroke)
public java.awt.Font getFont()
VisualItem
getFont
in interface VisualItem
VisualItem.getFont()
public void setFont(java.awt.Font font)
VisualItem
setFont
in interface VisualItem
font
- the current font valueVisualItem.setFont(java.awt.Font)
public java.awt.Font getStartFont()
VisualItem
getStartFont
in interface VisualItem
VisualItem.getStartFont()
public void setStartFont(java.awt.Font font)
VisualItem
setStartFont
in interface VisualItem
font
- the starting font valueVisualItem.setStartFont(java.awt.Font)
public java.awt.Font getEndFont()
VisualItem
getEndFont
in interface VisualItem
VisualItem.getEndFont()
public void setEndFont(java.awt.Font font)
VisualItem
setEndFont
in interface VisualItem
font
- the ending font valueVisualItem.setEndFont(java.awt.Font)
public double getDOI()
VisualItem
getDOI
in interface VisualItem
VisualItem.getDOI()
public void setDOI(double doi)
VisualItem
setDOI
in interface VisualItem
doi
- the DOI value of this itemVisualItem.setDOI(double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |