-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
112 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
A HTTPIconFetcher is an abstract class which implements the interface of all fetchers that require http protocols to fetch icons from the web. | ||
|
||
Instance Variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
An IconButton is a SimpleButtonMorph with almost the same functionality as specified in the ToolBuilder. Different to the SimpleButtonMorph it has an IconMorph instead of a TextLabel as a submorph. | ||
|
||
Instance Variables | ||
iconMorph: <IconMorph> | ||
|
||
iconMorph | ||
- the IconMorph displayed within the IconButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
An IconFetchStrategy is the Strategy interface for every implemented fetcher. It is an abstract class which distributes the handling of fetcher functionality to the different specific fetchers. | ||
|
||
Instance Variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
An IconIconsFetcher is the concrete fetcher for the Icon-Icons library. | ||
|
||
Instance Variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
An IconMorph is the main morph of iconAPI. | ||
|
||
Instance Variables | ||
aspectRatio: <Point> | ||
fetcher: <IconFetchStrategy> | ||
iconColor: <Color> | ||
isIconColorSet: <Boolean> | ||
originalForm: <Form> | ||
scaledForm: <Form> | ||
|
||
aspectRatio | ||
- determines the width to height ratio of the icon | ||
|
||
fetcher | ||
- is the specific fetcher used to fetch the IconMorph, default is MaterialIcons | ||
|
||
iconColor | ||
- determines the color of the icon | ||
|
||
isIconColorSet | ||
- boolean which is false, when the original icon color was used and true when it got changed manually | ||
|
||
originalForm | ||
- is the icon form we get when fetching the icon (the 'reference icon') | ||
|
||
scaledForm | ||
- is the icon form we get after scaling (the icon as it is displayed) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
An IconPreviewList shows a list of all id's of fetchable Icons for a certain fetcher. | ||
|
||
Instance Variables | ||
iconFetcher: <IconFetchStrategy> | ||
iconIndex: <Integer> | ||
iconList: <Collection> | ||
|
||
iconFetcher | ||
- the icon fetcher we want to show the list of id's for | ||
|
||
iconIndex | ||
- the index of the specific icon id | ||
|
||
iconList | ||
- list of all the available ids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
A LocalFetcher is enabling to fetch icons which are stored locally. | ||
|
||
Instance Variables | ||
directory: <FileDirectory> | ||
|
||
directory | ||
- is the specific directory from which you want to fetch the icons from. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
A MaterialIconsFetcher is the concrete fetcher for the MaterialIcons library. | ||
|
||
Instance Variables | ||
useOutlined: <Boolean> | ||
|
||
useOutlined | ||
- is defining whether the fetched icon should have an outline or not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
A PluggableIconButtonSpec defines the spec of an IconButton to create a IconButton by a spec. | ||
|
||
Instance Variables | ||
action: <Object> | ||
target: <Object> | ||
|
||
action | ||
- the specific action the button is supposed to do at click | ||
|
||
target | ||
- the target of the IconButtonSpec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
A PluggableIconSpec is using the pluggableWidgetSpec functionality of the toolBuilder to create an icon by defining its specs. | ||
|
||
Instance Variables | ||
aspectRatio: <Point> | ||
iconColor: <Color> | ||
id: <String> | ||
inverted: <Boolean> | ||
|
||
aspectRatio | ||
- is the width to height ratio of the icon | ||
|
||
iconColor | ||
- sets the icon color of the icon | ||
|
||
id | ||
- sets the id of the icon | ||
|
||
inverted | ||
- determines whether the icon color is inverted or not |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters