Skip to main content

Class JtvColorIndex

public class JtvColorIndex

Stores the per-group selected-item indices for a JtvColorDialog.

TColorIndex is a data transfer object used by JtvColorDialog to save and restore the focused item within each colour group. This allows the dialog to remember which palette entry was last selected in each group across successive opens.

The arrays are pre-allocated to a generous upper bound (256 groups); only the first colorSize entries are valid.

org.viktor44.jtvision.dialogs.JtvColorIndex

Summary​

Constructors​

VisibilitySignature
publicJtvColorIndex()

Fields​

ModifiersField nameType
protectedgroupIndexint
protectedcolorSizeint
protectedcolorIndexint[]

Constructors​

JtvColorIndex()​

No method description provided

Fields​

int groupIndex​

The index of the most recently active colour group.

int colorSize​

The number of valid entries in colorIndex.

int[] colorIndex​

Per-group focused-item indices. Entry i holds the index of the focused JtvColorItem within group i.