public final class ArrayVisualizer extends Object
Constructor and Description |
---|
ArrayVisualizer() |
Modifier and Type | Method and Description |
---|---|
boolean |
analysisEnabled() |
int |
antiqCompare(int left,
int right) |
boolean |
colorEnabled() |
void |
createVolatileImage() |
int |
currentHeight() |
int |
currentWidth() |
int |
currentX() |
int |
currentY() |
boolean |
distanceEnabled()
Deprecated.
No longer does anything (always returns
false ) |
boolean |
doingStabilityCheck() |
boolean |
enableBenchmarking(boolean enabled) |
void |
endSort() |
boolean |
externalArraysEnabled() |
void |
finishAntiQSort(String name) |
void |
forceVisualUpdate(int count) |
String |
formatTimes() |
boolean |
generateSortingNetworks() |
int[] |
getArray() |
io.github.arrayv.frames.ArrayFrame |
getArrayFrame() |
ArrayManager |
getArrayManager() |
ArrayList<int[]> |
getArrays() |
String |
getCategory() |
int |
getCurrentGap() |
int |
getCurrentLength() |
Stroke |
getCustomStroke(double size) |
Stroke |
getDefaultStroke() |
Delays |
getDelays() |
String |
getExtraHeading() |
Graphics2D |
getExtraRender() |
String |
getHeading() |
Color |
getHighlightColor() |
Highlights |
getHighlights() |
int[] |
getIndexTable() |
int |
getIndexValue(int n) |
static ArrayVisualizer |
getInstance() |
int |
getLogBaseNOfLength(int base) |
int |
getLogBaseTwoOfLength() |
Graphics2D |
getMainRender() |
JFrame |
getMainWindow() |
int |
getMaximumLength() |
static int |
getMaxLengthPower() |
int |
getMinimumLength() |
DecimalFormat |
getNumberFormat() |
Reads |
getReads() |
Renderer |
getRender() |
ScriptManager |
getScriptManager() |
SortAnalyzer |
getSortAnalyzer() |
Thread |
getSortingThread() |
SortInfo[] |
getSorts() |
Sounds |
getSounds() |
int[] |
getStabilityTable() |
int |
getStabilityValue(int n) |
Stroke |
getThickStroke() |
Stroke |
getThinStroke() |
Timer |
getTimer() |
int |
getUniqueItems() |
io.github.arrayv.frames.UtilFrame |
getUtilFrame() |
int[] |
getValidationArray() |
io.github.arrayv.visuals.Visual[] |
getVisuals() |
io.github.arrayv.visuals.VisualStyles |
getVisualStyles() |
JFrame |
getWindow() |
double |
getWindowRatio() |
Writes |
getWrites() |
int |
halfCircle() |
void |
initAntiQSort() |
boolean |
isActive() |
boolean |
isDisabledStabilityCheck() |
boolean |
isSorted() |
boolean |
linesEnabled() |
static void |
main(String[] args) |
boolean |
pixelsEnabled()
Deprecated.
No longer does anything (always returns
false ) |
boolean |
pointerActive()
Deprecated.
No longer does anything (always returns
false ) |
boolean |
rainbowEnabled()
Deprecated.
No longer does anything (always returns
false ) |
void |
refreshSorts() |
void |
renderBackground() |
void |
repositionFrames() |
void |
resetAllStatistics() |
void |
resetIndexTable() |
void |
resetMainStroke() |
void |
resetStabilityTable() |
boolean |
reversedComparator() |
void |
runSortingThread() |
void |
setCanceled(boolean canceled) |
void |
setCategory(String text) |
void |
setComparator(int comparator) |
void |
setCurrentGap(int gap) |
void |
setCurrentLength(int newLength) |
void |
setExtraHeading(String text) |
void |
setExtraRender() |
void |
setHeading(String text) |
void |
setIndexTable() |
void |
setMainRender() |
void |
setSortingThread(Thread thread) |
void |
setUniqueItems(int newCount) |
void |
setVisual(io.github.arrayv.visuals.VisualStyles choice) |
void |
setWindowHeight() |
void |
setWindowWidth() |
boolean |
shuffleEnabled() |
boolean |
sortCanceled() |
boolean |
spiralEnabled()
Deprecated.
No longer does anything (always returns
false ) |
void |
toggleAnalysis(boolean highlightAsAnalysis) |
void |
toggleColor(boolean showColor) |
void |
toggleDistance(boolean unused)
Deprecated.
No longer does anything
|
void |
toggleExternalArrays(boolean showExternalArrays) |
void |
toggleLinkedDots(boolean showLines) |
void |
togglePixels(boolean usePixels)
Deprecated.
No longer does anything
|
void |
togglePointer(boolean showPointer)
Deprecated.
No longer does anything
|
void |
toggleRainbow(boolean rainbow)
Deprecated.
No longer does anything
|
void |
toggleShuffleAnimation(boolean showShuffleAnimation) |
void |
toggleSpiral(boolean spiral)
Deprecated.
No longer does anything
|
void |
toggleStatistics(boolean showStatistics) |
void |
toggleVisualUpdates(boolean bool)
Deprecated.
This method no longer does anything!
|
void |
toggleWave(boolean useWave)
Deprecated.
No longer does anything
|
void |
updateCoordinates() |
void |
updateDimensions() |
void |
updateFontSize() |
void |
updateNow() |
void |
updateNow(int fallback) |
void |
updateVisuals() |
boolean |
useAntiQSort() |
void |
verifySortAndSweep() |
boolean |
waveEnabled()
Deprecated.
No longer does anything (always returns
false ) |
int |
windowHalfHeight() |
int |
windowHalfWidth() |
int |
windowHeight() |
int |
windowWidth() |
int |
windowXCoordinate() |
int |
windowYCoordinate() |
public ArrayVisualizer() throws IOException
IOException
public static ArrayVisualizer getInstance()
public JFrame getWindow()
public void refreshSorts()
public void updateNow()
public void updateNow(int fallback)
@Deprecated public void toggleVisualUpdates(boolean bool)
public void forceVisualUpdate(int count)
public boolean enableBenchmarking(boolean enabled)
public int[] getValidationArray()
public int getStabilityValue(int n)
public int[] getStabilityTable()
public void resetStabilityTable()
public int getIndexValue(int n)
public int[] getIndexTable()
public void setIndexTable()
public void resetIndexTable()
public boolean isSorted()
public int[] getArray()
public ArrayList<int[]> getArrays()
public ArrayManager getArrayManager()
public SortAnalyzer getSortAnalyzer()
public Delays getDelays()
public Highlights getHighlights()
public Reads getReads()
public Renderer getRender()
public Sounds getSounds()
public Timer getTimer()
public io.github.arrayv.visuals.VisualStyles getVisualStyles()
public Writes getWrites()
public ScriptManager getScriptManager()
public io.github.arrayv.visuals.Visual[] getVisuals()
public io.github.arrayv.frames.UtilFrame getUtilFrame()
public io.github.arrayv.frames.ArrayFrame getArrayFrame()
public SortInfo[] getSorts()
public Thread getSortingThread()
public void setSortingThread(Thread thread)
public void runSortingThread()
public int getMinimumLength()
public int getMaximumLength()
public void resetAllStatistics()
public boolean isActive()
public void setComparator(int comparator)
public boolean generateSortingNetworks()
public boolean useAntiQSort()
public void initAntiQSort()
public void finishAntiQSort(String name)
public int antiqCompare(int left, int right)
public boolean doingStabilityCheck()
public boolean reversedComparator()
public int getCurrentLength()
public void setCurrentLength(int newLength)
public void setUniqueItems(int newCount)
public int getUniqueItems()
public int getLogBaseNOfLength(int base)
public int getLogBaseTwoOfLength()
public boolean shuffleEnabled()
public void toggleShuffleAnimation(boolean showShuffleAnimation)
public String getCategory()
public String getHeading()
public String getExtraHeading()
public void setHeading(String text)
public void setCategory(String text)
public void setExtraHeading(String text)
@Deprecated public boolean pointerActive()
false
)false
public JFrame getMainWindow()
public void setWindowHeight()
public void setWindowWidth()
public int currentHeight()
public int currentWidth()
public int currentX()
public int currentY()
public int windowHeight()
public int windowWidth()
public int windowHalfHeight()
public int windowHalfWidth()
public int windowXCoordinate()
public int windowYCoordinate()
public Color getHighlightColor()
public void createVolatileImage()
public Stroke getThickStroke()
public Stroke getDefaultStroke()
public Stroke getThinStroke()
public Stroke getCustomStroke(double size)
public Graphics2D getMainRender()
public Graphics2D getExtraRender()
public void setMainRender()
public void setExtraRender()
public void updateVisuals()
public void resetMainStroke()
public void renderBackground()
public void updateCoordinates()
public void updateDimensions()
public double getWindowRatio()
public void updateFontSize()
public void toggleAnalysis(boolean highlightAsAnalysis)
public boolean analysisEnabled()
public int halfCircle()
public void verifySortAndSweep()
public String formatTimes()
public void endSort()
@Deprecated public void togglePointer(boolean showPointer)
@Deprecated public void toggleDistance(boolean unused)
@Deprecated public void togglePixels(boolean usePixels)
@Deprecated public void toggleRainbow(boolean rainbow)
@Deprecated public void toggleSpiral(boolean spiral)
public void toggleLinkedDots(boolean showLines)
public void toggleStatistics(boolean showStatistics)
public void toggleColor(boolean showColor)
@Deprecated public void toggleWave(boolean useWave)
public void toggleExternalArrays(boolean showExternalArrays)
public void setVisual(io.github.arrayv.visuals.VisualStyles choice)
public int getCurrentGap()
public void setCurrentGap(int gap)
public boolean sortCanceled()
public void setCanceled(boolean canceled)
public void repositionFrames()
@Deprecated public boolean rainbowEnabled()
false
)false
public boolean colorEnabled()
@Deprecated public boolean spiralEnabled()
false
)false
@Deprecated public boolean distanceEnabled()
false
)false
@Deprecated public boolean pixelsEnabled()
false
)false
public boolean linesEnabled()
@Deprecated public boolean waveEnabled()
false
)false
public boolean externalArraysEnabled()
public DecimalFormat getNumberFormat()
public boolean isDisabledStabilityCheck()
public static int getMaxLengthPower()
public static void main(String[] args) throws IOException
IOException
Copyright © 2024. All rights reserved.