|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.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 TableTupletable - the data Tablegraph - ignored by this classrow - the table row indexpublic Visualization getVisualization()
VisualItem
getVisualization in interface VisualItemVisualItem.getVisualization()public java.lang.String getGroup()
VisualItem
getGroup in interface VisualItemVisualItem.getGroup()public boolean isInGroup(java.lang.String group)
VisualItem
isInGroup in interface VisualItemgroup - the group to check for membership.
VisualItem.isInGroup(java.lang.String)public TupleSet getSourceData()
VisualItem
getSourceData in interface VisualItemVisualItem.getSourceData()public Tuple getSourceTuple()
VisualItem
getSourceTuple in interface VisualItemVisualItem.getSourceTuple()public java.lang.String toString()
toString in class TableTupleObject.toString()public void render(java.awt.Graphics2D g)
VisualItem
render in interface VisualItemg - the graphics context to render into.VisualItem.render(java.awt.Graphics2D)public Renderer getRenderer()
VisualItem
getRenderer in interface VisualItemVisualItem.getRenderer()public java.awt.geom.Rectangle2D validateBounds()
VisualItem
validateBounds in interface VisualItemVisualItem.validateBounds()public boolean isValidated()
VisualItem
isValidated in interface VisualItemVisualItem.isValidated()public void setValidated(boolean value)
VisualItem
setValidated in interface VisualItemvalue - the value of the validated flag to set.VisualItem.setValidated(boolean)public boolean isVisible()
VisualItem
isVisible in interface VisualItemVisualItem.isVisible()public void setVisible(boolean value)
VisualItem
setVisible in interface VisualItemvalue - true to make the item visible, false otherwise.VisualItem.setVisible(boolean)public boolean isStartVisible()
VisualItem
isStartVisible in interface VisualItemVisualItem.isStartVisible()public void setStartVisible(boolean value)
VisualItem
setStartVisible in interface VisualItemvalue - true to set the start visible flag, false otherwiseVisualItem.setStartVisible(boolean)public boolean isEndVisible()
VisualItem
isEndVisible in interface VisualItemVisualItem.isEndVisible()public void setEndVisible(boolean value)
VisualItem
setEndVisible in interface VisualItemvalue - true to set the end visible flag, false otherwiseVisualItem.setEndVisible(boolean)public boolean isInteractive()
VisualItem
isInteractive in interface VisualItemVisualItem.isInteractive()public void setInteractive(boolean value)
VisualItem
setInteractive in interface VisualItemvalue - true for interactive, false for non-interactiveVisualItem.setInteractive(boolean)public boolean isExpanded()
VisualItem
isExpanded in interface VisualItemVisualItem.isExpanded()public void setExpanded(boolean value)
VisualItem
setExpanded in interface VisualItemvalue - true to set as expanded, false as collapsed.VisualItem.setExpanded(boolean)public boolean isFixed()
VisualItem
isFixed in interface VisualItemVisualItem.isFixed()public void setFixed(boolean value)
VisualItem
setFixed in interface VisualItemvalue - true to fix the item, false otherwiseVisualItem.setFixed(boolean)public boolean isHighlighted()
VisualItem
isHighlighted in interface VisualItemVisualItem.isHighlighted()public void setHighlighted(boolean value)
VisualItemColorAction might assign colors
based on the flag).
setHighlighted in interface VisualItemvalue - true to highlight the item, false for no highlighting.VisualItem.setHighlighted(boolean)public boolean isHover()
VisualItem
isHover in interface VisualItemVisualItem.isHover()public void setHover(boolean value)
VisualItem
setHover in interface VisualItemvalue - true to set the hover flag, false otherwiseVisualItem.setHover(boolean)public double getX()
VisualItem
getX in interface VisualItemVisualItem.getX()public void setX(double x)
VisualItem
setX in interface VisualItemx - the new current x-coordinateVisualItem.setX(double)public double getY()
VisualItem
getY in interface VisualItemVisualItem.getY()public void setY(double y)
VisualItem
setY in interface VisualItemy - the new current y-coordinateVisualItem.setY(double)public double getStartX()
VisualItem
getStartX in interface VisualItemVisualItem.getStartX()public void setStartX(double x)
VisualItem
setStartX in interface VisualItemx - the new starting x-coordinateVisualItem.setStartX(double)public double getStartY()
VisualItem
getStartY in interface VisualItemVisualItem.getStartY()public void setStartY(double y)
VisualItem
setStartY in interface VisualItemy - the new starting y-coordinateVisualItem.setStartY(double)public double getEndX()
VisualItem
getEndX in interface VisualItemVisualItem.getEndX()public void setEndX(double x)
VisualItem
setEndX in interface VisualItemx - the new ending x-coordinateVisualItem.setEndX(double)public double getEndY()
VisualItem
getEndY in interface VisualItemVisualItem.getEndY()public void setEndY(double y)
VisualItem
setEndY in interface VisualItemy - the new ending y-coordinateVisualItem.setEndY(double)public java.awt.geom.Rectangle2D getBounds()
VisualItem
getBounds in interface VisualItemVisualItem.getBounds()
public void setBounds(double x,
double y,
double w,
double h)
VisualItem
setBounds in interface VisualItemx - 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 VisualItemVisualItem.getStrokeColor()public void setStrokeColor(int color)
VisualItem
setStrokeColor in interface VisualItemcolor - the current stroke color, represented as an integerVisualItem.setStrokeColor(int)public int getStartStrokeColor()
VisualItem
getStartStrokeColor in interface VisualItemVisualItem.getStartStrokeColor()public void setStartStrokeColor(int color)
VisualItem
setStartStrokeColor in interface VisualItemcolor - the starting stroke color, represented as an integerVisualItem.setStartStrokeColor(int)public int getEndStrokeColor()
VisualItem
getEndStrokeColor in interface VisualItemVisualItem.getEndStrokeColor()public void setEndStrokeColor(int color)
VisualItem
setEndStrokeColor in interface VisualItemcolor - the ending stroke color, represented as an integerVisualItem.setEndStrokeColor(int)public int getFillColor()
VisualItem
getFillColor in interface VisualItemVisualItem.getFillColor()public void setFillColor(int color)
VisualItem
setFillColor in interface VisualItemcolor - the current fill color, represented as an integerVisualItem.setFillColor(int)public int getStartFillColor()
VisualItem
getStartFillColor in interface VisualItemVisualItem.getStartFillColor()public void setStartFillColor(int color)
VisualItem
setStartFillColor in interface VisualItemcolor - the starting fill color, represented as an integerVisualItem.setStartFillColor(int)public int getEndFillColor()
VisualItem
getEndFillColor in interface VisualItemVisualItem.getEndFillColor()public void setEndFillColor(int color)
VisualItem
setEndFillColor in interface VisualItemcolor - the ending fill color, represented as an integerVisualItem.setEndFillColor(int)public int getTextColor()
VisualItem
getTextColor in interface VisualItemVisualItem.getTextColor()public void setTextColor(int color)
VisualItem
setTextColor in interface VisualItemcolor - the current text color, represented as an integerVisualItem.setTextColor(int)public int getStartTextColor()
VisualItem
getStartTextColor in interface VisualItemVisualItem.getStartTextColor()public void setStartTextColor(int color)
VisualItem
setStartTextColor in interface VisualItemcolor - the starting text color, represented as an integerVisualItem.setStartTextColor(int)public int getEndTextColor()
VisualItem
getEndTextColor in interface VisualItemVisualItem.getEndTextColor()public void setEndTextColor(int color)
VisualItem
setEndTextColor in interface VisualItemcolor - the ending text color, represented as an integerVisualItem.setEndTextColor(int)public double getSize()
VisualItem
getSize in interface VisualItemVisualItem.getSize()public void setSize(double size)
VisualItem
setSize in interface VisualItemsize - the current size valueVisualItem.setSize(double)public double getStartSize()
VisualItem
getStartSize in interface VisualItemVisualItem.getStartSize()public void setStartSize(double size)
VisualItem
setStartSize in interface VisualItemsize - the starting size valueVisualItem.setStartSize(double)public double getEndSize()
VisualItem
getEndSize in interface VisualItemVisualItem.getEndSize()public void setEndSize(double size)
VisualItem
setEndSize in interface VisualItemsize - the ending size valueVisualItem.setEndSize(double)public int getShape()
VisualItemConstants class. This value only has an
effect if a Renderer that supports different shapes is used
(e.g., ShapeRenderer.
getShape in interface VisualItemVisualItem.getShape()public void setShape(int shape)
VisualItemConstants class. This value only has an
effect if a Renderer that supports different shapes is used
(e.g., ShapeRenderer.
setShape in interface VisualItemshape - the shape value to useVisualItem.setShape(int)public java.awt.BasicStroke getStroke()
VisualItem
getStroke in interface VisualItemVisualItem.getStroke()public void setStroke(java.awt.BasicStroke stroke)
VisualItem
setStroke in interface VisualItemstroke - the stroke to use to draw lines and shape outlinesVisualItem.setStroke(java.awt.BasicStroke)public java.awt.Font getFont()
VisualItem
getFont in interface VisualItemVisualItem.getFont()public void setFont(java.awt.Font font)
VisualItem
setFont in interface VisualItemfont - the current font valueVisualItem.setFont(java.awt.Font)public java.awt.Font getStartFont()
VisualItem
getStartFont in interface VisualItemVisualItem.getStartFont()public void setStartFont(java.awt.Font font)
VisualItem
setStartFont in interface VisualItemfont - the starting font valueVisualItem.setStartFont(java.awt.Font)public java.awt.Font getEndFont()
VisualItem
getEndFont in interface VisualItemVisualItem.getEndFont()public void setEndFont(java.awt.Font font)
VisualItem
setEndFont in interface VisualItemfont - the ending font valueVisualItem.setEndFont(java.awt.Font)public double getDOI()
VisualItem
getDOI in interface VisualItemVisualItem.getDOI()public void setDOI(double doi)
VisualItem
setDOI in interface VisualItemdoi - the DOI value of this itemVisualItem.setDOI(double)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||