📄 visualitem.java
字号:
* 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 size the starting size value
* @see #STARTSIZE
*/
public void setStartSize(double size);
/**
* Get the ending size value of the item. 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).
* @return the ending size value
* @see #ENDSIZE
*/
public double getEndSize();
/**
* Set the ending size value of the item. 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 size the ending size value
* @see #ENDSIZE
*/
public void setEndSize(double size);
// ------------------------------------------------------------------------
/**
* Get the current shape value of the item. 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}.
* @return the current shape value
* @see #SHAPE
*/
public int getShape();
/**
* Set the current shape value of the item. 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 shape the shape value to use
* @see #SHAPE
*/
public void setShape(int shape);
// ------------------------------------------------------------------------
/**
* Get the current stroke used to draw lines and shape outlines.
* @return the stroke used to draw lines and shape outlines
*/
public BasicStroke getStroke();
/**
* 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(BasicStroke stroke);
// ------------------------------------------------------------------------
/**
* Get the current font for the item. The font is used as the default
* typeface for drawing text for this item.
* @return the current font value
* @see #FONT
*/
public Font getFont();
/**
* Set the current font for the item. The font is used as the default
* typeface for drawing text for this item.
* @param font the current font value
* @see #FONT
*/
public void setFont(Font font);
/**
* Get the starting font for the item. The font is used as the default
* typeface for drawing text for this item.
* @return the starting font value
* @see #STARTFONT
*/
public Font getStartFont();
/**
* Set the starting font for the item. The font is used as the default
* typeface for drawing text for this item.
* @param font the starting font value
* @see #STARTFONT
*/
public void setStartFont(Font font);
/**
* Get the ending font for the item. The font is used as the default
* typeface for drawing text for this item.
* @return the ending font value
* @see #ENDFONT
*/
public Font getEndFont();
/**
* Set the ending font for the item. The font is used as the default
* typeface for drawing text for this item.
* @param font the ending font value
* @see #ENDFONT
*/
public void setEndFont(Font 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.
* @return the DOI value of this item
* @see #DOI
*/
public double getDOI();
/**
* 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 doi the DOI value of this item
* @see #DOI
*/
public void setDOI(double doi);
// ------------------------------------------------------------------------
// VisualItem Base Schema
/** The validated data field */
public static final String VALIDATED
= PrefuseLib.FIELD_PREFIX+"validated";
/** The visible data field */
public static final String VISIBLE
= PrefuseLib.FIELD_PREFIX+"visible";
/** The start visible data field */
public static final String STARTVISIBLE
= PrefuseLib.getStartField(VISIBLE);
/** The end visible data field */
public static final String ENDVISIBLE
= PrefuseLib.getEndField(VISIBLE);
/** The interactive data field */
public static final String INTERACTIVE
= PrefuseLib.FIELD_PREFIX+"interactive";
/** The expanded data field */
public static final String EXPANDED
= PrefuseLib.FIELD_PREFIX+"expanded";
/** The fixed data field */
public static final String FIXED
= PrefuseLib.FIELD_PREFIX+"fixed";
/** The highlight data field */
public static final String HIGHLIGHT
= PrefuseLib.FIELD_PREFIX+"highlight";
/** The hover data field */
public static final String HOVER
= PrefuseLib.FIELD_PREFIX+"hover";
/** The x data field */
public static final String X
= PrefuseLib.FIELD_PREFIX+"x";
/** The y data field */
public static final String Y
= PrefuseLib.FIELD_PREFIX+"y";
/** The start x data field */
public static final String STARTX
= PrefuseLib.getStartField(X);
/** The start y data field */
public static final String STARTY
= PrefuseLib.getStartField(Y);
/** The end x data field */
public static final String ENDX
= PrefuseLib.getEndField(X);
/** The end y data field */
public static final String ENDY
= PrefuseLib.getEndField(Y);
/** The bounds data field */
public static final String BOUNDS
= PrefuseLib.FIELD_PREFIX+"bounds";
/** The stroke color data field */
public static final String STROKECOLOR
= PrefuseLib.FIELD_PREFIX+"strokeColor";
/** The start stroke color data field */
public static final String STARTSTROKECOLOR
= PrefuseLib.getStartField(STROKECOLOR);
/** The end stroke color data field */
public static final String ENDSTROKECOLOR
= PrefuseLib.getEndField(STROKECOLOR);
/** The fill color data field */
public static final String FILLCOLOR
= PrefuseLib.FIELD_PREFIX+"fillColor";
/** The start fill color data field */
public static final String STARTFILLCOLOR
= PrefuseLib.getStartField(FILLCOLOR);
/** The end fill color data field */
public static final String ENDFILLCOLOR
= PrefuseLib.getEndField(FILLCOLOR);
/** The text color data field */
public static final String TEXTCOLOR
= PrefuseLib.FIELD_PREFIX+"textColor";
/** The start text color data field */
public static final String STARTTEXTCOLOR
= PrefuseLib.getStartField(TEXTCOLOR);
/** The end text color data field */
public static final String ENDTEXTCOLOR
= PrefuseLib.getEndField(TEXTCOLOR);
/** The size data field */
public static final String SIZE
= PrefuseLib.FIELD_PREFIX+"size";
/** The start size data field */
public static final String STARTSIZE
= PrefuseLib.getStartField(SIZE);
/** The end size data field */
public static final String ENDSIZE
= PrefuseLib.getEndField(SIZE);
/** The shape data field */
public static final String SHAPE
= PrefuseLib.FIELD_PREFIX+"shape";
/** The stroke data field */
public static final String STROKE
= PrefuseLib.FIELD_PREFIX+"stroke";
/** The font data field */
public static final String FONT
= PrefuseLib.FIELD_PREFIX+"font";
/** The start font data field */
public static final String STARTFONT
= PrefuseLib.getStartField(FONT);
/** The end font data field */
public static final String ENDFONT
= PrefuseLib.getEndField(FONT);
/** The doi data field */
public static final String DOI
= PrefuseLib.FIELD_PREFIX+"doi";
/** A permanent, locked copy of the base VisualItem schema */
public static final Schema SCHEMA
= PrefuseLib.getVisualItemSchema().lockSchema();
/**
* The column index of the validated data field. This should be safe to do
* because a unique (non-inherited) validated field is required of all
* VisualItems, and should always be the first field included.
*/
public static final int IDX_VALIDATED
= SCHEMA.getColumnIndex(VALIDATED);
// ------------------------------------------------------------------------
// VisualItem Extended Schema
/** The label data field.
* Not included in the VisualItem schema by default */
public static final String LABEL
= PrefuseLib.FIELD_PREFIX+"label";
/** The value data field.
* Not included in the VisualItem schema by default */
public static final String VALUE
= PrefuseLib.FIELD_PREFIX+"value";
/** The polygon data field.
* Not included in the VisualItem schema by default */
public static final String POLYGON
= PrefuseLib.FIELD_PREFIX+"polygon";
/** The start polygon data field.
* Not included in the VisualItem schema by default */
public static final String STARTPOLYGON
= PrefuseLib.getStartField(POLYGON);
/** The end polygon data field.
* Not included in the VisualItem schema by default */
public static final String ENDPOLYGON
= PrefuseLib.getEndField(POLYGON);
/** The x2 data field.
* Not included in the VisualItem schema by default */
public static final String X2
= PrefuseLib.FIELD_PREFIX+"x2";
/** The y2 data field.
* Not included in the VisualItem schema by default */
public static final String Y2
= PrefuseLib.FIELD_PREFIX+"y2";
/** The start x2 data field.
* Not included in the VisualItem schema by default */
public static final String STARTX2
= PrefuseLib.getStartField(X2);
/** The start y2 data field.
* Not included in the VisualItem schema by default */
public static final String STARTY2
= PrefuseLib.getStartField(Y2);
/** The end x2 data field.
* Not included in the VisualItem schema by default */
public static final String ENDX2
= PrefuseLib.getEndField(X2);
/** The end y2 data field.
* Not included in the VisualItem schema by default */
public static final String ENDY2
= PrefuseLib.getEndField(Y2);
} // end of interface VisualItem
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -