Package uk.ac.starlink.topcat
Class TopcatEvent
java.lang.Object
uk.ac.starlink.topcat.TopcatEvent
Describes an event which a
TopcatListener
may be interested in.- Since:
- 27 Oct 2005
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Code indicating that the model's activator has changed.static final int
Code indicating that a column has been highlighted or selected in some relevant way.static final int
Code indicating change in current sort sequence.static final int
Code indicating change in current RowSubset.static final int
Code indicating that the model's label has changed.static final int
Code indicating that one of the model's parameter values has changed.static final int
Code indicating that the model's parameter list has changed.static final int
Code indicating that a row has been highlighted.static final int
Code indicating that a given RowSubset should be made visible. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LABEL
public static final int LABELCode indicating that the model's label has changed.- See Also:
-
ACTIVATOR
public static final int ACTIVATORCode indicating that the model's activator has changed.- See Also:
-
PARAMETERS
public static final int PARAMETERSCode indicating that the model's parameter list has changed.- See Also:
-
PARAMETER_VALUE
public static final int PARAMETER_VALUECode indicating that one of the model's parameter values has changed.- See Also:
-
CURRENT_SUBSET
public static final int CURRENT_SUBSETCode indicating change in current RowSubset.- See Also:
-
CURRENT_ORDER
public static final int CURRENT_ORDERCode indicating change in current sort sequence.- See Also:
-
ROW
public static final int ROWCode indicating that a row has been highlighted. The datum is aLong
giving the highlighted row, or null if activation status is being cleared.- See Also:
-
COLUMN
public static final int COLUMNCode indicating that a column has been highlighted or selected in some relevant way. The datum is the relevantStarTableColumn
.- See Also:
-
SHOW_SUBSET
public static final int SHOW_SUBSETCode indicating that a given RowSubset should be made visible. The subset may also have changed its content, so a replot may be in order. The datum is the relevantRowSubset
.- See Also:
-
-
Constructor Details
-
TopcatEvent
Constructor.- Parameters:
model
- the model which generated this eventcode
- one of the numeric codes defined in this class which describes the nature of the eventdatum
- optional datum giving additional information - this is code-specfic and may be null
-
-
Method Details
-
getModel
Gets the model from which this event originated.- Returns:
- topcat model
-
getCode
public int getCode()Gets the numeric code which specifies the type of this event. The value is one of the static final constants defined in this class.- Returns:
- event type code
-
getDatum
Gets an additional object further specifying the nature of the event. The value is code-specific, and may be null.- Returns:
- additional event characterisation object
-