Class SS_EditorClientProperties
java.lang.Object
org.jjazz.ss_editor.api.SS_EditorClientProperties
The Song client properties used by a SS_Editor and its components.
It is the responsibility of the object which updates one of these client properties to call Song.setSaveNeeded(boolean) if
needed.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringSong client (String) property: the visible rhythm parameters in compact view mode for a given rhythm.static final StringSong client (String) property: current view mode.static final StringSong client (String) property: zoom X factorstatic final StringSong client (String) property: zoom Y factor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RhythmParameter<?>> getCompactViewModeVisibleRPs(Song song, Rhythm r) Get the list of visible RPs in compact view mode for the specified rhythm.static StringReturn the rhythmId if propName is a PROP_COMPACT_VIEW_MODE_VISIBLE_RPS-based name.getViewMode(Song song) static intgetZoomXFactor(Song song) static intgetZoomYFactor(Song song) static voidsetCompactViewModeVisibleRPs(Song song, Rhythm r, List<RhythmParameter<?>> rps) Set the list of visible RPs in compact view mode for the specified rhythm.static voidsetViewMode(Song song, SS_EditorClientProperties.ViewMode mode) static voidsetZoomXFactor(Song song, int factor) static voidsetZoomYFactor(Song song, int factor)
-
Field Details
-
PROP_VIEW_MODE
Song client (String) property: current view mode.(as String) oldValue=old mode, newValue=new mode.
- See Also:
-
PROP_COMPACT_VIEW_MODE_VISIBLE_RPS
Song client (String) property: the visible rhythm parameters in compact view mode for a given rhythm.This is the base name used to build the rhythm-specific property name.
(as String) oldValue=list of visible RPs, newValue=new list of visible RPs
- See Also:
-
PROP_ZOOM_FACTOR_X
Song client (String) property: zoom X factor(as String) oldValue=old int, newValue=new int
- See Also:
-
PROP_ZOOM_FACTOR_Y
Song client (String) property: zoom Y factor(as String) oldValue=old int, newValue=new int
- See Also:
-
-
Constructor Details
-
SS_EditorClientProperties
public SS_EditorClientProperties()
-
-
Method Details
-
getViewMode
- Parameters:
song-- Returns:
- COMPACT by default
- See Also:
-
setViewMode
- Parameters:
song-mode-- See Also:
-
getCompactViewModeVisibleRPs
Get the list of visible RPs in compact view mode for the specified rhythm.- Parameters:
song-r-- Returns:
- Can be empty
- See Also:
-
setCompactViewModeVisibleRPs
Set the list of visible RPs in compact view mode for the specified rhythm.- Parameters:
song-r-rps- Can not be null- See Also:
-
getRhythmIdFromCompactViewRhythmPropertyName
-
getZoomXFactor
- Parameters:
song-- Returns:
- 50 by default
- See Also:
-
setZoomXFactor
- Parameters:
song-factor- [0;100]- See Also:
-
getZoomYFactor
- Parameters:
song-- Returns:
- 50 by default
- See Also:
-
setZoomYFactor
- Parameters:
song-factor- [0;100]- See Also:
-