|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.utils.ChangeManager infovis.column.AbstractColumn infovis.column.ColumnProxy infovis.table.TableProxy infovis.visualization.DefaultVisualization infovis.visualization.StrokingVisualization infovis.visualization.ruler.RulerVisualization
public class RulerVisualization
Display rulers under a Visualization.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent |
---|
LabeledComponent.LabeledItem |
Field Summary | |
---|---|
static String |
PROPERTY_VISIBLE
Property name for the visible field. |
Fields inherited from class infovis.visualization.StrokingVisualization |
---|
PROPERTY_SHOW_EXCENTRIC |
Fields inherited from class infovis.column.AbstractColumn |
---|
MODIFIED_ALL, MODIFIED_NONE |
Fields inherited from interface infovis.Visualization |
---|
PROPERTY_INTERACTOR, PROPERTY_ITEM_RENDERER, PROPERTY_LAYOUT, PROPERTY_ORIENTATION, PROPERTY_PARENT, PROPERTY_PERMUTATION, PROPERTY_RULERS, VC_DESCRIPTOR_PROPERTY_PREFIX, VISUAL_ALPHA, VISUAL_COLOR, VISUAL_FILTER, VISUAL_HOVER, VISUAL_LABEL, VISUAL_SELECTION, VISUAL_SHAPE, VISUAL_SIZE |
Fields inherited from interface infovis.visualization.Orientable |
---|
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2 |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface infovis.Table |
---|
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN |
Fields inherited from interface infovis.metadata.Constants |
---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Constructor Summary | |
---|---|
RulerVisualization(Visualization vis)
Create a ruler visualization for a specified visualization. |
Method Summary | |
---|---|
void |
computeShapes(Rectangle2D bounds,
Visualization vis)
Computes the layout. |
static RulerVisualization |
find(Visualization vis)
Returns a RulerVisualization associated with a visualialization or create it if it doesn't exist. |
Layout |
getLayout()
Returns the layout object managed by this visualization or null if the visualization computes the layout by itself. |
String |
getName()
Returns the column name. |
Dimension |
getPreferredSize(Visualization vis)
Computes and return the preferred size for this layout and this visualization. |
void |
invalidate(Visualization vis)
Invalidate the cached state of the layout. |
boolean |
isVisible()
Returns true if the rule is visible. |
void |
paint(Graphics2D graphics,
Rectangle2D bounds)
Method for painting the visualization. |
void |
propertyChange(PropertyChangeEvent evt)
|
void |
setVisible(boolean visible)
Sets the visibility field. |
void |
validateShapes(Rectangle2D bounds)
Checks whether the shapes should be recomputed and call updateShapes then. |
Methods inherited from class infovis.visualization.StrokingVisualization |
---|
createLabelItem, isShowExcentric, pickAll, setShowExcentric |
Methods inherited from class infovis.table.TableProxy |
---|
addColumn, addTableModelListener, clear, getColumn, getColumnAt, getColumnClass, getColumnCount, getColumnName, getLastRow, getValueAt, indexOf, indexOf, isCellEditable, isRowValid, removeColumn, removeTableModelListener, setColumnAt, setValueAt |
Methods inherited from class infovis.column.ColumnProxy |
---|
addValue, addValueOrNull, capacity, compare, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
Methods inherited from class infovis.column.AbstractColumn |
---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
Methods inherited from class infovis.utils.ChangeManager |
---|
disableNotify, enableNotify, getModCount, removeChangeListener |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface infovis.Column |
---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
Methods inherited from interface infovis.Metadata |
---|
getClientProperty, getMetadata |
Methods inherited from interface cern.colt.function.IntComparator |
---|
compare, equals |
Field Detail |
---|
public static final String PROPERTY_VISIBLE
Constructor Detail |
---|
public RulerVisualization(Visualization vis)
vis
- the visualization.Method Detail |
---|
public Layout getLayout()
getLayout
in class DefaultVisualization
public void validateShapes(Rectangle2D bounds)
validateShapes
in interface Visualization
validateShapes
in class DefaultVisualization
bounds
- the Visualization bounds.public void computeShapes(Rectangle2D bounds, Visualization vis)
computeShapes
in interface Layout
bounds
- the allocated bounds of the
visualization.vis
- the visualization.public void paint(Graphics2D graphics, Rectangle2D bounds)
paint
in interface Visualization
paint
in class DefaultVisualization
graphics
- the graphics.bounds
- the bounding box of the visualization.public Dimension getPreferredSize(Visualization vis)
getPreferredSize
in interface Layout
vis
- the visualization
public String getName()
getName
in interface Column
getName
in interface Layout
getName
in class ColumnProxy
public void invalidate(Visualization vis)
Call this method from the visualization when it gets invalidated.
invalidate
in interface Layout
vis
- the visualization.public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public static RulerVisualization find(Visualization vis)
vis
- the visualization.
public boolean isVisible()
public void setVisible(boolean visible)
visible
- new value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |