|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.tuple.TableTuple<T>
prefuse.visual.tuple.TableVisualItem<T>
public class TableVisualItem<T extends 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, MINIMUM_DOI, POLYGON, SCHEMA, SHAPEBUILDER, 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. |
ShapeBuilder |
getShapeBuilder()
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. |
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 |
setShapeBuilder(ShapeBuilder shapeBuilder)
Set the current shape builder for 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, invalidate, 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, invalidate, isValid, revertToDefault, set, set, setBoolean, setBoolean, setDate, setDate, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setString, setString |
| Constructor Detail |
|---|
public TableVisualItem()
| Method Detail |
|---|
public void init(Table table,
Graph graph,
int row)
init in interface Tuple<T extends TableVisualItem<?>>init in class TableTuple<T extends TableVisualItem<?>>table - the data Tablegraph - ignored by this classrow - the table row indexpublic Visualization getVisualization()
VisualItem
getVisualization in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getVisualization()public java.lang.String getGroup()
VisualItem
getGroup in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getGroup()public boolean isInGroup(java.lang.String group)
VisualItem
isInGroup in interface VisualItem<T extends TableVisualItem<?>>group - the group to check for membership.
VisualItem.isInGroup(java.lang.String)public TupleSet<?> getSourceData()
VisualItem
getSourceData in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getSourceData()public Tuple<?> getSourceTuple()
VisualItem
getSourceTuple in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getSourceTuple()public java.lang.String toString()
toString in class TableTuple<T extends TableVisualItem<?>>Object.toString()public void render(java.awt.Graphics2D g)
VisualItem
render in interface VisualItem<T extends TableVisualItem<?>>g - the graphics context to render into.VisualItem.render(java.awt.Graphics2D)public Renderer getRenderer()
VisualItem
getRenderer in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getRenderer()public java.awt.geom.Rectangle2D validateBounds()
VisualItem
validateBounds in interface VisualItem<T extends TableVisualItem<?>>VisualItem.validateBounds()public boolean isValidated()
VisualItem
isValidated in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isValidated()public void setValidated(boolean value)
VisualItem
setValidated in interface VisualItem<T extends TableVisualItem<?>>value - the value of the validated flag to set.VisualItem.setValidated(boolean)public boolean isVisible()
VisualItem
isVisible in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isVisible()public void setVisible(boolean value)
VisualItem
setVisible in interface VisualItem<T extends TableVisualItem<?>>value - true to make the item visible, false otherwise.VisualItem.setVisible(boolean)public boolean isStartVisible()
VisualItem
isStartVisible in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isStartVisible()public void setStartVisible(boolean value)
VisualItem
setStartVisible in interface VisualItem<T extends TableVisualItem<?>>value - true to set the start visible flag, false otherwiseVisualItem.setStartVisible(boolean)public boolean isEndVisible()
VisualItem
isEndVisible in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isEndVisible()public void setEndVisible(boolean value)
VisualItem
setEndVisible in interface VisualItem<T extends TableVisualItem<?>>value - true to set the end visible flag, false otherwiseVisualItem.setEndVisible(boolean)public boolean isInteractive()
VisualItem
isInteractive in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isInteractive()public void setInteractive(boolean value)
VisualItem
setInteractive in interface VisualItem<T extends TableVisualItem<?>>value - true for interactive, false for non-interactiveVisualItem.setInteractive(boolean)public boolean isExpanded()
VisualItem
isExpanded in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isExpanded()public void setExpanded(boolean value)
VisualItem
setExpanded in interface VisualItem<T extends TableVisualItem<?>>value - true to set as expanded, false as collapsed.VisualItem.setExpanded(boolean)public boolean isFixed()
VisualItem
isFixed in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isFixed()public void setFixed(boolean value)
VisualItem
setFixed in interface VisualItem<T extends TableVisualItem<?>>value - true to fix the item, false otherwiseVisualItem.setFixed(boolean)public boolean isHighlighted()
VisualItem
isHighlighted in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isHighlighted()public void setHighlighted(boolean value)
VisualItemColorAction might assign colors
based on the flag).
setHighlighted in interface VisualItem<T extends TableVisualItem<?>>value - true to highlight the item, false for no highlighting.VisualItem.setHighlighted(boolean)public boolean isHover()
VisualItem
isHover in interface VisualItem<T extends TableVisualItem<?>>VisualItem.isHover()public void setHover(boolean value)
VisualItem
setHover in interface VisualItem<T extends TableVisualItem<?>>value - true to set the hover flag, false otherwiseVisualItem.setHover(boolean)public double getX()
VisualItem
getX in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getX()public void setX(double x)
VisualItem
setX in interface VisualItem<T extends TableVisualItem<?>>x - the new current x-coordinateVisualItem.setX(double)public double getY()
VisualItem
getY in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getY()public void setY(double y)
VisualItem
setY in interface VisualItem<T extends TableVisualItem<?>>y - the new current y-coordinateVisualItem.setY(double)public double getStartX()
VisualItem
getStartX in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStartX()public void setStartX(double x)
VisualItem
setStartX in interface VisualItem<T extends TableVisualItem<?>>x - the new starting x-coordinateVisualItem.setStartX(double)public double getStartY()
VisualItem
getStartY in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStartY()public void setStartY(double y)
VisualItem
setStartY in interface VisualItem<T extends TableVisualItem<?>>y - the new starting y-coordinateVisualItem.setStartY(double)public double getEndX()
VisualItem
getEndX in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getEndX()public void setEndX(double x)
VisualItem
setEndX in interface VisualItem<T extends TableVisualItem<?>>x - the new ending x-coordinateVisualItem.setEndX(double)public double getEndY()
VisualItem
getEndY in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getEndY()public void setEndY(double y)
VisualItem
setEndY in interface VisualItem<T extends TableVisualItem<?>>y - the new ending y-coordinateVisualItem.setEndY(double)public java.awt.geom.Rectangle2D getBounds()
VisualItem
getBounds in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getBounds()
public void setBounds(double x,
double y,
double w,
double h)
VisualItem
setBounds in interface VisualItem<T extends TableVisualItem<?>>x - the minimum x-coordinatey - the minimum y-coordindatew - the width of this itemh - the height of this itemVisualItem.setBounds(double, double, double, double)public int getStrokeColor()
VisualItem
getStrokeColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStrokeColor()public void setStrokeColor(int color)
VisualItem
setStrokeColor in interface VisualItem<T extends TableVisualItem<?>>color - the current stroke color, represented as an integerVisualItem.setStrokeColor(int)public int getStartStrokeColor()
VisualItem
getStartStrokeColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStartStrokeColor()public void setStartStrokeColor(int color)
VisualItem
setStartStrokeColor in interface VisualItem<T extends TableVisualItem<?>>color - the starting stroke color, represented as an integerVisualItem.setStartStrokeColor(int)public int getEndStrokeColor()
VisualItem
getEndStrokeColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getEndStrokeColor()public void setEndStrokeColor(int color)
VisualItem
setEndStrokeColor in interface VisualItem<T extends TableVisualItem<?>>color - the ending stroke color, represented as an integerVisualItem.setEndStrokeColor(int)public int getFillColor()
VisualItem
getFillColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getFillColor()public void setFillColor(int color)
VisualItem
setFillColor in interface VisualItem<T extends TableVisualItem<?>>color - the current fill color, represented as an integerVisualItem.setFillColor(int)public int getStartFillColor()
VisualItem
getStartFillColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStartFillColor()public void setStartFillColor(int color)
VisualItem
setStartFillColor in interface VisualItem<T extends TableVisualItem<?>>color - the starting fill color, represented as an integerVisualItem.setStartFillColor(int)public int getEndFillColor()
VisualItem
getEndFillColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getEndFillColor()public void setEndFillColor(int color)
VisualItem
setEndFillColor in interface VisualItem<T extends TableVisualItem<?>>color - the ending fill color, represented as an integerVisualItem.setEndFillColor(int)public int getTextColor()
VisualItem
getTextColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getTextColor()public void setTextColor(int color)
VisualItem
setTextColor in interface VisualItem<T extends TableVisualItem<?>>color - the current text color, represented as an integerVisualItem.setTextColor(int)public int getStartTextColor()
VisualItem
getStartTextColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStartTextColor()public void setStartTextColor(int color)
VisualItem
setStartTextColor in interface VisualItem<T extends TableVisualItem<?>>color - the starting text color, represented as an integerVisualItem.setStartTextColor(int)public int getEndTextColor()
VisualItem
getEndTextColor in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getEndTextColor()public void setEndTextColor(int color)
VisualItem
setEndTextColor in interface VisualItem<T extends TableVisualItem<?>>color - the ending text color, represented as an integerVisualItem.setEndTextColor(int)public double getSize()
VisualItem
getSize in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getSize()public void setSize(double size)
VisualItem
setSize in interface VisualItem<T extends TableVisualItem<?>>size - the current size valueVisualItem.setSize(double)public double getStartSize()
VisualItem
getStartSize in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStartSize()public void setStartSize(double size)
VisualItem
setStartSize in interface VisualItem<T extends TableVisualItem<?>>size - the starting size valueVisualItem.setStartSize(double)public double getEndSize()
VisualItem
getEndSize in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getEndSize()public void setEndSize(double size)
VisualItem
setEndSize in interface VisualItem<T extends TableVisualItem<?>>size - the ending size valueVisualItem.setEndSize(double)public ShapeBuilder getShapeBuilder()
VisualItemShapeRenderer.
getShapeBuilder in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getShapeBuilder()public void setShapeBuilder(ShapeBuilder shapeBuilder)
VisualItemShapeRenderer.
setShapeBuilder in interface VisualItem<T extends TableVisualItem<?>>shapeBuilder - the shape builder to useVisualItem.setShapeBuilder(ShapeBuilder)public java.awt.BasicStroke getStroke()
VisualItem
getStroke in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStroke()public void setStroke(java.awt.BasicStroke stroke)
VisualItem
setStroke in interface VisualItem<T extends TableVisualItem<?>>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<T extends TableVisualItem<?>>VisualItem.getFont()public void setFont(java.awt.Font font)
VisualItem
setFont in interface VisualItem<T extends TableVisualItem<?>>font - the current font valueVisualItem.setFont(java.awt.Font)public java.awt.Font getStartFont()
VisualItem
getStartFont in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getStartFont()public void setStartFont(java.awt.Font font)
VisualItem
setStartFont in interface VisualItem<T extends TableVisualItem<?>>font - the starting font valueVisualItem.setStartFont(java.awt.Font)public java.awt.Font getEndFont()
VisualItem
getEndFont in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getEndFont()public void setEndFont(java.awt.Font font)
VisualItem
setEndFont in interface VisualItem<T extends TableVisualItem<?>>font - the ending font valueVisualItem.setEndFont(java.awt.Font)public double getDOI()
VisualItem
getDOI in interface VisualItem<T extends TableVisualItem<?>>VisualItem.getDOI()public void setDOI(double doi)
VisualItem
setDOI in interface VisualItem<T extends TableVisualItem<?>>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 | |||||||||