📄 visualtable.java
字号:
/**
* Set the starting fill color of the row. The stroke color is used to
* fill the interior of shapes. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with a zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row to set
* @param color the starting fill color, represented as an integer
* @see prefuse.util.ColorLib
*/
public void setStartFillColor(int row, int color) {
setInt(row, VisualItem.STARTFILLCOLOR, color);
}
/**
* Get the ending fill color of the row. The fill color is used to
* fill the interior of shapes. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row
* @return the ending fill color, represented as an integer
* @see prefuse.util.ColorLib
*/
public int getEndFillColor(int row) {
return getInt(row, VisualItem.ENDFILLCOLOR);
}
/**
* Set the ending fill color of the row. The stroke color is used to
* fill the interior of shapes. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with a zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row to set
* @param color the ending fill color, represented as an integer
* @see prefuse.util.ColorLib
*/
public void setEndFillColor(int row, int color) {
setInt(row, VisualItem.ENDFILLCOLOR, color);
}
/**
* Get the current text color of the row. The text color is used to
* draw text strings for the item. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row
* @return the current text color, represented as an integer
* @see prefuse.util.ColorLib
*/
public int getTextColor(int row) {
return getInt(row, VisualItem.TEXTCOLOR);
}
/**
* Set the current text color of the row. The text color is used to
* draw text strings for the item. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with a zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row to set
* @param color the current text color, represented as an integer
* @see prefuse.util.ColorLib
*/
public void setTextColor(int row, int color) {
setInt(row, VisualItem.TEXTCOLOR, color);
}
/**
* Get the starting text color of the row. The text color is used to
* draw text strings for the item. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row
* @return the starting text color, represented as an integer
* @see prefuse.util.ColorLib
*/
public int getStartTextColor(int row) {
return getInt(row, VisualItem.STARTTEXTCOLOR);
}
/**
* Set the starting text color of the row. The text color is used to
* draw text strings for the item. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with a zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row to set
* @param color the starting text color, represented as an integer
* @see prefuse.util.ColorLib
*/
public void setStartTextColor(int row, int color) {
setInt(row, VisualItem.STARTTEXTCOLOR, color);
}
/**
* Get the ending text color of the row. The text color is used to
* draw text strings for the item. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row
* @return the ending text color, represented as an integer
* @see prefuse.util.ColorLib
*/
public int getEndTextColor(int row) {
return getInt(row, VisualItem.ENDTEXTCOLOR);
}
/**
* Set the ending text color of the row. The text color is used to
* draw text strings for the item. Color values as represented as an
* integer containing the red, green, blue, and alpha (transparency)
* color channels. A color with a zero alpha component is fully
* transparent and will not be drawn.
* @param row the table row to set
* @param color the ending text color, represented as an integer
* @see prefuse.util.ColorLib
*/
public void setEndTextColor(int row, int color) {
setInt(row, VisualItem.ENDTEXTCOLOR, color);
}
// ------------------------------------------------------------------------
/**
* Get the current size value of the row. Size values are typically used
* to scale an item, either in one-dimension (e.g., a bar chart length) or
* two-dimensions (e.g., using pixel area to encode a quantitative value).
* @param row the table row
* @return the current size value
*/
public double getSize(int row) {
return getDouble(row, VisualItem.SIZE);
}
/**
* Set the current size value of the row. Size values are typically used
* to scale an item, either in one-dimension (e.g., a bar chart length) or
* two-dimensions (e.g., using pixel area to encode a quantitative value).
* @param row the table row to set
* @param size the current size value
*/
public void setSize(int row, double size) {
setDouble(row, VisualItem.SIZE, size);
}
/**
* Get the starting size value of the row. Size values are typically used
* to scale an item, either in one-dimension (e.g., a bar chart length) or
* two-dimensions (e.g., using pixel area to encode a quantitative value).
* @param row the table row
* @return the starting size value
*/
public double getStartSize(int row) {
return getDouble(row, VisualItem.STARTSIZE);
}
/**
* Set the starting size value of the row. Size values are typically used
* to scale an item, either in one-dimension (e.g., a bar chart length) or
* two-dimensions (e.g., using pixel area to encode a quantitative value).
* @param row the table row to set
* @param size the starting size value
*/
public void setStartSize(int row, double size) {
setDouble(row, VisualItem.STARTSIZE, size);
}
/**
* Get the ending size value of the row. Size values are typically used
* to scale an item, either in one-dimension (e.g., a bar chart length) or
* two-dimensions (e.g., using pixel area to encode a quantitative value).
* @param row the table row
* @return the ending size value
*/
public double getEndSize(int row) {
return getDouble(row, VisualItem.ENDSIZE);
}
/**
* Set the ending size value of the row. Size values are typically used
* to scale an item, either in one-dimension (e.g., a bar chart length) or
* two-dimensions (e.g., using pixel area to encode a quantitative value).
* @param row the table row to set
* @param size the ending size value
*/
public void setEndSize(int row, double size) {
setDouble(row, VisualItem.ENDSIZE, size);
}
// ------------------------------------------------------------------------
/**
* Get the current shape value of the row. One of the SHAPE constants
* included in the {@link prefuse.Constants} class. This value only has an
* effect if a Renderer that supports different shapes is used
* (e.g., {@link prefuse.render.ShapeRenderer}.
* @param row the table row
* @return the current shape value
*/
public int getShape(int row) {
return getInt(row, VisualItem.SHAPE);
}
/**
* Set the current shape value of the row. One of the SHAPE constants
* included in the {@link prefuse.Constants} class. This value only has an
* effect if a Renderer that supports different shapes is used
* (e.g., {@link prefuse.render.ShapeRenderer}.
* @param row the table row to set
* @param shape the shape value to use
*/
public void setShape(int row, int shape) {
setInt(row, VisualItem.SHAPE, shape);
}
// ------------------------------------------------------------------------
/**
* Get the current stroke used to draw lines and shape outlines for the
* item at the given row.
* @return the stroke used to draw lines and shape outlines
*/
public BasicStroke getStroke(int row) {
return (BasicStroke)get(row, VisualItem.STROKE);
}
/**
* Set the current stroke used to draw lines and shape outlines.
* @param stroke the stroke to use to draw lines and shape outlines
*/
public void setStroke(int row, BasicStroke stroke) {
set(row, VisualItem.STROKE, stroke);
}
// ------------------------------------------------------------------------
/**
* Get the current font for the row. The font is used as the default
* typeface for drawing text for this item.
* @param row the table row
* @return the current font value
*/
public Font getFont(int row) {
return (Font)get(row, VisualItem.FONT);
}
/**
* Set the current font for the the row. The font is used as the default
* typeface for drawing text for this item.
* @param row the table row to set
* @param font the current font value
*/
public void setFont(int row, Font font) {
set(row, VisualItem.FONT, font);
}
/**
* Get the starting font for the row. The font is used as the default
* typeface for drawing text for this item.
* @param row the table row
* @return the starting font value
*/
public Font getStartFont(int row) {
return (Font)get(row, VisualItem.STARTFONT);
}
/**
* Set the starting font for the row. The font is used as the default
* typeface for drawing text for this item.
* @param row the table row to set
* @param font the starting font value
*/
public void setStartFont(int row, Font font) {
set(row, VisualItem.STARTFONT, font);
}
/**
* Get the ending font for the row. The font is used as the default
* typeface for drawing text for this item.
* @param row the table row
* @return the ending font value
*/
public Font getEndFont(int row) {
return (Font)get(row, VisualItem.ENDFONT);
}
/**
* Set the ending font for the row. The font is used as the default
* typeface for drawing text for this item.
* @param row the table row to set
* @param font the ending font value
*/
public void setEndFont(int row, Font font) {
set(row, VisualItem.ENDFONT, font);
}
// ------------------------------------------------------------------------
/**
* Get the degree-of-interest (DOI) value. The degree-of-interet is an
* optional value that can be used to sort items by importance, control
* item visibility, or influence particular visual encodings. A common
* example is to use the DOI to store the graph distance of a node from
* the nearest selected focus node.
* @param row the table row
* @return the DOI value of this item
*/
public double getDOI(int row) {
return getDouble(row, VisualItem.DOI);
}
/**
* Set the degree-of-interest (DOI) value. The degree-of-interet is an
* optional value that can be used to sort items by importance, control
* item visibility, or influence particular visual encodings. A common
* example is to use the DOI to store the graph distance of a node from
* the nearest selected focus node.
* @param row the table row to set
* @param doi the DOI value of this item
*/
public void setDOI(int row, double doi) {
setDouble(row, VisualItem.DOI, doi);
}
} // end of class VisualTable
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -