public class TableVisualItem extends TableTuple implements VisualItem
m_row, m_tableBOUNDS, 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 and Description |
|---|
TableVisualItem() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, setStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanGet, 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, setStringprotected 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()
VisualItemgetVisualization in interface VisualItemVisualItem.getVisualization()public java.lang.String getGroup()
VisualItemgetGroup in interface VisualItemVisualItem.getGroup()public boolean isInGroup(java.lang.String group)
VisualItemisInGroup in interface VisualItemgroup - the group to check for membership.VisualItem.isInGroup(java.lang.String)public TupleSet getSourceData()
VisualItemgetSourceData in interface VisualItemVisualItem.getSourceData()public Tuple getSourceTuple()
VisualItemgetSourceTuple in interface VisualItemVisualItem.getSourceTuple()public java.lang.String toString()
toString in class TableTupleObject.toString()public void render(java.awt.Graphics2D g)
VisualItemrender in interface VisualItemg - the graphics context to render into.VisualItem.render(java.awt.Graphics2D)public Renderer getRenderer()
VisualItemgetRenderer in interface VisualItemVisualItem.getRenderer()public java.awt.geom.Rectangle2D validateBounds()
VisualItemvalidateBounds in interface VisualItemVisualItem.validateBounds()public boolean isValidated()
VisualItemisValidated in interface VisualItemVisualItem.isValidated()public void setValidated(boolean value)
VisualItemsetValidated in interface VisualItemvalue - the value of the validated flag to set.VisualItem.setValidated(boolean)public boolean isVisible()
VisualItemisVisible in interface VisualItemVisualItem.isVisible()public void setVisible(boolean value)
VisualItemsetVisible in interface VisualItemvalue - true to make the item visible, false otherwise.VisualItem.setVisible(boolean)public boolean isStartVisible()
VisualItemisStartVisible in interface VisualItemVisualItem.isStartVisible()public void setStartVisible(boolean value)
VisualItemsetStartVisible in interface VisualItemvalue - true to set the start visible flag, false otherwiseVisualItem.setStartVisible(boolean)public boolean isEndVisible()
VisualItemisEndVisible in interface VisualItemVisualItem.isEndVisible()public void setEndVisible(boolean value)
VisualItemsetEndVisible in interface VisualItemvalue - true to set the end visible flag, false otherwiseVisualItem.setEndVisible(boolean)public boolean isInteractive()
VisualItemisInteractive in interface VisualItemVisualItem.isInteractive()public void setInteractive(boolean value)
VisualItemsetInteractive in interface VisualItemvalue - true for interactive, false for non-interactiveVisualItem.setInteractive(boolean)public boolean isExpanded()
VisualItemisExpanded in interface VisualItemVisualItem.isExpanded()public void setExpanded(boolean value)
VisualItemsetExpanded in interface VisualItemvalue - true to set as expanded, false as collapsed.VisualItem.setExpanded(boolean)public boolean isFixed()
VisualItemisFixed in interface VisualItemVisualItem.isFixed()public void setFixed(boolean value)
VisualItemsetFixed in interface VisualItemvalue - true to fix the item, false otherwiseVisualItem.setFixed(boolean)public boolean isHighlighted()
VisualItemisHighlighted 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()
VisualItemisHover in interface VisualItemVisualItem.isHover()public void setHover(boolean value)
VisualItemsetHover in interface VisualItemvalue - true to set the hover flag, false otherwiseVisualItem.setHover(boolean)public double getX()
VisualItemgetX in interface VisualItemVisualItem.getX()public void setX(double x)
VisualItemsetX in interface VisualItemx - the new current x-coordinateVisualItem.setX(double)public double getY()
VisualItemgetY in interface VisualItemVisualItem.getY()public void setY(double y)
VisualItemsetY in interface VisualItemy - the new current y-coordinateVisualItem.setY(double)public double getStartX()
VisualItemgetStartX in interface VisualItemVisualItem.getStartX()public void setStartX(double x)
VisualItemsetStartX in interface VisualItemx - the new starting x-coordinateVisualItem.setStartX(double)public double getStartY()
VisualItemgetStartY in interface VisualItemVisualItem.getStartY()public void setStartY(double y)
VisualItemsetStartY in interface VisualItemy - the new starting y-coordinateVisualItem.setStartY(double)public double getEndX()
VisualItemgetEndX in interface VisualItemVisualItem.getEndX()public void setEndX(double x)
VisualItemsetEndX in interface VisualItemx - the new ending x-coordinateVisualItem.setEndX(double)public double getEndY()
VisualItemgetEndY in interface VisualItemVisualItem.getEndY()public void setEndY(double y)
VisualItemsetEndY in interface VisualItemy - the new ending y-coordinateVisualItem.setEndY(double)public java.awt.geom.Rectangle2D getBounds()
VisualItemgetBounds in interface VisualItemVisualItem.getBounds()public void setBounds(double x,
double y,
double w,
double h)
VisualItemsetBounds 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()
VisualItemgetStrokeColor in interface VisualItemVisualItem.getStrokeColor()public void setStrokeColor(int color)
VisualItemsetStrokeColor in interface VisualItemcolor - the current stroke color, represented as an integerVisualItem.setStrokeColor(int)public int getStartStrokeColor()
VisualItemgetStartStrokeColor in interface VisualItemVisualItem.getStartStrokeColor()public void setStartStrokeColor(int color)
VisualItemsetStartStrokeColor in interface VisualItemcolor - the starting stroke color, represented as an integerVisualItem.setStartStrokeColor(int)public int getEndStrokeColor()
VisualItemgetEndStrokeColor in interface VisualItemVisualItem.getEndStrokeColor()public void setEndStrokeColor(int color)
VisualItemsetEndStrokeColor in interface VisualItemcolor - the ending stroke color, represented as an integerVisualItem.setEndStrokeColor(int)public int getFillColor()
VisualItemgetFillColor in interface VisualItemVisualItem.getFillColor()public void setFillColor(int color)
VisualItemsetFillColor in interface VisualItemcolor - the current fill color, represented as an integerVisualItem.setFillColor(int)public int getStartFillColor()
VisualItemgetStartFillColor in interface VisualItemVisualItem.getStartFillColor()public void setStartFillColor(int color)
VisualItemsetStartFillColor in interface VisualItemcolor - the starting fill color, represented as an integerVisualItem.setStartFillColor(int)public int getEndFillColor()
VisualItemgetEndFillColor in interface VisualItemVisualItem.getEndFillColor()public void setEndFillColor(int color)
VisualItemsetEndFillColor in interface VisualItemcolor - the ending fill color, represented as an integerVisualItem.setEndFillColor(int)public int getTextColor()
VisualItemgetTextColor in interface VisualItemVisualItem.getTextColor()public void setTextColor(int color)
VisualItemsetTextColor in interface VisualItemcolor - the current text color, represented as an integerVisualItem.setTextColor(int)public int getStartTextColor()
VisualItemgetStartTextColor in interface VisualItemVisualItem.getStartTextColor()public void setStartTextColor(int color)
VisualItemsetStartTextColor in interface VisualItemcolor - the starting text color, represented as an integerVisualItem.setStartTextColor(int)public int getEndTextColor()
VisualItemgetEndTextColor in interface VisualItemVisualItem.getEndTextColor()public void setEndTextColor(int color)
VisualItemsetEndTextColor in interface VisualItemcolor - the ending text color, represented as an integerVisualItem.setEndTextColor(int)public double getSize()
VisualItemgetSize in interface VisualItemVisualItem.getSize()public void setSize(double size)
VisualItemsetSize in interface VisualItemsize - the current size valueVisualItem.setSize(double)public double getStartSize()
VisualItemgetStartSize in interface VisualItemVisualItem.getStartSize()public void setStartSize(double size)
VisualItemsetStartSize in interface VisualItemsize - the starting size valueVisualItem.setStartSize(double)public double getEndSize()
VisualItemgetEndSize in interface VisualItemVisualItem.getEndSize()public void setEndSize(double size)
VisualItemsetEndSize 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()
VisualItemgetStroke in interface VisualItemVisualItem.getStroke()public void setStroke(java.awt.BasicStroke stroke)
VisualItemsetStroke in interface VisualItemstroke - the stroke to use to draw lines and shape outlinesVisualItem.setStroke(java.awt.BasicStroke)public java.awt.Font getFont()
VisualItemgetFont in interface VisualItemVisualItem.getFont()public void setFont(java.awt.Font font)
VisualItemsetFont in interface VisualItemfont - the current font valueVisualItem.setFont(java.awt.Font)public java.awt.Font getStartFont()
VisualItemgetStartFont in interface VisualItemVisualItem.getStartFont()public void setStartFont(java.awt.Font font)
VisualItemsetStartFont in interface VisualItemfont - the starting font valueVisualItem.setStartFont(java.awt.Font)public java.awt.Font getEndFont()
VisualItemgetEndFont in interface VisualItemVisualItem.getEndFont()public void setEndFont(java.awt.Font font)
VisualItemsetEndFont in interface VisualItemfont - the ending font valueVisualItem.setEndFont(java.awt.Font)public double getDOI()
VisualItemgetDOI in interface VisualItemVisualItem.getDOI()public void setDOI(double doi)
VisualItemsetDOI in interface VisualItemdoi - the DOI value of this itemVisualItem.setDOI(double)