| 1 |
package de.jensd.fx.glyphs.materialstackicons; |
| 2 |
|
| 3 |
import de.jensd.fx.glyphs.GlyphStackIcon; |
| 4 |
import de.jensd.fx.glyphs.materialicons.MaterialIcon; |
| 5 |
import de.jensd.fx.glyphs.materialicons.MaterialIconView; |
| 6 |
|
| 7 |
public class MaterialStackIconView extends GlyphStackIcon<MaterialStackIcons, MaterialIconView, MaterialIcon> { |
| 8 |
|
| 9 |
public MaterialStackIconView() { |
| 10 |
} |
| 11 |
|
| 12 |
public MaterialStackIconView(MaterialStackIcons materialStackIcons) { |
| 13 |
super(materialStackIcons); |
| 14 |
} |
| 15 |
|
| 16 |
public MaterialStackIconView(MaterialStackIcons materialStackIcons, double size) { |
| 17 |
super(materialStackIcons, size); |
| 18 |
} |
| 19 |
|
| 20 |
@Override |
| 21 |
public MaterialStackIcons getDefaultGlyph() { |
| 22 |
return MaterialStackIcons.FLASH_NOT_ALLOWED; |
| 23 |
} |
| 24 |
|
| 25 |
@Override |
| 26 |
protected MaterialIconView getGlyph(MaterialIcon glyphIcons, double size) { |
| 27 |
MaterialIconView materialIconView = new MaterialIconView(MaterialIcon.class.cast(glyphIcons)); |
| 28 |
materialIconView.setGlyphSize(size); |
| 29 |
return materialIconView; |
| 30 |
} |
| 31 |
|
| 32 |
} |